0% found this document useful (0 votes)
8 views9 pages

Gradient Function

Uploaded by

aliciaxfries
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views9 pages

Gradient Function

Uploaded by

aliciaxfries
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

19 Differentiation and the

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.

The gradient of a straight line


You will already be familiar y
with calculating the gradient
Q(11, 10)
of a straight line. 10
9
The gradient of the line
passing through points 7
(x1, y1) and (x2, y2) is 6
y2 − y1 5
calculated by x 2 − x1
.
P(1, 5)
4
Therefore, the gradient of 3
the line passing through
2
points P and Q is:
1
10 − 5 = 5
11 − 1 10 x
1 2 3 4 5 6 7 8 9 10 11
=1
2

The gradient of a curve


The gradient of a straight line
y
is constant, i.e. it is the same at
18
any point on the line. However,
not all functions are linear 16
(straight lines). A function
that produces a curved graph 14
is more difficult to work with 12
because the gradient of a curve
is not constant. 10
P
The graph (right) shows the 8
function f( x) = x 2. 6
Point P is on the curve at (3, 9). 4
If P moves along the curve to
the right, the gradient of the 2
curve becomes steeper. If P
moves along the curve towards –4 –3 –2 –1 0 1 2 3 x
the origin, the gradient of the
curve becomes less steep.

219

9781510421684.indb 219 22/02/18 1:57 PM


19 DIFFERENTIATION AND THE GRADIENT FUNCTION

The gradient of the function at the point P(1, 1) can be calculated as


follows:
• Mark a point Q1(3, 9) on the graph and draw the line segment PQ1.
y
18

16

14

12

10 Q1
(3, 9)
8

2
P
(1, 1)
–1
0 1 2 3 4 x

The gradient of the line segment PQ1 is an approximation of the


gradient of the curve at P.
9−1 =4
Gradient of PQ1 is 3−1
• Mark a point Q2 closer to P, e.g. (2, 4), and draw the line segment PQ2.
y
18

16

14

12

10

6
Q2
4 (2, 4)

2
P
(1, 1)
–1 0 1 2 3 4 x

The gradient of the line segment PQ2 is still only an approximation


of the gradient of the curve at P, but it is a better approximation than
the gradient of PQ1.

220

9781510421684.indb 220 22/02/18 1:57 PM


The gradient of a curve

4−1 =3
Gradient of PQ2 is 2−1

• If a point Q3(1.5,1.52) is chosen, the gradient PQ3 will be an even


better approximation.
1.5 2 − 1 = 2.5
Gradient of PQ3 is 1.5 − 1

For the point Q4(1.25,1.252), the gradient of PQ4 is 1.25 2 − 1 = 2.25


1.25 − 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

In other words, the limit of 2 + h as h tends to 0 is 2.

221

9781510421684.indb 221 22/02/18 1:57 PM


19 DIFFERENTIATION AND THE GRADIENT FUNCTION

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

y The gradient function


y = f (x) You may have noticed a pattern in your answers to the
Q previous exercise. In fact, there is a rule for calculating the
f (x + h) gradient at any point on the particular curve. This rule is known
dy
as the gradient function, f ′( x) or . dx

The function f( x) = x 2 has a gradient function f ′( x) = 2 x


dy
or dx = 2 x.
The above proof can be generalised for other functions f( x).
h f( x + h) − f(x)
f (x) P Gradient of line segment PQ = ( x + h) − x

Gradient at P = lim ( Gradient of line segment PQ )


x x+h x h→ 0

f( x + h) − f( x )
= lim
h→ 0 h
This is known as finding the gradient function from first principles.

222

9781510421684.indb 222 22/02/18 1:57 PM


The gradient function

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.

The functions used so far have all been polynomials. There is a


relationship between a polynomial function and its gradient function.
This is best summarised as follows:
dy
If f( x ) = ax n , then = anx n −1 .
dx
So, to work out the gradient function of a polynomial, multiply the
coefficient of x by the power of x and subtract 1 from the power.
223

9781510421684.indb 223 22/02/18 1:57 PM


19 DIFFERENTIATION AND THE 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

2 Calculate the gradient function of each of the following functions:


1 1
a f( x) = 1 x 3 b f( x) = 4 x 4 c f( x) = 4 x 2
3
1 4
d f( x) = x 2
e f( x) = 5 x 3 f f( x) = 2 x 3
2 9

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

9781510421684.indb 224 22/02/18 1:57 PM


Differentiation

This can also be calculated using the rule for differentiation.


f( x) = 3 can be written as f( x) = 3 x 0.

dy
So = 0 × 3 x (0 −1)
dx
=0

The derivative of a constant is zero.


dy
If f (x) = c ⇒ =0
dx

b Differentiate the function f( x) = 2 x with respect to x.


The graph of f( x) = 2 x is a straight line as shown:
y
5

3
f (x) = 2x
2

1
0
–2 –1
0
1 2 3 4 x
–1

–2

From earlier work on linear graphs, the gradient is known to be 2. Therefore


dy
⇒ for f(x) = 2x, = 2.
dx
This too can be calculated using the rule for differentiation.

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

9781510421684.indb 225 22/02/18 1:57 PM


19 DIFFERENTIATION AND THE GRADIENT FUNCTION

c Differentiate the function f( x) = 1 x 3 − 2 x + 4 with respect to x.


3
The graphs of the function and its derivative are as follows:

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

It can be seen that the derivative of the function f( x) is a quadratic. The


equation of this quadratic is y = x 2 − 2 . The derivative of f( x) is therefore
f ′( x) = x 2 − 2 .
In general, the derivative of a function with several terms can be found by
differentiating each of the terms individually.
2x3 + x2
d Differentiate the function f( x) = with respect to x.
x
A common error here is to differentiate each of the terms individually.
3 2 2
The derivative of 2 x + x is NOT 6 x + 2 x .
x 1
2x3 + x2 2 x 3
x 2
can be written as
x
+ x and simplified to 2 x 2 + x.
x

Therefore f( x) = 2 x x+ x
3 2

= 2x2 + x
dy
⇒ = 4x + 1
dx

In general, rewrite functions as sums of terms in powers of x before


differentiating.

Exercise 19.4 1 Differentiate each expression with respect to x.


a 5x 3 b 7x 2 c 4x6
1 3 5
d 4 x2 e 2 x6 f x
3 4
g 5 1
h 6x i 8

226

9781510421684.indb 226 22/02/18 1:57 PM


Differentiation

2 Differentiate each expression with respect to x.


1
a 3x 2 + 4 x b 5x 3 − 2 x 2 c 10 x 3 − x 2
2
1 3 1 2
d 6 x − 3x + x
3 2
e 12 x − 2 x + 5
4 2
f x − x +x−4
3 2
g −3 x 4 + 4 x 2 − 1 3 6 2 3
h −6 x 5 + 3 x 4 − x + 1 i − x + x −8
4 3
3 Differentiate each expression with respect to x.
b 4 x −2 x c 6 x 2+x2 x
3 2 3 2
a x +x
3 2

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

9781510421684.indb 227 22/02/18 1:57 PM

You might also like