GI-255 Differentiation
GI-255 Differentiation
DIFFERENTIATION
DIFFERENTIATION.
The idea of a gradient was brought about when studying linear functions. Now, linear functions have a
constant gradient. The function y = 2x – 5, for example, has a gradient of 2 regardless of the value of x.
Take the chord PQ in the upper diagram. Its gradient is given by y (delta y over delta x) where x
x
is a small change in x and y is the corresponding change in y.
As the chord PQ becomes smaller and smaller, the ratio y approximates to the gradient of the curve at
x
P more and more closely, until the points P and Q coincide and the chord becomes a tangent at P.
Note that the terms y , x, dy and dx are not products – the symbols and d mean “difference in”.
Some gradient functions can be worked out using the method on the previous page – known as
differentiation from first principles.
Mathematics Revision Guides –Differentiation Page 3 of 19
Author: Mark Kudlowski
Going back to the diagram on page 2, if we set y = x2 , then a small change in x (here x) will cause a
corresponding change in y, namely y.
y + y = x2 + 2x(x) + (x)2 .
Subtracting the original function gives y = 2x(x) + (x)2 , and dividing throughout by x, we have
y = 2x + x .
x
The method of differentiation from first principles was just a demonstration – we have standard rules to
work out gradient functions far more rapidly than that !
dy = nxn-1
dx
In other words, you multiply by the power, and then reduce the power by 1.
Original function y
Derived function, dy
dx
x 1
x2 2x
x3 3x2
x4 4x3
If a function is multiplied by a constant, then its derivative is multiplied by the same constant.
For example, the derivative of x2 is 2x, so the derivative of 5x2 is 10x.
If a function consists of separate terms added together, then the derivative of the sum is the sum
of the derivatives of the separate terms.
For example, the derivative of 3x3 - x2 is 9x2 - 2x.
Mathematics Revision Guides –Differentiation Page 4 of 19
Author: Mark Kudlowski
Examples (2): Find the derived function of i) 2x; ii) 8; iii) 4x2; iv) x7; v) 2x3 + 7x2 – 5x + 4.
ii) The derivative of 8 is 0 (8 is a constant – the derivative of any constant function is 0).
iii) The derivative of 4x2 is 8x. (the result is 4 times 2x, the derivative of x2).
iv) The derivative of x7 is 7x6 (multiply by the power, here 7, and reduce 7 by 1.)
v) The derivative of 2x3 + 7x2 – 5x + 4 is 6x2 + 14x – 5 (each term’s derivative summed together).
Example (3): Find the gradient of the curve y = 4x3 at the point (2, 32).
Here, dy = 12x2 , so the gradient at the point (2, 32) is 12 22 or 48.
dx
Example (4): Find the coordinates of the point on the curve y = 2x2 -3x – 7 where the gradient is 5.
The gradient, dy , is 4x – 3, and so we solve 4x – 3 = 5 to find the x-coordinate of the required point,
dx
namely 2. Substituting x = 2 into the original function gives the full coordinates of (2, -5).
Mathematics Revision Guides –Differentiation Page 5 of 19
Author: Mark Kudlowski
The rule of finding derivatives of polynomials can also be applied to fractional and negative powers.
1 1 3
Examples (5): Differentiate i) x ; ii) ; iii) 2 ; iv) x.
x x
1
i) Firstly, rewrite x as x2 , and then apply the rule of multiplying by the power and reducing the
power by 1.
12
1
1
The derivative is thus 2 x or 2 x
(recall the laws of indices on fractional and negative powers).
ii) The expression can be rewritten as y = x-1 and by applying the usual rule, the gradient function is
(-1)x-2 or x12 .
1 2
iii) Since 2
x 2 , differentiation gives 2 x 3 3 .
x x
1
1
23 2
iv) Rewriting 3
x as x 3
, the standard rule gives a derivative of 1
x or .
3
3x 3
Example (6): Find the gradient of the curve y x at the point (16, 4)
1
dy 1 12 1
From Example (5) i) , y x2 has a derived function of x or 2 x .
dx 2
1 1
At (16, 4), the gradient is therefore 2 16 or 8 .
1
Example (7): Find the gradient of the curve y at the point (5, 15 )
x
1 1
From Example (5) ii) y has a derivative of dy = (-1)x-2 or x 2 .
x dx
If y = f(x) g(x) where f(x) andg(x) are separate functions of x, then dy = f (x) g (x)
dx
A product cannot be differentiated term by term, and so it must first be expanded into a form that can.
(2x – 7)(x + 4) = 2x2 + x – 28, which can be differentiated to give f(x) = 4x + 1.
x4 1
Example (10): Differentiate f (x) =
x2
A quotient cannot be differentiated term by term, so it must be rewritten as
x4 1 1
2
x2 2
x x
2
Both terms can now be differentiated to give f(x) = 2x .
x3
1 2
Note that 2
x 2 and differentiation gives 3 2 x 3 .
x x
(There are rules for differentiating products and quotients, but they are outside the scope of IGCSE.)
The following example returns to the ideas behind differentiation from first principles.
Mathematics Revision Guides –Differentiation Page 7 of 19
Author: Mark Kudlowski
Example(11): A curve passes through points P (2, 17) and Q (2.1, 18.23).
ii) Point Q is then moved ten times closer to P, to the point (2.01, 17.1203) . What is the gradient of
the chord PQ now ?
iii) Suggest what happens to the chord and its gradient as Q is moved ever closer to P.
iv) The curve has an equation of y = ax2 + b where a and b are constants. Find the equation of the
curve.
i) The chord PQ has a gradient of 12.3. (See diagram below – deliberately exaggerated).
Notice how the gradient of the chord at P is not particularly close to that of the tangent at that point.
Mathematics Revision Guides –Differentiation Page 8 of 19
Author: Mark Kudlowski
ii) After point Q is moved to (2,01, 17.1203), the gradient of the chord PQ is 12.03.
Also, the chord is a much closer approximation to the tangent at point P now that PQ is ten times
smaller.
iii) The gradient at P has changed from 12.3 to 12.03 as Q has become closer to P. Also, the chord
approaches the tangent to P more closely the smaller the length of PQ.
This suggests that, when P and Q coincide, the chord PQ becomes a tangent at P and the gradient tends
to a value of 12.
iv) The curve has an equation of y = ax2 + b, and so its derivative dy 2ax .
dx
From this we can work out that the curve has an equation of y = 3x2 + b.
A graph of a function of x is said to have a turning point (or points) if its derivative can take a value of
zero for some value(s) of x. Turning points are also known as stationary points.
All quadratic graphs have one turning point, i.e. one occurrence of a zero derivative.
The last two examples illustrated the behaviour of a curve near a turning point:
In the neighbourhood of a minimum point, the gradient changes from negative through zero to
positive as x increases.
In the neighbourhood of a maximum point, the gradient changes from positive through zero to
negative as x increases.
The minimum and maximum points in the last example were also global since they were the only
turning points.
The derived function can give useful information about the behaviour of a curve. Two cubics are
shown here.
Graph of y = x3.
Graph of y = x3 – 12x.
The value of y increases from A to B, with a positive but decreasing gradient, until at B the gradient is
zero and we have a stationary point – a local maximum at that point.
The value of y then decreases from B through C, with a negative gradient, until at D the gradient is zero
again and we have another stationary point – this time a local minimum.
Notice how the gradient behaves on either side of the local maximum at point B. It changes from
positive through zero at B and then becomes negative.
The pattern is reversed in the case of the local minimum point D. There the gradient changes from
negative through zero at D and then becomes positive.
Hence, as x increases:
In the neighbourhood of a local minimum, the gradient changes sign from negative to positive.
In the neighbourhood of a local maximum, the gradient changes sign from positive to negative.
In the neighbourhood of a point of inflection, the gradient does not change sign.
The maximum point at B is referred to as a local maximum because the value of y, namely 16, at that
point is not an absolute maximum. At point E, for instance, for instance, y = 65.
For the same reason, the minimum at D is local only; there y = -16, but at point A, y = – 65. x increases
and the graph of the function goes beyond point D, the value of the function increases indefinitely
beyond its value at B.
Mathematics Revision Guides –Differentiation Page 12 of 19
Author: Mark Kudlowski
What if f (x) = 0 ?
If f (x) = 0 the result is inconclusive. It could mean a point of inflection (not covered in more detail),
but could still be a maximum or a minimum. In that case, we must check the behaviour of the gradient
in the neighbourhood of the stationary point, by choosing suitable values of x on each side of it.
If f (x) changes sign from -ve through 0 to +ve in the neighbourhood of the stationary point as x
increases, then the point is a local minimum.
If f (x) changes sign from +ve through 0 to -ve in the neighbourhood of the stationary point as x
increases, then the point is a local maximum.
Example (12):
i) Show algebraically that the curve f (x) = x3 - 9x2 + 15x – 5 has a turning point at (5, -30) and
another at (1,2).
Substituting x = 5 into the equation of the curve, we have f(5) = 125 – 225 + 135 - 5 = -30.
Likewise, substituting x = 5 into the equation of the derivative, we have f (5) = 75 – 90 + 15 = 0.
ii) We take the second derivative to distinguish between the two stationary points in i).
When x = 5, 6x – 18 = 12. The second derivative is positive here, and so (5, -30) is a local minimum.
When x = 1, 6x – 18 = -12. The second derivative is negative here, and so (1, 2) is a local maximum.
Mathematics Revision Guides –Differentiation Page 14 of 19
Author: Mark Kudlowski
Example (13):
A farmer wants to make a rectangular enclosure y metres long and x metres deep. There is a fixed solid
wall on one side, and he has 32 metres of fencing available for the other three sides.
He wants to make the enclosed area as large as possible.
i) Show that the enclosed area, A, of the pen can be expressed as A = x(32 – 2x) m2.
dA
ii) For A = x(32 – 2x), find , and hence find the value of x for which A takes a maximum value.
dx
iii) Calculate this maximum value of A. Explain algebraically why it is a maximum.
i) The total length of the fencing is 32 m, so the length of the fence, y = 32 – 2x m, and therefore the
area A = xy = x(32 – 2x) m2.
dA
ii) A = x(32 – 2x) A = 32x – 2x2, hence = 32 – 4x.
dx
The maximum value of A occurs when this derivative is zero : 32 – 4x = 0, i.e. when x = 8.
The maximum area enclosed by the fencing is 128 square metres, and that occurs when the depth of
the fencing is 8 metres and the length 16 metres.
d2A
This area is indeed a maximum because the second derivative, = -4 (i.e. < 0).
dx 2
Mathematics Revision Guides –Differentiation Page 15 of 19
Author: Mark Kudlowski
Example (14): Find the stationary points, if any, of the curve f (x) = 1 - x4 . Which, if any, is a
maximum or a minimum ?
At a stationary point, f (x) = 0, so we solve -4x3 = 0. The only solution is x = 0, so the only stationary
point of the curve f (x) = 1 - x4 is (0, 1).
To determine if (0, 1) is a maximum or a minimum, we take the second derivative, f(x) = -12x2.
Unfortunately, this second derivative is also zero, so the test does not help.
We therefore need to find the gradient of the curve at two other points, one on each side of the
stationary point. Two suitable values are at x = -1 and x = 1, i.e. at points (-1,0) and (1,0).
The gradient at (-1,0) is f(-1) = 4 ; the corresponding gradient at (1, 0) is f(1) = -4.
Therefore, as x increases from -1 through 0 to 1, the gradient changes sign from positive (4), through 0
to negative (-4) on either side of the stationary point at (0, 1).
Applications in Mechanics.
In the sections on real-life graphs, and especially travel graphs, we have seen the relationship between
quantities such as displacement, velocity and acceleration.
A car is being driven along a track, and the graph below illustrates its displacement (distance from the
starting point) in metres for the first 15 seconds.
For the first ten seconds, the graph’s equation is a quadratic, s = 1.25t2, but after that, it becomes
linear, with the equation s = 25t – 125.
We can use derivative notation to illustrate the relationships between displacement, s, and velocity, v.
ds
Because velocity is the rate of change of displacement with respect to time, t, we say v .
dt
We can therefore find expressions for the velocity of the car by differentiation.
ds
When s = 1.25t2 , v = 2.5t (for the first 10 seconds).
dt
ds
When s = 25t – 125, v = 25 (thereafter) .
dt
For the first ten seconds, the velocity (in m/s) varies depending on the time; after that, it is constant.
.
Mathematics Revision Guides –Differentiation Page 17 of 19
Author: Mark Kudlowski
It can be seen that the velocity increases at a linear rate of 2.5 m/s per second for the first ten seconds,
and then remains at 25 m/s afterwards.
In other words, the car is accelerating at a rate of 2.5 m/s per second for the first ten seconds, after
which the acceleration falls to zero.
The rate of change of velocity (with respect to time) is also the rate of acceleration, so we also say
dv
a .
dt
Differentiating the velocity expressions we have:
dv
When v = 2.5t, a = 2.5 (for the first 10 seconds).
dt
dv
When v = 25, a = 0 (thereafter) .
dt
ds d 2s
Since v , we can also say a , i.e. we differentiate the displacement function once to
dt dt 2
find the velocity, and twice to find the acceleration.
Mathematics Revision Guides –Differentiation Page 18 of 19
Author: Mark Kudlowski
Example (15): A particle moves in a straight line which passes through the fixed point O.
i) Find an expression for the velocity of the particle in metres per second at time t seconds.
ii) Find the particle’s displacement when t = 4, and show that this value is a maximum.
ds
i) We differentiate s to find the velocity ; v = 24t - 6t2.
dt
ii) When t = 4, s = (12 16) – (2 64) = 64, i.e. the particle is 64 metres from O.
Example (16): A ball is released into the air at a velocity of 25 m/s, from an initial height of 2 m.
Its height is given by the formula h = 2 + 25t -5t2, where t is the time elapsed in seconds.
ii) Find the height and velocity of the ball after 4 seconds. Explain the latter result.
iii) Find the maximum height attained by the ball, to the nearest metre.
iv) Use the quadratic formula to show that the ball falls back to the ground after just over 5 seconds .
dh
i) The velocity of the ball is v = 25 – 10t m/s.
dt
d 2 h dv
The acceleration is a -10 m/s2.
dt 2 dt
ii) When t = 4, h = 2+100-80 = 22, so the ball is 22m above ground level after 4 seconds.
The velocity, v , = 25 - 40 or -15 m/s. The context of the question makes it clear that the upwards
direction is positive , therefore the negative velocity signifies a downwards direction.
dh
iii) The ball reaches its maximum height when v = 0, i.e. when 25 - 10t = 0.
dt
This is when t = 2.5 seconds. Substituting t = 2.5 into the height formula gives h = 2 + 62.5 -31.25, or
33. The maximum height reached by the ball is thus 33 metres.
iv) We need to solve h = 0, namely 2 + 25t -5t2 = 0. We use the general quadratic formula
b b 2 4ac 25 625 40
t , or t . The solutions are -0.39 and 5.08.
2a 10
Only the positive result is applicable here, so the ball falls back to the ground after 5.1 seconds.