Differentiation
Differentiation
hsn.uk.net
Mathematics
Differentiation
Contents
Differentiation 1
1 Introduction to Differentiation 1
2 Finding the Derivative 2
3 Differentiating with Respect to Other Variables 6
4 Rates of Change 7
5 Equations of Tangents 8
6 Increasing and Decreasing Curves 12
7 Stationary Points 13
8 Determining the Nature of Stationary Points 14
9 Curve Sketching 17
10 Differentiating sinx and cosx 19
11 The Chain Rule 20
12 Special Cases of the Chain Rule 20
13 Closed Intervals 23
14 Graphs of Derivatives 25
15 Optimisation 26
CfE Edition
This document was produced specially for the HSN.uk.net website, and we require that any
copies or derivative works attribute the work to Higher Still Notes.
For more details about the copyright on these notes, please see
http://creativecommons.org/licenses/by-nc-sa/2.5/scotland/
Higher Mathematics Differentiation
Differentiation
1 Introduction to Differentiation
From our work on Straight Lines, we saw that the gradient (or “steepness”)
of a line is constant. However, the “steepness” of other curves may not be the
same at all points.
In order to measure the “steepness” of other curves, we can use lines which
give an increasingly good approximation to the curve at a particular point.
On the curve with equation y = f ( x ) , y
y = f (x)
suppose point A has coordinates ( a, f ( a ) ) .
f (a + h ) B
At the point B where x= a + h , we have
=y f (a + h ). A
f (a )
Thus the chord AB has gradient O a a+h x
f (a + h ) − f (a )
mAB = y
a+h−a y = f (x)
f (a + h ) − f (a ) f (a + h )
= . B
h
If we let h get smaller and smaller, i.e. h → 0 , f (a ) A
then B moves closer to A. This means that
mAB gives a better estimate of the “steepness” O a a+h x
of the curve at the point A.
We use the notation f ′ ( a ) for the “steepness” of the curve when x = a . So
f (a + h ) − f (a )
f ′ ( a ) = lim .
h →0 h
Given a curve with equation y = f ( x ) , an expression for f ′ ( x ) is called the
derivative and the process of finding this is called differentiation.
It is possible to use this definition directly to find derivates, but you will not
be expected to do this. Instead, we will learn rules which allow us to quickly
find derivatives for certain curves.
f ′( x ) = 4x 3.
2. Differentiate f ( x ) = x −3 , x ≠ 0 , with respect to x.
f ′ ( x ) = −3 x −4 .
( )
3 1
d x2 = 3 x2.
dx 2
Preparing to differentiate
It is important that before you differentiate, all brackets are multiplied out
and there are no fractions with an x term in the denominator (bottom line).
For example:
1 3 1 −1 1 5 5 x − 23 .
3
= x −3 2
= 3x −2 =x 2 5
= 14 x −5 2 = 4
x x x 4x 43 x
EXAMPLES
1. Differentiate x with respect to x, where x > 0 .
1
x = x2
dx ( )
d x 12 = 1 x − 12
2 Note
1 It is good practice to
= . tidy up your answer.
2 x
1 dy
2. Given y = 2
, where x ≠ 0 , find .
x dx
y = x −2
dy
= −2 x −3
dx
2
= − 3.
x
f ′( x ) = 6x 2 .
2. Differentiate y = 4 x −2 with respect to x, where x ≠ 0 .
dy
= −8 x −3
dx
8
= − 3.
x
2
3. Differentiate , x ≠ 0 , with respect to x.
x3
( )
d 2 x −3 = −6 x −4
dx
6
= − .
x4
3 dy
4. Given y = , x > 0 , find .
2 x dx
− 12
y = 32 x
dy −3
= − 34 x 2
dx
3
= − 3.
4 x
f ′ ( x ) = 9 x 2 − 4 x + 5.
Note
The derivative of an x term (e.g. 3x , 12 x , − 10
3 x ) is always a constant.
For example:
d 6 x = 6,
dx ( ) dx 2(
d −1 x =
)
− 12 .
dy
= 2 x − 1.
dx
x 1
3. A function f is defined for x ≠ 0 by f ( x =
) + . Find f ′ ( x ) .
5 x2
) 15 x + x −2
f ( x=
f ′ ( x )= 15 − 2 x −3
2
= 15 − 3 .
x
x 4 − 3x 2
4. Differentiate with respect to x, where x ≠ 0 .
5x
x 4 − 3x 2 x 4 3x 2
= −
5x 5x 5x
= 15 x 3 − 35 x
(
dx 5 5 5 )
d 1 x3 − 3 x = 3 x2 − 3 .
5
x 3 + 3x 2 − 6 x
5. Differentiate , x > 0 , with respect to x.
x
x 3 + 3x 2 − 6 x x 3 3x 2 6 x
= 1 + 1 − 1
x x2 x2 x2
3− 12 2 − 12 1− 12 Remember
=x + 3x − 6x
5 3 1 xa
=x + 3 x − 6 x
2 2 2 x ab .
xb
( )
5 3 3
d x 2 + 3 x 2 − 6 x 12 = 5 x 2 − 9 x 12 − 3 x − 12
dx 2 2
3
= 52 x − 92 x −
3
.
x
6. Find the derivative=
of y x ( x 2 + 3 x ) , x > 0 , with respect to x.
( )
1 1 5 5
y =x 2 x 2 + x 3 =x 2 + x 6 Remember
x a x b x ab .
dy 3 −1
= 52 x 2 + 56 x 6
dx
5
= 52 x + 6 .
3
6 x
2. Given A ( r ) = πr 2 , find A′ ( r ) .
A ( r ) = πr 2 Remember
π is just a constant.
A′ ( r ) = 2πr .
When differentiating with respect to a certain variable, all other variables are
treated as constants.
EXAMPLE Note
2 Since we are
3. Differentiate px with respect to p.
differentiating with
dp ( )
d px 2 = x 2 . respect to p, we treat x2
as a constant.
4 Rates of Change
The derivative of a function describes its “rate of change”. This can be
evaluated for specific values by substituting them into the derivative.
EXAMPLES
1. Given f ( x ) = 2 x 5 , find the rate of change of f when x = 3 .
f ′ ( x ) = 10 x 4
f ′ ( 3 ) = 10 ( 3 )4 = 10 × 81 = 810.
1
2. Given y = 2 for x ≠ 0 , calculate the rate of change of y when x = 8 .
x 3
y=x
− 23 dy 2
At x = 8, = − 3 5
dy −5
dx 3 8
= − 23 x 3 2
dx = −
2 3 × 25
= − 5 2
3x 3 = − 96
2 1 .
= − 48
= − 3 5.
3 x
5 Equations of Tangents
As we already know, the gradient of a straight line is constant. We can
determine the gradient of a curve, at a particular point, by considering a
straight line which touches the curve at the point. This line is called a tangent.
tangent
P y = f (x)
2
O x
We need a point on the tangent. Using the given y-coordinate, we can
find the x-coordinate of the point P:
f (x) = 2
1
=2
x
x = 12 So the point is ( 12 , 2 ) .
dy 2 − 3 1
2
=3x =
dx 3×2
2
= 3 = 13 .
3 x
Now we have the point ( −8, 4 ) and the gradient m = 13 , so the equation
of the tangent is:
y − b= m ( x − a )
y − 4= 13 ( x + 8 )
3 y − 12 =x + 8
x − 3 y + 20 =0.
(
So the points are −1, 13
6 )
and 2, 29
3 . ( )
strictly
decreasing
strictly dy strictly
increasing <0
dx increasing
dy dy
>0 >0
dx dx
O x
EXAMPLES
2
1. A curve has equation=y 4x 2 + .
x
Determine whether the curve is increasing or decreasing at x = 10 .
− 12
=y 4x 2 + 2x
dy −3
= 8x − x 2
dx
1
= 8x − 3.
x
dy 1
When x = 10 , =8 × 10 − 3
dx 10
Note
1
= 80 − 1
1.
10 10 10 10
> 0.
dy
Since > 0 , the curve is increasing when x = 10 .
dx
dy
= x 2 + 2x + 1 Remember
dx The result of squaring
= ( x + 1)2 any number is always
greater than, or equal to,
≥ 0. zero.
dy
Since is never less than zero, the curve is never decreasing.
dx
7 Stationary Points
At some points, a curve may be neither increasing nor decreasing – we say
that the curve is stationary at these points.
This means that the gradient of the tangent to the curve is zero at stationary
dy
points, so we can find them by solving=f ′ ( x ) 0=
or 0.
dx
The four possible stationary points are:
Turning point Horizontal point of inflection
Maximum Minimum Rising Falling
y y y y
x
x x x
EXAMPLES
1. A curve has equation y = x 3 − 6 x 2 + 9 x − 4 .
Find the stationary points on the curve and determine their nature.
Given y = x 3 − 6 x 2 + 9 x − 4,
dy
= 3 x 2 − 12 x + 9.
dx
dy
Stationary points exist where = 0:
dx
3 x 2 − 12 x + 9 =0
3 ( x 2 − 4 x + 3 ) = 0 ( ÷3)
x 2 − 4x + 3 =0
( x − 1)( x − 3 ) =
0
=x −1 0 =
or x −3 0
= x 1= x 3.
When x = 1 , When x = 3 ,
y =(1)3 − 6 (1)2 + 9 (1) − 4 y = ( 3 )3 − 6 ( 3 ) 2 + 9 ( 3 ) − 4
=1 − 6 + 9 − 4 = 27 − 54 + 27 − 4
= 0. = −4.
Therefore the point is (1, 0 ) . Therefore the point is ( 3, − 4 ) .
Nature:
x → 1 → → 3 →
dy
dx
+ 0 − − 0 +
Graph
When x = 0 , When x = 32 ,
= y 4 ( 0 )3 − 2 ( 0 ) 4
( ) ( )
3 4
=y 4 32 − 2 32
= 0.
Therefore the point is ( 0, 0 ) . = 27 81
2 − 8
= 27
8 .
Therefore the point is ( 32 , 278 ) .
Nature:
x → 0 → → 32 →
dy
dx
+ 0 + + 0 −
Graph
1
3. A curve has equation =
y 2x + for x ≠ 0 . Find the x-coordinates of the
x
stationary points on the curve and determine their nature.
y 2 x + x −1,
Given=
dy
= 2 − x −2
dx
1
= 2− 2.
x
dy
Stationary points exist where = 0:
dx
1
2− = 0
x2
2x 2 = 1
x 2 = 12
x= ± 1 .
2
Nature:
x → − 1 → → 1 →
2 2
dy
dx
+ 0 − − 0 +
Graph
9 Curve Sketching
In order to sketch a curve, we first need to find the following:
x-axis intercepts (roots) – solve y = 0 ;
y-axis intercept – find y for x = 0 ;
stationary points and their nature.
EXAMPLE
Sketch the curve with equation=y 2 x 3 − 3x 2 .
y-axis intercept, i.e. x = 0 : x-axis intercepts i.e. y = 0 :
= y 2 ( 0 )3 − 3 ( 0 ) 2 2 x 3 − 3x 2 =
0
= 0. x 2 (2x − 3) =
0
Therefore the point is ( 0, 0 ) . x2 = 0 or 2x − 3 =0
x =0 x = 32
( 0, 0 )
( 23 , 0 ).
Given=y 2 x 3 − 3x 2 ,
dy
= 6 x 2 − 6 x.
dx
dy
Stationary points exist where = 0:
dx
6x 2 − 6x =
0
6 x ( x − 1) =
0
6x = 0 or x −1 = 0
x =0 x = 1.
When x = 0 , When x = 1 ,
= y 2 ( 0 )3 − 3 ( 0 ) 2 = y 2 (1)3 − 3 (1)2
= 0. = 2−3
Therefore the point is ( 0, 0 ) . = −1.
Therefore the point is (1, − 1) .
Nature:
x → 0 → → 1 → ( 0, 0 ) is a maximum turning point.
dy (1, − 1) is a minimum turning
dx
+ 0 − − 0 +
Graph point.
y
=y 2 x 3 − 3x 2
O
x
3
2
(1, − 1)
f ′( =
x ) cos x − ( −2sin x ) Remember
= cos x + 2sin x The exact value triangle:
( )
π
f ′=
3 cos π3 + 2sin π3 2
π
6
3
= 12 + 2 × 23 π
3
= 12 + 3. 1
When x == π , y sin
6
= π
6 ( )
1 . So the point is π , 1 .
2 6 2 ( )
We also need the gradient at the point where x = π6 :
dy
= cos x .
dx
When x = π6 , m
=tangent =
cos ( ) 23 .
π
6
Now we have the point ( π6 , 12 ) and the gradient m tangent = 23 , so:
y − b= m ( x − a )
1
y −=
2
3
(
2 x−6
π
)
2 y − 1 = x − π6
x − 2 y − π6 + 1 = 0.
dx (
d f= g ( x ) ) f ′( g ( x )) × g ′( x ) .
Stated simply: differentiate the outer functions, the bracket stays the same,
then multiply by the derivative of the bracket.
This is called the chain rule. You will need to remember it for the exam.
EXAMPLE
(
If y cos 5 x + π6 , find
= ) dy
dx
.
= (
y cos 5 x + π6 )
Note
dy
dx
= (
− sin 5 x + π6 × 5 ) The “ ×5 ” comes from
d
(
dx 5 x + 6 )
π .
−5sin 5 x + π6 .
= ( )
Powers of a Function
n
For expressions of the form [ f ( x )] , where n is a constant, we can use a
simpler version of the chain rule:
f ( x ) ) n [ f ( x )] × f ′ ( x ) .
n n −1
dx (
d =
Stated simply: the power ( n ) multiplies to the front, the bracket stays the
same, the power lowers by one (giving n − 1 ) and everything is multiplied by
the derivative of the bracket ( f ′ ( x ) ).
EXAMPLES
(x)
1. A function f is defined on a suitable domain by f= 2 x 2 + 3x .
Find f ′ ( x ) .
( 2 x 2 + 3x )2
1
f ( x )= 2 x 2 + 3x =
) 12 ( 2 x 2 + 3 x ) 2 × ( 4 x + 3 )
− 1
f ′( x=
=12 ( 4 x + 3 ) ( 2 x 2 + 3 x )
− 12
4x + 3
= .
2 2 x + 3x
2
x 2 ( sin x )
4
= =
y 2sin 4
dy
2 × 4 ( sin x ) × cos x
3
=
dx
= 8sin3 x cos x .
y (5x + 2 )
3
=
dy
= 3 (5x + 2 ) × 5
2
dx
= 15 ( 5 x + 2 ) .
2
1 dy
4. If y = 3 , find .
(2x + 6) dx
1
(2x + 6)
−3
=
y =
( 2 x + 6 )3
dy
−3 ( 2 x + 6 ) × 2
−4
=
dx
−6 ( 2 x + 6 )
−4
=
6
= − 4 .
(2x + 6)
(x)
5. A function f is defined by f= 3
( 3 x − 2 )4 for x ∈ . Find f ′ ( x ) .
4
f ( x ) = 3 (3x − 2 ) = (3x − 2 ) 3
4
1
f ′ ( x )= 34 ( 3 x − 2 ) 3 × 4
3 (3x − 2 ).
= 16 3
Trigonometric Functions
The following rules can be used to differentiate trigonometric functions.
dx (
b ) a cos ( ax + b ) ,
d sin ax + =
dx (
d cos ax + b ) =
−a sin ( ax + b ) .
These are given in the exam.
EXAMPLE
=
6. Differentiate y sin ( 9 x + π ) with respect to x.
dy
= 9cos ( 9 x + π ) .
dx
13 Closed Intervals
Sometimes it is necessary to restrict the part of the graph we are looking at
using a closed interval (also called a restricted domain).
The maximum and minimum y-values can either be at stationary points or
at the end points of the closed interval.
Below is a sketch of a curve with the closed interval −2 ≤ x ≤ 6 shaded.
y
maximum
O
x
minimum
–2 6
Notice that the minimum value occurs at one of the end points in this
example. It is important to check for this.
EXAMPLE
A function f is defined for −1 ≤ x ≤ 4 by f ( x ) = 2 x 3 − 5 x 2 − 4 x + 1 .
Find the maximum and minimum value of f ( x ) .
Given f ( x ) = 2 x 3 − 5 x 2 − 4 x + 1,
f ′ ( x ) = 6 x 2 − 10 x − 4.
Stationary points exist where f ′ ( x ) = 0 :
6 x 2 − 10 x − 4 =0
2 ( 3 x 2 − 5x − 2 ) =
0
( x − 2 )( 3 x + 1) =0
=x −2 0 =
or 3x + 1 0
x= 2 x = − 13 .
( ) ( ) ( ) − 4 ( − 13 ) + 1
3 2
f ( 2 ) = 2 ( 2 )3 − 5 ( 2 ) 2 − 4 ( 2 ) + 1 f − 13 = 2 − 13 − 5 − 13
= 16 − 20 − 8 + 1 =2 ( − 27 ) (9) (3)
1 − 5 1 − 4 1 +1
= −11. 2 − 5 + 4 +1
Therefore the point is ( 2, −11) . =− 27 9 3
46 .
= 27
(
46 .
Therefore the point is − 13 , 27 )
Nature:
x → − 13 → → 2 → ( − 13 , 2746 ) is a max. turning point.
f ′( x ) + 0 − − 0 + ( 2, −11) is a min. turning point.
Graph
=−2 − 5 + 4 + 1 = 128 − 80 − 16 + 1
= −2. = 33.
Therefore the point is ( −1, − 2 ) . Therefore the point is ( 4, 33 ) .
Now we can make a sketch: Note
y A sketch may help you
( 4, 33 ) to decide on the correct
answer, but it is not
required in the exam.
( − 13 , 2746 )
O x
( −1, − 2 )
( 2, − 11)
The maximum value is 33 which occurs when x = 4 .
The minimum value is −11 which occurs when x = 2 .
14 Graphs of Derivatives
The derivative of an x n term is an x n−1 term – the power lowers by one. For
example, the derivative of a cubic (where x 3 is the highest power of x) is a
quadratic (where x 2 is the highest power of x).
When drawing a derived graph:
All stationary points of the original curve become roots (i.e. lie on the x-
axis) on the graph of the derivative.
Wherever the curve is strictly decreasing, the derivative is negative. So the
graph of the derivative will lie below the x-axis – it will take negative values.
Wherever the curve is strictly increasing, the derivative is positive. So the
graph of the derivative will lie above the x-axis – it will take positive values.
y y y
+
+ + + +
O
O x x
− O x − −
−
Linear Quadratic Cubic
EXAMPLE
The curve y = f ( x ) shown below is a cubic. It has stationary points where
x = 1 and x = 4 .
y
y = f (x)
O x
15 Optimisation
In the section on closed intervals, we saw that it is possible to find maximum
and minimum values of a function.
This is often useful in applications; for example a company may have a
function P ( x ) which predicts the profit if £x is spent on raw materials – the
management would be very interested in finding the value of x which gave
the maximum value of P ( x ) .
The process of finding these optimal values is called optimisation.
Sometimes you will have to find the appropriate function before you can start
optimisation.
EXAMPLE
1. Small wooden trays, with open tops and square bases, are being designed.
They must have a volume of 108 cubic centimetres.
h
x
The internal length of one side of the base is x centimetres, and the
internal height of the tray is h centimetres.
(a) Show that the total internal surface area A of one tray is given by
432
= x2 +
A .
x
(b) Find the dimensions of the tray using the least amount of wood.
(a)=
Volume area of base × height Let A be the surface area for a
=x 2 h. particular value of x :
We are told that the volume = x 2 + 4 xh.
A
is 108 cm3, so: 108
We have h = 2 , so:
Volume = 108 x
x 2 h = 108 A ( )
= x 2 + 4 x 108
x2
108
h= 2 .
x = x 2 + 432 .
x
(b) The smallest amount of wood is used when the surface area is minimised.
dA 432
= 2x − 2 .
dx x
dA
Stationary points occur when = 0: Nature:
dx
432 x → 6 →
2x − 2 = 0 dA
x dx
− 0 +
x = 216
3
Graph
x = 6.
So the minimum surface area occurs when x = 6 . For this value of x :
108
= h = 3.
62
So a length and depth of 6 cm and a height of 3 cm uses the least amount
of wood.
y = f (x)
P ( p, f ( p ) )
−p O 7 x
A triangle is formed with vertices at the origin, P and ( − p,0 ) .
(a) Show that the area, A square units, of this triangle is given by
A= 1
2 p 3 − 6 p 2 + 45
2 p.
(b) Find the greatest possible value of A and the corresponding value of p
for which it occurs.
(a) The area of the triangle is
1 base × height
A =×
2
= 12 × p × f ( p )
= 1
2 p ( p 2 − 12 p + 45 )
= 1
2 p 3 − 6 p 2 + 45
2 p.