Professional Documents
Culture Documents
Gradient Function
Gradient Function
gradient function
Calculus is the cornerstone of much of the mathematics studied at
a higher level. Differential calculus deals with finding the gradient
of a function. In this chapter, you will look at functions of the form
f( x) = ax n + bx n−1 + ..., where n is an integer.
219
16
14
12
10 Q1
(3, 9)
8
2
P
(1, 1)
–1
0 1 2 3 4 x
16
14
12
10
6
Q2
4 (2, 4)
2
P
(1, 1)
–1 0 1 2 3 4 x
220
4−1 =3
Gradient of PQ2 is 2−1
− 1 = 2.1 2
For the point Q5(1.1,1.12), the gradient of PQ5 is 1.1
1.1 − 1
These results indicate that as point Q gets closer to P, the gradient of the
line segment PQ gets closer to 2.
Worked example
Prove that the gradient of the function f( x) = x 2 is 2 when x = 1.
Consider points P and Q on the function f( x) = x 2 .
P is at (1, 1) and Q, h units from P in the x-direction, has coordinates (1+h, (1+h)2).
y
12
10 Q
(1 + h, (1 + h)2)
8
2
P h
(1, 1)
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 x
(1 + h ) 2 − 1 1 + 2 h + h 2 − 1
Gradient of line segment PQ is =
1+ h−1 h
h ( 2 + h)
=
h
= 2+h
As Q gets closer to P, h gets smaller and smaller (tends to 0), and the value of
2 + h becomes an even more accurate approximation of the gradient of the
curve at point P.
As h tends to 0, the gradient (2 + h) of the line segment PQ tends to 2.
This can be written as:
The gradient at P(1, 1) = lim ( 2 + h) = 2
h→ 0
221
You will already be familiar with the fact that the gradient of a curve at
the point P is the same as the gradient of the tangent to the curve at P.
Exercise 19.1 1 a Using the proof above as a guide, find the gradient of the function
f(x) = x2 when:
i x=2 ii x = 3 iii x = −1.
b Make a table of the values of x and the corresponding values of the
gradient of the function f(x).
c Looking at the pattern in your results, complete the sentence below.
For the function f( x) = x 2 , the gradient is …
2 a Find the gradient of the function f( x) = 2 x 2 when:
i x=1 ii x = 2 iii x = −2.
b Looking at the pattern in your results, complete the sentence below.
For the function f( x) = 2 x 2, the gradient is …
1
3 a Find the gradient of the function f( x) = x 2 when:
2
i x=1 ii x = 2 iii x = 3.
b Looking at the pattern in your results, complete the sentence below.
For the function f( x) = 1 x 2 , the gradient is …
2
f( x + h) − f( x )
= lim
h→ 0 h
This is known as finding the gradient function from first principles.
222
Worked example
Find, from first principles, the gradient function of f( x) = x 2 + x .
dy f( x + h) − f( x)
= lim
dx h→ 0 h
(( x + h) 2 + ( x + h)) − ( x 2 + x)
= lim
h→ 0 h
= lim x + 2 xh + h + x + h − x − x
2 2 2
h→ 0 h
= lim 2 xh + h + h
2
h→ 0 h
= lim(2 x + h + 1)
h→ 0
= 2x + 1
So the gradient at any point P(x, y) on the curve y = x 2 + x is given by 2 x + 1.
Exercise 19.2 1 Find, from first principles, the gradient function of each function. Use the
worked example above as a guide.
a f( x) = x 3 b f( x) = 3 x 2 c f( x) = x 2 + 2 x
d f( x) = x − 2
2
e f( x) = 3 x − 3 f f( x) = 2 x 2 − x + 1
2 Copy and complete the table below using your gradient functions from
the previous question and Exercise 19.1 Q1−3.
Function f(x) Gradient function f′(x)
x2
2x2
1 2
x
2
x2 + x 2x + 1
x3
3x2
x2 + 2x
x2 − 2
3x − 3
2x2 − x + 1
3 Look at your completed table for Q2. Describe any patterns you notice
between a function and its gradient function.
Worked examples
a Calculate the gradient function of f( x) = 2 x 3 .
f '( x) = 3 × 2 x (3−1) = 6 x 2
b Calculate the gradient function of y = 5 x 4 .
dy
= 4 × 5 x (4 −1) = 20 x 3
dx
Exercise 19.3 1 Calculate the gradient function of each of the following functions:
a f( x) = x 4 b f( x) = x 5 c f( x) = 3 x 2
d f( x) = 5 x 3 e f( x) = 6 x 3 f f( x) = 8 x 7
Differentiation
The process of finding the gradient function is known as differentiation.
Differentiating a function produces the derivative or gradient function.
Worked examples
a Differentiate the function f( x) = 3 with respect to x.
The graph of f( x) = 3 is a horizontal line as shown:
y
5
4
f (x) = 3
3
–2 –1
0
1 2 3 4 5 6 7 8 x
–1
–2
A horizontal line has no gradient. Therefore
dy
⇒ for f(x) = 3, dx = 0
224
dy
So = 0 × 3 x (0 −1)
dx
=0
3
f (x) = 2x
2
1
0
–2 –1
0
1 2 3 4 x
–1
–2
f( x) = 2 x can be written as f( x) = 2 x 1 .
dy
So = 1 × 2 x (1−1)
dx
= 2x0
dy
But x0 = 1, therefore = 2.
dx
dy
If f( x ) = ax ⇒ = a.
dx
225
f '(x) = x2 – 2 y
16
14
12
10
f (x) = 1 x3 − 2x + 4
8 3
6
4
2
–6 –5 –4 –3 –2 –1 1 2 3 4 5 6 x
–2
–4
–6
Therefore f( x) = 2 x x+ x
3 2
= 2x2 + x
dy
⇒ = 4x + 1
dx
226
x x
d x +4 x2 x
3 2
e 3 x( x + 1) f 2 x 2 ( x − 2)
g ( x + 5) 2 h (2 x − 1)( x + 4) i ( x 2 + x)( x − 3)
So far we have only used the variables x and y when finding the gradient
function. This does not always need to be the case. Sometimes, as
demonstrated below, it is more convenient or appropriate to use other
variables.
If a stone is thrown vertically upwards from the ground with a speed
of 10 m/s, its distance s from its point of release is given by the formula
s = 10t − 4.9t 2 , where t is the time in seconds after the stone’s release.
A graph plotted to show distance against time is shown below.
s
1 2
t
The velocity (v) of the stone at any point can be found by calculating
the rate of change of distance with respect to time, i.e. ds .
dt
Therefore if s = 10t − 4.9t 2
ds
v=
dt
= 10 − 9.8t
Worked example
Calculate ds for the function s = 6t 2 − 4t + 1.
dt
ds
= 12t − 4
dt
227