Differentiation · Year 1

Differentiation from first principles

A curve is steeper in some places than in others. Differentiation finds exactly how steep it is at any point. You will build the idea from a straight line, then learn the shortcut that every later calculus topic uses.

Where you will use this: finding a speed from a distance graph, how fast a tank fills or drains, the highest or lowest point of a curve (the next topic), and every Year 2 calculus topic.

This page assumes three skills. You can expand brackets. You can write roots and reciprocals as powers of x (indices). You can find the gradient of a straight line. The warm-up checks all three. It covers all four English exam boards: nothing here is specific to one board.

Warm-up: what do you already know?

Four quick questions. No marks. A wrong answer shows where to look.

Skip to the lesson

Find the gradient of the straight line through (1, 3) and (4, 12).

  1. The gradient of a straight line is the rise divided by the run.
  2. Find the rise: the change in y from (1, 3) to (4, 12). Find the run: the change in x.
  3. Divide the rise by the run.
  • You divided the run by the rise. The gradient is the rise divided by the run.
  • That is the rise only (12 − 3). Divide it by the run, 4 − 1 = 3.

Rise = 12 − 3 = 9. Run = 4 − 1 = 3. Gradient = 9 ÷ 3 = 3. The line rises 3 units for each 1 unit across.

Quick recap of the algebra you need (skip if you are happy)

Write 1x2 as a power of x. Type it like x^(-5).

  1. A negative power means one over the positive power. For example x−1=1x.
  2. Which power of x is on the bottom of the fraction?
  3. Write that power with a minus sign.
  • That is x squared, not one over x squared. The power must be negative.
  • The minus sign belongs in the power, not in front of the x.

1x2=x−2, because a negative power means one over the positive power.

Write x as a power of x. Type it like x^(2/3).

  1. A fractional power is a root. The square root is the power one half.
  2. Write x, then the power in brackets.
  • That squares x. The square root is the power one half, not 2.
  • The minus sign would give one over the square root of x. The square root itself has a positive power.

x =x1/2.

Expand and simplify (x+3)2. Type it like x^2+8x+4.

  1. Squaring a bracket means writing it twice: (x+3)(x+3).
  2. Multiply every term in the first bracket by every term in the second.
  3. Join the two x terms.
  • The two middle terms, 3x and 3x, are missing. (x+3)2 is not x2+32.
  • There are two 3x terms. They join to make 6x.

(x+3)(x+3) =x2 +3x +3x +9 =x2+6x+9.

1. The gradient of a curve

The Gradient of a straight line is the same everywhere: rise divided by run. A curve bends, so its steepness changes from point to point. We need a way to talk about the steepness at one point.

Zoom in very close on a smooth curve and it looks like a straight line. That line is the tangent to the curve at that point. It touches the curve there and points the same way as the curve.

Key idea: the gradient of a curve at a point is the gradient of the tangent at that point.

The tangent at A on the curve y = x squared, with its gradient triangleThe curve y = x squared rises to the right. A straight tangent touches it at A (1, 1). A dashed triangle under the tangent goes across 1 and up 2, so the tangent has gradient 2 and the curve has gradient 2 at A.xy−1123246810OA (1, 1)across 1up 2y = x2​gradient at A= 2 ÷ 1 = 2
The tangent at A touches the curve y=x2 at (1, 1). The dashed triangle goes across 1 and up 2, so the gradient of the curve at A is 2.

To read a gradient, draw a triangle under the tangent and divide the distance up by the distance across. A positive gradient means the curve is rising at that point. A negative gradient means it is falling.

At A, the gradient is 2: the curve rises 2 units for each 1 unit across.

Worked example

The tangent to a curve at P passes through (1, 4) and (3, 10). Find the gradient of the curve at P.

  1. The gradient of the curve at P is the gradient of the tangent. Use the two points on the tangent.
  2. Rise = 10 − 4 = 6. Run = 3 − 1 = 2.
  3. Gradient = 6 ÷ 2 = 3. At P, the curve rises 3 units for each 1 unit across.

Now you finish it

The tangent to a curve at Q passes through (0, 9) and (3, 0). Find the gradient of the curve at Q.

  1. Rise = 0 − 9 = ___.
  2. Run = 3 − 0 = ___.
  3. Gradient = rise ÷ run = ___.
Check my answer

Rise = −9, run = 3, so the gradient is −9 ÷ 3 = −3. The gradient is negative, so the curve is falling at Q: it drops 3 units for each 1 unit across.

Check your knowledge: the gradient of a curve

A curve passes through the origin. The tangent to the curve at P is drawn. It passes through (1, 0) and (3, 6). Find the gradient of the curve at P.

A curve with the tangent drawn at PA curve through the origin that rises to the right and gets steeper. A straight tangent touches it at the point P (2, 3). The tangent passes through the two marked points (1, 0) and (3, 6).xy−112342468OP (2, 3)(1, 0)(3, 6)
  1. The gradient of the curve at P is the gradient of the tangent at P.
  2. Use the two points that lie on the tangent: (1, 0) and (3, 6).
  3. Divide the rise by the run.
  • You divided the run by the rise. The gradient is the rise divided by the run.
  • That is the gradient of the straight line from the origin to P. The question asks for the tangent at P, so use the two points on the tangent.
  • That is the rise from (1, 0) to (3, 6) on its own. Divide by the run, 3 − 1 = 2.

Rise = 6 − 0 = 6. Run = 3 − 1 = 2. Gradient = 6 ÷ 2 = 3. At P the curve rises 3 units for each 1 unit across.

Two tangents are drawn to the same curve, one at A and one at B. At which point is the gradient of the curve greater?

Two tangents drawn to the same curveA U-shaped curve with two points marked, A on the left and B further right and higher up. A straight tangent is drawn at each point. The two tangents slope up to the right at different angles.xy−11232468OAB
  • At B, because the tangent there is steeper
  • At A, because A is lower down
  • The same at both, because it is one curve
  1. The gradient of the curve at a point is the gradient of the tangent there.
  2. Look at the two tangents. Which one rises more for each 1 unit across?

The tangent at B slopes up more steeply than the tangent at A, so the gradient of the curve is greater at B.

A straight line has equation y=4x−3. What is the gradient of the line at x=5?

  1. A straight line is its own tangent, so it has one gradient everywhere.
  2. In y=mx+c, the gradient is m.
  • That is the value of y when x = 5. The question asks for the gradient.
  • The gradient of a straight line does not change with x. It is the number in front of x.
  • That is where the line crosses the y-axis, not its gradient.

The line y=4x−3 has gradient 4 at every point, including at x=5.

At a point on a curve, the tangent slopes down as you move from left to right. What does that tell you about the gradient of the curve there?

  • It is positive
  • It is negative
  • It is zero
  1. A positive gradient is uphill from left to right. What is the opposite?
  2. The curve is falling at that point.

The tangent goes down as x increases, so its gradient is negative. The curve is falling at that point.

2. Chords closing in on a tangent

A tangent needs only one point, but we can estimate its gradient from two points. A chord is a straight line segment that joins two points on a curve. Its gradient is rise over run, like any line.

Take the point A (1, 1) on y=x2. Pick a second point B on the curve, further to the right. Now slide B along the curve towards A. The chord AB turns, and it gets closer and closer to the tangent at A.

Chords from A getting closer to the tangent at AThe curve y = x squared with a point A at (1, 1). Three chords run from A to P (3, 9), Q (2, 4) and R (1.5, 2.25), in three line styles. Their gradients are 4, 3 and 2.5. The shorter the chord, the closer it is to the tangent at A, which has gradient 2. A key at the top left gives each line style and its gradient.xy1234246810OAPQRAP: gradient 4AQ: gradient 3AR: gradient 2.5tangent: gradient 2
Three chords from A, each to a point nearer A than the last, in three line styles. Their gradients, 4, 3 and 2.5, are getting closer to the gradient of the tangent, 2.

Here are more chords from A, with the x-coordinate of B and the gradient of the chord AB:

  • B at x=3: 9−13−1 =4.
  • B at x=2: 4−12−1 =3.
  • B at x=1.5: 2.25−11.5−1 =2.5.
  • B at x=1.1: 1.21−10.1 =2.1.
  • B at x=1.01: 1.0201−10.01 =2.01.

The gradients 4, 3, 2.5, 2.1 and 2.01 are getting close to 2. That is the gradient of the tangent at A.

Key idea: as the second point of a chord moves towards the first, the gradient of the chord gets closer to the gradient of the tangent. Each chord gives an estimate. The gradient of the tangent is the value the estimates get close to. B can never be exactly A: a chord needs two different points.

Worked example

Estimate the gradient of y=x2 at x=3 using the chord from x=3 to x=3.1.

  1. At x=3, y=9. At x=3.1, y=3.12=9.61.
  2. Rise = 9.61 − 9 = 0.61. Run = 3.1 − 3 = 0.1.
  3. Gradient of the chord = 0.61 ÷ 0.1 = 6.1. This is an estimate. A closer point, x=3.01, gives 9.0601−90.01 =6.01. The estimates are getting close to 6.

Now you finish it

Estimate the gradient of y=x2 at x=2 using the chord from x=2 to x=2.5.

  1. At x=2, y=4. At x=2.5, y=6.25. Rise = 6.25 − 4 = ___.
  2. Run = 2.5 − 2 = ___.
  3. Gradient of the chord = ___.
  4. The chord from x=2 to x=2.1 has gradient 4.1. The estimates are getting close to ___.
Check my answer

Rise = 2.25, run = 0.5, so the chord gradient is 2.25 ÷ 0.5 = 4.5. The estimates 4.5, 4.1, ... are getting close to 4: the gradient of the curve at x=2.

Check your knowledge: chords

Find the gradient of the chord of y=x2 from the point where x=1 to the point where x=4.

  1. Find the y-coordinate at each end of the chord.
  2. At x=1, y=1. At x=4, y=16. Find the rise and the run.
  3. Divide the rise by the run.
  • That is the rise on its own (16 − 1). Divide it by the run, 4 − 1 = 3.
  • That is the run on its own (4 − 1). The gradient is the rise divided by the run.

Rise = 16 − 1 = 15. Run = 4 − 1 = 3. Gradient = 15 ÷ 3 = 5.

Find the gradient of the chord of y=x3 from x=1 to x=1.1. Give your answer to 2 decimal places.

  1. Find y at x=1 and at x=1.1.
  2. 1.13=1.331. Find the rise and the run.
  3. Divide the rise by the run.
  • That is the rise (0.331) on its own. Divide it by the run, 0.1.

Rise = 1.331 − 1 = 0.331. Run = 0.1. Gradient = 0.331 ÷ 0.1 = 3.31.

Find the gradient of the chord of y=x2 from x=3 to x=3.5.

  1. At x=3, y=9. At x=3.5, y=12.25.
  2. Find the rise and the run.
  3. Divide the rise by the run.
  • That is the rise on its own (12.25 − 9). Divide it by the run, 0.5.

Rise = 12.25 − 9 = 3.25. Run = 0.5. Gradient = 3.25 ÷ 0.5 = 6.5.

The gradients of four chords of y=x2, each starting at x=2, are 5, 4.5, 4.1 and 4.01. Each chord ends nearer to x=2 than the one before. What value do the gradients get close to?

  1. Look at how the numbers change as the chords get shorter.
  2. The gradient of the curve at x=2 is the value they are getting close to.
  • 4.01 is the last chord in the list. The values keep getting closer, so the value they get close to is lower than 4.01.
  • 5 is the first chord in the list. The values get smaller as the chords get shorter, so the value they get close to is below 4.01. Look at the last few numbers.

5, 4.5, 4.1, 4.01, ... are getting close to 4. That is the gradient of the curve at x=2.

The point B slides along a curve towards the point A. What happens to the chord AB?

  • It gets closer to the tangent at A
  • It gets longer and longer
  • It becomes a horizontal line
  1. Picture B moving along the curve until it is almost on top of A.
  2. The line through two points that are almost the same point touches the curve at that point.

As B gets closer to A, the chord AB turns towards the tangent at A.

3. Limits, and differentiation from first principles

The limit idea

Look again at the chord from A (1, 1) to a point B on y=x2. Give B the x-coordinate 1+h. The number h is the run: how far B is to the right of A. (If h is negative, B is to the left. The algebra works for either sign.) So B is the point (1+h,(1+h)2).

The rise is (1+h)2−1 =2h+h2. The gradient of the chord is 2h+h2h. We may divide the top and the bottom by h, because h is not 0. If h were 0, B would be A and there would be no chord. So for every h that is not 0, the gradient of the chord is 2+h.

The chord gradient 2 + h gets close to 2 as h gets close to 0A graph of the chord gradient, 2 plus h, against h. It is a straight line rising to the right. At h equals 0 there is an open circle at a height of 2, because h cannot be 0: the two points of the chord would be the same point. The points at h equals 1 and h equals 0.5 are marked. As h gets close to 0 the gradient gets close to 2.hgradient of the chord−112312345O(1, 3)(0.5, 2.5)h = 0 is not allowedthe gradient gets close to 2
The gradient of the chord, 2+h, plotted against h. There is a gap in the graph at h=0, because there is no chord when h is 0. The line gets close to the height 2.

As h gets closer to 0, 2+h gets closer to 2. We say that 2 is the limit of 2+h as h tends to 0 (h gets close to 0), and write

limh→0(2+h)=2

Read it as "the limit, as h tends to zero, of 2 plus h, is 2". "Tends to" means "gets as close as you like to".

Key idea: a limit is the value an expression gets close to as h gets close to 0. The expression does not have to reach that value, and h is never actually 0. So simplify first, while h is not 0, and then see what value the result gets close to. Do not put h=0 into the fraction: it gives 0 over 0, which has no value.

The derivative from the definition

Now do the same at any point. Write the curve as y=f(x), read as "f of x". It means the height of the curve at x. Let A be the point (x,f(x)) and let B be the point (x+h,f(x+h)).

A chord from the point x to the point x + hA rising curve y = f(x). A is the point with x-coordinate x. B is a second point further right, with x-coordinate x plus h. A chord joins A to B. A dashed right-angled triangle under the chord shows the run, h, and the rise, f of x plus h minus f of x. The gradient of the chord is the rise divided by the run.xyA (x, f(x))B (x + h, f(x + h))run = hrise = f(x + h) − f(x)y = f(x)
The run from A to B is h. The rise is f(x+h)−f(x). The gradient of the chord is the rise divided by the run.

The gradient of the chord is f(x+h)−f(x)h. The gradient of the curve at x is the limit of this as h tends to 0. This limit is called the derivative of f. It is written f′(x), read as "f dash of x".

Key idea (the definition of the derivative):

f′(x)=limh→0f(x+h)−f(x)h

Using this to find a derivative is called differentiation from first principles.

The method is the same every time:

  1. Write f(x+h) and expand it.
  2. Find f(x+h)−f(x), divide by h and simplify. Now h should have cancelled.
  3. Let h tend to 0.

Worked example

Differentiate f(x)=x2 from first principles.

  1. f(x+h) =(x+h)2 =x2 +2xh +h2.
  2. f(x+h)−f(x) =2xh+h2. Divide by h, which is allowed because h is not 0: 2xh+h2h =2x+h.
  3. As h tends to 0, 2x+h tends to 2x. So f′(x) =limh→0(2x+h) =2x.

The gradient of y=x2 at any point is twice the x-coordinate. At x=1 it is 2, as the tangent triangle showed.

Now you finish it

Differentiate f(x)=x3 from first principles. Use (x+h)3 =x3 +3x2h +3xh2 +h3.

  1. f(x+h)−f(x) =x3 +3x2h +3xh2 +h3 −x3, which is ___.
  2. Divide by h: f(x+h)−f(x)h =___.
  3. As h tends to 0, the terms with h in them tend to 0. So f′(x)=___.
Check my answer

The x³ terms cancel, leaving 3x2h +3xh2 +h3. Dividing by h gives 3x2+3xh+h2. As h tends to 0 this tends to 3x2. So f′(x)=3x2.

Check your knowledge: limits and first principles

For f(x)=x2, the rise of the chord from x to x+h is 2xh+h2. Divide it by the run, h, and simplify. Type the gradient of the chord like 5x+3h.

  1. The gradient of the chord is the rise divided by the run.
  2. Divide every term in 2xh+h2 by h.
  3. Do not let h tend to 0 yet. This answer is the gradient of the chord, so it still contains h.
  • That is the value the chord gradient gets close to as h tends to 0. The question asks for the chord gradient itself, which still has the h in it.
  • That is the rise. Divide it by the run, h.

2xh+h2h =2x+h. This is the gradient of the chord. Letting h tend to 0 would then give 2x.

Use differentiation from first principles to find f′(x) for f(x)=3x2. Type it like 5x.

  1. Write f(x+h) =3(x+h)2. Expand it, then find f(x+h)−f(x).
  2. 3(x+h)2 −3x2 =6xh+3h2. Divide by h.
  3. Now let h tend to 0.
  • That is the gradient of the chord. For the gradient of the curve, let h tend to 0: the 3h tends to 0.
  • That is the derivative of x2. The 3 in front multiplies the whole result.

3(x+h)2 −3x2 =3x2 +6xh +3h2 −3x2 =6xh+3h2. Divide by h: 6x+3h. As h tends to 0, this tends to 6x. So f′(x)=6x.

For f(x)=x3, use (x+h)3 =x3 +3x2h +3xh2 +h3 to simplify the gradient of the chord, f(x+h)−f(x)h. Type it like 4x^2+5xh+h^2.

  1. First find f(x+h)−f(x). The x3 terms cancel.
  2. What is left has h in every term. Divide each term by h.
  • That is the value the gradient gets close to as h tends to 0. The question asks for the chord gradient, which still has h in it.
  • That is the rise. Divide every term by the run, h.
  • (x+h)3 is not x3+h3: it has four terms. The terms 3x2h and 3xh2 are missing.

f(x+h)−f(x) =3x2h +3xh2 +h3. Dividing every term by h gives 3x2+3xh+h2.

In first principles working you see 2xh+h2h =2x+h. Why is it allowed to divide by h?

  • h is not 0 at this stage: B is a different point from A, so there is a chord
  • h is 0, so the h's cancel
  • h is very small, so it can be ignored
  1. What would the fraction be if h were exactly 0?
  2. For there to be a chord, the two points must be different.

The chord joins two different points, so h is not 0 and we may divide by it. Only after simplifying do we ask what happens as h tends to 0.

Use first principles to find f′(x) for f(x)=2x3. You may use (x+h)3 =x3 +3x2h +3xh2 +h3. Type it like 5x^2.

  1. Find f(x+h)−f(x) =2(x+h)3 −2x3.
  2. 2(x+h)3 −2x3 =6x2h +6xh2 +2h3. Divide by h.
  3. Let h tend to 0 in what is left.
  • That is the gradient of the chord. For the gradient of the curve, let h tend to 0: the terms with h tend to 0.
  • That is the derivative of x3. The 2 in front multiplies the whole result.

2(x+h)3 −2x3 =6x2h +6xh2 +2h3. Divide by h: 6x2 +6xh +2h2. As h tends to 0 this tends to 6x2. So f′(x)=6x2.

Write down the limit as h tends to 0 of 4x+7h. Type it like 5x.

  1. Look at each term. Which one changes as h changes?
  2. When h is close to 0, what is 7h close to?
  • The 7h part gets close to 0 as h tends to 0, so it should not be in the limit.
  • Only the 7h part tends to 0. The 4x part does not contain h, so it stays.

7h tends to 0 as h tends to 0. 4x does not depend on h. So limh→0(4x+7h) =4x.

4. Notation and the power rule

Two ways to write a derivative

If y=f(x), the derivative can be written f′(x) or dydx. Say "dy by dx". The symbol means "the derivative of y with respect to x".

The letter d is not a number. It stands for "a small change in". So dydx is a single symbol: you cannot cancel the d's. We also write ddx(x2)=2x, read as "d by dx of x squared is 2x". The symbol d by dx means: differentiate what follows with respect to x.

A pattern

We found two results from first principles: x2 has derivative 2x, and x3 has derivative 3x2. The same method shows that x4 has derivative 4x3. Two more facts. The derivative of x is 1, because the graph of y=x has gradient 1 everywhere. The derivative of a constant is 0, because the graph of y=7 is horizontal.

Key idea (the power rule):

ddx(xn)=nxn−1

Bring the power down to the front as a multiplier. Then subtract 1 from the power (this is "taking 1 off"). This works for every rational number n, wherever xn is defined: whole numbers, negative numbers and fractions.

The power rule in two movesTwo rows. The top row shows x to the n becoming n times x to the n minus 1. The bottom row shows the example x to the 5 becoming 5 times x to the 4. Below them are the two moves: bring the power down to the front, then take 1 off the power.xn​n xn-1​differentiatex5​5 x4​differentiate1. The power, 5, comes down to the front.2. The new power is one less: 5 − 1 = 4.
The power rule in two moves, with x5 as an example.

We have proved the rule for n=2 and n=3. The proof for every positive whole number n is in "Why it works" at the end of this page. For negative and fractional n we use the rule without proof here.

Constants, multiples and sums

Three more facts let you differentiate any sum of powers of x.

  • A constant on its own has derivative 0.
  • A constant multiple stays in front: ddx(kf(x)) =kf′(x). For example, 5x4 has derivative 5×4x3=20x3.
  • A sum is differentiated term by term: the derivative of f(x)+g(x) is f′(x)+g′(x).

Why this works: multiplying a function by 5 multiplies every chord gradient by 5. Adding two functions adds their chord gradients. Both facts still hold after you take the limit.

Worked example

Find dydx when y =4x3 −5x2 +7x −9.

  1. Differentiate each term. 4x3 gives 4×3x2=12x2.
  2. −5x2 gives −5×2x=−10x. 7x is 7x1, which gives 7. The constant −9 gives 0.
  3. dydx =12x2 −10x +7.

Now you finish it

Find dydx when y =2x5 +6x2 −x +8.

  1. 2x5 gives 2×5x4=___.
  2. 6x2 gives 6×2x=___.
  3. −x is −1×x1, which gives ___. The constant 8 gives ___.
Check my answer

dydx =10x4 +12x −1. The term −x gives −1, which stays in the answer. The constant 8 gives 0, so it disappears.

Check your knowledge: the power rule

Differentiate y=x7 with respect to x. Type dydx like 3x^2.

  1. The power rule has two moves: bring the power down, then take 1 off the power.
  2. The power is 7. What is 7 − 1?
  • You brought the 7 down but did not take 1 off the power. Change the power 7 to 7 − 1.
  • You lowered the power but did not bring the 7 down to the front. Write the 7 in front of x^6.

dydx =7x7−1 =7x6.

Find f′(x) when f(x)=5x4. Type it like 6x^2.

  1. The 5 is a constant multiple, so it stays. Differentiate x4 and multiply by 5.
  2. ddx(x4) =4x3. Now multiply by 5.
  • You took 1 off the power but did not multiply by 4. Bring the 4 down and multiply it by the 5.
  • You multiplied correctly, but the power must go down by 1: x4 becomes x3.
  • The 5 in front is a constant multiple, so it stays: 5×4x3=20x3.

f′(x) =5×4x3 =20x3.

Differentiate y =3x2−4x+1 with respect to x. Type dydx like 5x^2-3.

  1. Differentiate the three terms one at a time.
  2. 3x2 gives 6x. −4x is −4x1. What does it give?
  3. The constant 1 gives 0.
  • The constant 1 differentiates to 0. It does not stay in the answer.
  • The term −4x does not vanish. It is −4x1, which gives −4×1=−4.

dydx =6x−4+0 =6x−4. The terms gave 6x, −4 and 0.

Find dydx when y=12.

  1. Sketch the graph of y=12. What does it look like?
  2. What is the gradient of a horizontal line?
  • 12 is the height of the line. The line is horizontal, so its gradient is 0.
  • 1 is the derivative of x. A constant has a flat graph, so its derivative is 0.

The graph of y=12 is a horizontal line, so its gradient is 0 everywhere. dydx=0.

Find dydx when y=2x3−x2. Type it like 5x^2-3x.

  1. Differentiate each term. −x2 has the power 2 and a multiplier of −1.
  2. 2x3 gives 2×3x2=6x2.
  • For −x2, bring the 2 down: −1×2x=−2x, not −x.
  • You multiplied correctly, but each power must go down by 1.

2x3 gives 6x2. −x2 gives −2x. So dydx =6x2−2x.

What does dydx mean?

  • The derivative of y with respect to x: the gradient of the curve at each value of x
  • y divided by x, after cancelling the d's
  • The area under the curve
  1. Think of how it was built: the limit of the gradient of a chord.
  2. The letter d means "a small change in".

dydx is the derivative of y with respect to x. It is the limit of the chord gradient: the gradient of the curve.

5. Negative and fractional powers

The power rule works for every rational number n, wherever xn is defined. But a question rarely writes the powers for you. Before you differentiate, rewrite each term as a number times a power of x.

  • A negative power means one over the positive power: 1x=x−1, 1x2=x−2 and 3x2=3x−2.
  • A fractional power is a root: x =x1/2, x3 =x1/3 and 1x =x−1/2.
  • A number on the bottom of a fraction is a constant multiplier: x23=13x2.

Then use the same two moves: bring the power down, then take 1 off. Take care with the arithmetic. −2−1=−3, and 12−1=−12.

Tangents to y equals the square root of xThe curve y equals the square root of x, rising ever more gently. A tangent touches it at (1, 1) with gradient one half. A second tangent touches it at (4, 2) with gradient one quarter, so the curve is flatter there.xy−1123456789−11234O(1, 1): gradient 1/2(4, 2): gradient 1/4y = √x
The curve y=x gets flatter as x increases. The power rule gives dydx =12x−1/2. At x=1 the gradient is 12. At x=4 the gradient is 12×12=14, which is smaller, as the picture shows.
Tangents to y equals 1 over xThe curve y equals 1 over x for positive x, falling from left to right and flattening out. A tangent at (1, 1) slopes down with gradient minus 1. A tangent at (2, one half) slopes down more gently, with gradient minus one quarter. Both gradients are negative because the curve is falling.xy123451234O(1, 1): gradient −1(2, 1/2): gradient −1/4y = 1/x
The curve y=1/x falls everywhere, so its gradient is negative. The power rule gives dydx =−x−2 =−1x2. At x=1 the gradient is −1. At x=2 the gradient is −14.

Worked example

Find dydx when y =4x −3x2.

  1. Rewrite as powers: y =4x1/2 −3x−2.
  2. Differentiate the first term: 4×12x−1/2 =2x−1/2. Differentiate the second: −3×(−2)x−3 =6x−3.
  3. dydx =2x−1/2 +6x−3. You may write this as 2x +6x3.

Now you finish it

Find dydx when y =2x3 −x.

  1. Rewrite each term as a number times a power of x. The first term, 2x3, has the power ___. The second term, x, has the power ___.
  2. So y =2x−3 −x1/2. The first term gives 2×(−3)x−4=___.
  3. The second term, −x1/2, gives −12xp. The new power p is 12−1=___.
Check my answer

dydx =−6x−4 −12x−1/2. In the other form, −6x4 −12x.

Check your knowledge: negative and fractional powers

Write 5x3 as a number times a power of x. Type it like 7x^(-2).

  1. The 5 is on top, so it stays as a multiplier.
  2. The x3 is on the bottom. What does that do to the sign of the power?
  • The x is on the bottom of the fraction, so the power is negative: 1x3=x−3.

5x3 =5×1x3 =5x−3.

Find dydx when y=1x2. Type it like 5x^(-4) or like 5/x^4.

  1. Rewrite 1x2 as a power of x.
  2. The power is −2. Bring it down as a multiplier.
  3. New power: −2−1.
  • You added 1 to the power. The rule takes 1 away: −2−1=−3.
  • 1x2 does not differentiate to 12x. Rewrite it as x−2 and use the power rule.
  • The power is −2, so the multiplier is −2, not 2. Keep the minus sign.

y=x−2, so dydx=−2x−3. In fraction form this is −2x3.

Find dydx when y=x. Give your answer using a power of x or a fraction, like 3x^(-2/3) or 1/(4x^(2/3)).

  1. Rewrite x as a power of x.
  2. Bring the power down as a multiplier.
  3. New power: 12−1.
  • You brought the one half down but did not take 1 off the power. 12−1=−12.
  • You lowered the power but did not bring the one half down. Write 12 in front of x−1/2.

y=x1/2, so dydx =12x−1/2. In fraction form this is 12x.

Find dydx when y=4x3/2. Give your answer using a power of x, like 5x^(1/3), or using sqrt(x).

  1. The 4 is a constant multiple. Differentiate x3/2 and multiply by 4.
  2. Bring 32 down: 4×32. New power: 32−1.
  • 32−1=12, which is positive. Check your subtraction: the new power is 12, not −12.
  • You lowered the power but did not multiply by 32. Multiply 4 by 32 to get the new multiplier.
  • You added 1 to the power. The rule takes 1 away.

4×32x3/2−1 =6x1/2, which is 6x.

Which of these is the derivative of y=1x?

  • It is −1x2
  • It is 1x2
  • It is −1x
  1. Write 1x as x−1.
  2. Bring the power, −1, down in front. Then take 1 off the power.

y=x−1, so dydx =−1×x−2 =−1x2. This agrees with the picture: the curve always falls.

Find the gradient of the curve y=1x at the point where x=2. Give your answer as a fraction or a decimal.

  1. First find dydx for y=x−1.
  2. The gradient at x=2 is the value of dydx when x=2.
  • The curve is falling, so the gradient is negative.
  • That is −1x at x=2. The derivative is −1x2: the power goes down by 1.

dydx =−x−2 =−1x2. At x=2: −14. The gradient is −14, which matches the picture of the tangent at (2,12).

6. Expand or split before you differentiate

The power rule works on a number times a power of x. A product of brackets, or a fraction with several terms on top, is not in that form. Rewrite it first: expand the brackets, and divide each term on top by the term on the bottom. We call this splitting the fraction.

  • x(x−3) =x2−3x.
  • (x+2)2 =x2+4x+4. This is not x2+4: the two middle terms count.
  • x2+4x+4x =x +4 +4x−1. Divide every term on top by x.
  • xx =x1×x1/2 =x3/2. Add the powers when you multiply.
Expand and split first, then differentiate term by termThree boxes stacked from top to bottom joined by arrows. The first box holds (x plus 2) squared over x. The second holds x plus 4 plus 4 x to the power minus 1. The third holds 1 minus 4 x to the power minus 2. Step 1 is to expand the top, then divide each term by x. Step 2 is to differentiate each term. A note says never to differentiate the top and the bottom separately.(x + 2)2​ / xx + 4 + 4x−1​1 − 4x−2​Step 1: expand the top,then divide eachterm by x.Step 2: differentiateeach term.Never differentiate the top and bottom separately.
Expand and split first. Then differentiate each term with the power rule.

Worked example

Find dydx when y=(x+2)2x.

  1. Expand the top: (x+2)2 =x2+4x+4.
  2. Divide each term by x: y =x +4 +4x−1.
  3. Differentiate each term: dydx =1 +0 −4x−2 =1−4x2. At x=1 the gradient is 1−4=−3.

Take care. Do not differentiate the top and the bottom separately and divide. That would give 2x+41 =2x+4, which is wrong.

Now you finish it

Find dydx when y =x3+5xx2.

  1. Divide each term on top by x2: x3x2=___ and 5xx2=___.
  2. So y=x+5x−1.
  3. dydx =1 +5×(−1)x−2 =___.
Check my answer

y=x+5x−1, so dydx =1−5x−2 =1−5x2.

Check your knowledge: rewriting first

Find dydx when y=x(x2−4). Type it like 5x^2-3.

  1. Expand the brackets first: multiply x by each term inside.
  2. You should have two terms, each a power of x.
  3. Differentiate each term.
  • You multiplied the derivatives of x and of x2−4. That does not work. Expand first: y=x3−4x.

y=x3−4x, so dydx=3x2−4.

Find dydx when y=(x+3)2. Type it like 5x+7.

  1. Expand the bracket. Write it as (x+3)(x+3).
  2. You should get three terms. Differentiate each one.
  • The expansion is missing the middle term. (x+3)2 =x2+6x+9, not x2+9.

y=x2+6x+9, so dydx=2x+6.

Find dydx when y=x2+1x. Type it like 5x^(-3)+2, or like 5/x^3+2.

  1. Divide each term on top by x.
  2. You should get y=x+x−1. Differentiate each term.
  • You differentiated the top and the bottom separately. Divide each term on top by x first.
  • The power of x−1 is −1, so its derivative is −1×x−2: keep the minus sign.

y=x+x−1, so dydx =1−x−2 =1−1x2.

Find dydx when y=xx. Give your answer using a power of x or sqrt(x), like 5x^(1/3) or 7sqrt(x).

  1. Write xx as a single power of x. Add the powers: 1+12.
  2. Differentiate x3/2.
  • You multiplied the derivatives of x and of the square root of x. That does not work. Write the product as one power, x3/2, first.

xx =x3/2, so dydx =32x1/2.

Which of these is dydx when y=x+5x?

  • It is −5x2
  • It is 1
  • It is −5x
  1. Divide each term on top by x: y=1+5x−1.
  2. The constant 1 gives 0. Differentiate 5x−1.

y=1+5x−1, so dydx =0−5x−2 =−5x2.

7. The second derivative

Differentiate a derivative and you get the second derivative. For y=f(x) it is written d2ydx2, read as "d two y by dx squared", or f″(x), read as "f double dash of x". Both forms mean: differentiate twice.

Take care with the notation. d2ydx2 is not the same as (dydx)2.

The derivative tells you how steep the curve is. The second derivative tells you how fast the steepness is changing.

Key idea: if d2ydx2 is positive at a point, the gradient is increasing as x increases, and the curve bends upwards. If it is negative, the gradient is decreasing, and the curve bends downwards.

A curve whose gradient increases: positive second derivativeThe curve y equals x squared with three tangents at x equals minus 1, 0 and 1. Their gradients are minus 2, 0 and 2. Moving to the right the gradient goes up each time, so the second derivative is positive and the curve bends upwards.xy−2−112Ogradient −2gradient 0gradient 2the gradient goes up: −2, 0, 2
On y=x2 the gradient goes up as you move right: −2, then 0, then 2. Here d2ydx2=2, which is positive. The curve bends upwards.
A curve whose gradient decreases: negative second derivativeThe curve y equals 4 minus x squared with three tangents at x equals minus 1, 0 and 1. Their gradients are 2, 0 and minus 2. Moving to the right the gradient goes down each time, so the second derivative is negative and the curve bends downwards.xy−2−112Ogradient 2gradient 0gradient −2the gradient goes down: 2, 0, −2
On y=4−x2 the gradient goes down as you move right: 2, then 0, then −2. Here d2ydx2=−2, which is negative. The curve bends downwards.

Worked example

For y =2x3 −5x2 +x, find d2ydx2. Then find its value at x=1.

  1. dydx =6x2−10x+1.
  2. Differentiate again: d2ydx2 =12x−10.
  3. At x=1: 12−10=2. The value 2 is positive, so the gradient is increasing at x=1.

Now you finish it

For y=x5−4x3, find d2ydx2 and its value at x=1.

  1. dydx=___.
  2. d2ydx2=___.
  3. At x=1: 20−24=___. The value −4 is negative, so the gradient is decreasing at x=1.
Check my answer

dydx =5x4−12x2 and d2ydx2 =20x3−24x. At x=1 that is −4.

Check your knowledge: the second derivative

Find d2ydx2 when y =x4 +3x2 −5x. Type it like 5x^2+3.

  1. Differentiate once to find dydx.
  2. dydx =4x3+6x−5. Differentiate that.
  3. The constant −5 gives 0.
  • That is dydx. Differentiate once more.
  • The constant −5 differentiates to 0. It does not stay in the answer.

dydx =4x3+6x−5, so d2ydx2 =12x2+6.

Find f″(x) when f(x) =x3−6x2. Type it like 5x-3.

  1. Find f′(x) first.
  2. f′(x) =3x2−12x. Differentiate again.
  • That is f′(x). f″(x) means differentiate twice.

f′(x) =3x2−12x, so f″(x)=6x−12.

Find the value of d2ydx2 when x=2, for y=x3−3x.

  1. Find dydx, then d2ydx2, as expressions in x.
  2. Then put x=2 into the second derivative.
  • That is dydx at x=2: 3×4−3. You need d2ydx2, which comes from differentiating twice.
  • That is the second derivative as an expression. Put x=2 into it to get a number.

dydx=3x2−3 and d2ydx2=6x. At x=2: 6×2=12. The value 12 is positive, so the gradient is increasing there.

At one point on a curve, d2ydx2=−4. What does that tell you?

  • The gradient is decreasing as x increases through that point
  • The curve is falling at that point
  • The gradient is −4
  1. The second derivative is the derivative of the gradient.
  2. A negative derivative means the thing is decreasing. What is the thing here?

d2ydx2 is the rate of change of the gradient. The second derivative here is negative, so the gradient is decreasing as x increases.

The gradients of a curve are measured at x=0, x=1 and x=2. They are −3, −1 and 1. Is the second derivative positive, negative or zero for x from 0 to 2?

  • Positive
  • Negative
  • Zero
  1. The second derivative is about how the gradient changes, not what it is.
  2. Do the gradients get larger or smaller as x increases?

The gradients go from −3 to −1 to 1. They increase, so the second derivative is positive.

8. Sketching the graph of the derivative

The derivative f′(x) is a function of x, so it has a graph of its own. You can sketch it from the graph of f without any algebra, by reading the gradient of f at each place. (Exam questions may call the derivative the "gradient function". It means the same thing. This book always says "derivative".)

The sign of the gradient along a curveA cubic curve that rises, then falls, then rises again. Short tangents are drawn at three places. The first and third slope up and are labelled gradient positive. The middle one slopes down and is labelled gradient negative. Dashed lines join each label to its tangent.xy−3−2−1123Ogradient positivegradient negativegradient positive
Short tangents along a curve. Where the curve rises, the gradient is positive. Where it falls, the gradient is negative.

Key idea: read the sign and the size of the gradient of f at each x, then plot that as the height of f′.

  • Where f rises as you go right, f′(x) is positive, so the graph of f′ is above the x-axis.
  • Where f falls, f′(x) is negative, so the graph of f′ is below the x-axis.
  • Where the tangent to f is horizontal, f′(x)=0, so the graph of f′ touches or crosses the x-axis.
  • The steeper f is, the further the graph of f′ is from the x-axis.
A curve y = f(x) and the graph of its derivative togetherA solid cubic curve y equals f of x, which rises, falls, then rises. A dashed curve, y equals f dash of x, is a U-shaped parabola. The parabola crosses the x-axis at x equals minus 1 and x equals 1, where the solid curve is flat. Between those two values the dashed curve is below the axis, where the solid curve is falling.xy−2−112Oy = f(x)y = f′(x)f′(x) = 0f′(x) = 0
The solid curve is y =f(x) =x33−x. The dashed curve is its derivative, y =f′(x) =x2−1. The dashed curve crosses the x-axis at x=−1 and x=1, exactly where the solid curve is flat.

There is a pattern in the highest power of x. The derivative of a cubic is a quadratic. The derivative of a quadratic is a straight line. Each differentiation lowers the highest power by 1.

Worked example

Describe the graph of f′ for f(x)=x33−x, using only the shape of the solid curve above.

  1. For x<−1, f rises. So f′(x) is positive: the dashed curve is above the axis.
  2. At x=−1, the tangent is horizontal. So f′(−1)=0: the dashed curve crosses the axis.
  3. For −1<x<1, f falls. So f′(x) is negative. At x=1, f′(1)=0 again. For x>1, f rises again, so f′(x) is positive.
  4. Check by algebra: f′(x)=x2−1, which is 0 at x=−1 and x=1 and negative between them. ✓

Now you finish it

A curve y=f(x) rises for x<1, has a horizontal tangent at x=1, and falls for x>1. Describe f′.

  1. For x<1, the curve rises, so f′(x) is ___ (write positive, negative or zero).
  2. At x=1, the tangent is horizontal, so f′(1)=___.
  3. For x>1, the curve falls, so f′(x) is ___.
Check my answer

f′(x) is positive for x<1, zero at x=1 and negative for x>1. The graph of f′ goes from above the axis, through the axis at x=1, to below it.

Check your knowledge: the graph of the derivative

The graph shows y=f(x). Use it to find the two values of x where f′(x)=0. Type them with "or" between, like 1 or 3.

The graph of a cubic function fA smooth curve through the origin. Coming from the lower left it rises to a hill, falls through the origin to a valley, then rises again to the upper right. The x-axis is marked in whole numbers from minus 4 to 4.xy−4−3−2−11234−20−101020Oy = f(x)
  1. f′(x) is the gradient of the curve. It is 0 where the tangent is horizontal.
  2. Find the two places where the curve is flat. Read their x-values from the axis.
  • Those are the y-values of the two flat points. The question asks for the x-values.
  • At x=0 the curve passes through the origin, falling steeply. The tangent there is not horizontal.

The tangent is horizontal at the top of the left hill and the bottom of the right valley. Reading across, those are at x=−2 and x=2.

The graph shows y=f(x). For which values of x is f′(x) negative? Type your answer as an inequality, like 1<x<4.

The graph of a cubic function fA smooth curve through the origin. Coming from the lower left it rises to a hill, falls through the origin to a valley, then rises again to the upper right. The x-axis is marked in whole numbers from minus 4 to 4.xy−4−3−2−11234−20−101020Oy = f(x)
  1. f′(x) is negative where the curve falls as you go to the right.
  2. Find where the curve goes down from left to right. Give the range of x-values.
  • That is where the curve rises, so f′(x) is positive there. The curve falls between the two flat points.

The curve falls between its two flat points, so f′(x) is negative for −2<x<2. It is positive outside that range.

The graph of y=f(x) is a U-shaped parabola with its lowest point at x=1. Which description fits the graph of y=f′(x)?

  • A straight line that crosses the x-axis at x=1 and slopes upwards
  • A U-shaped parabola with its lowest point at x=1
  • A straight line that crosses the y-axis at 1
  1. What is the gradient of f at its lowest point?
  2. To the left of that point f falls; to the right it rises. What sign does the gradient have on each side?

At the lowest point the tangent is horizontal, so f′(1)=0. On the left f falls, so f′ is negative. On the right f rises, so f′ is positive. A straight line through (1,0) sloping up does all of this.

The graph of y=f(x) is a cubic curve. What shape is the graph of y=f′(x)?

  • A quadratic curve (a parabola)
  • A straight line
  • A cubic curve
  1. A cubic has x3 as its highest power.
  2. What does the power rule do to the highest power?

x3 differentiates to 3x2. So the derivative of a cubic has x2 as its highest power: it is a quadratic.

For the curve in the first question of this set, f(x)=x3−12x. Use f′(x) =3x2−12 to find f′(0).

  1. f′(0) is the gradient of the curve at x=0.
  2. Put x=0 into 3x2−12.
  • f(0)=0 is the height of the curve. f′(0) is its gradient, which comes from 3x2−12.
  • The curve is falling at x=0, so the gradient is negative.

f′(0) =3×02−12 =−12. The gradient is negative, which agrees with the graph in the first question: the curve is falling, steeply, at the origin.

9. The derivative as a rate of change

The gradient of a graph tells you how fast y changes when x increases. So dydx is the rate of change of y with respect to x.

The rate of change is the gradient of the tangentA graph of distance s in metres against time t in seconds. The curve rises ever more steeply. A tangent touches it at t equals 3, where s is 15. A dashed triangle under the tangent goes across 1 second and up 8 metres, so the rate of change at that moment is 8 metres per second.t (s)s (metres)123455101520253035Otangent at t = 3across 1 sup 8 mrate of change at t = 3= 8 m ÷ 1 s = 8 m/s
A distance against time graph. The tangent at t=3 goes up 8 metres for each 1 second across, so the rate of change of s at that moment is 8 metres per second.

Key idea: the units of dydx are the units of y, per unit of x. If s is in metres and t is in seconds, dsdt is in metres per second. A positive rate means y is increasing. A negative rate means y is decreasing.

The gradient of a chord is an average rate of change over a stretch of time. The gradient of the tangent is the rate of change at one moment. Differentiation finds the rate at one moment.

Worked example

A cyclist travels s metres in t seconds, where s=t2+2t for 0≤t≤5. Find how fast the distance is changing when t=3.

  1. dsdt=2t+2.
  2. At t=3: 2×3+2=8.
  3. The rate of change is 8 metres per second. At t=3 s, the cyclist is moving at 8 m/s.

Now you finish it

A tank holds V litres of water after t minutes, where V=40−3t2 for 0≤t≤3. Find the rate of change of the volume when t=2.

  1. dVdt=___.
  2. At t=2: dVdt=___ litres per minute.
  3. The rate is negative, so the volume is ___ (write increasing or decreasing).
Check my answer

dVdt=−6t. At t=2 it is −12. The tank is losing water at 12 litres per minute: it is draining.

Check your knowledge: rates of change

A balloon holds V cm³ of air after t seconds, where V=2t3−t. Find dVdt when t=3. Give the number only, in cm³ per second.

  1. Differentiate V with respect to t.
  2. dVdt=6t2−1.
  3. Put t=3 into dVdt, not into V.
  • That is V when t=3, the volume. The question asks for the rate of change, dVdt.
  • The derivative of 2t3 is 6t2, not 6t. Bring the 3 down and take 1 off the power.

dVdt=6t2−1. At t=3: 6×9−1=53. The volume is increasing at 53 cm³ per second.

A car travels s km in t hours. What are the units of dsdt?

  • Kilometres per hour
  • Kilometres
  • Hours per kilometre
  1. The rate of change is the change in s for each 1 unit of t.
  2. What does 1 unit of t mean here?

dsdt is the change in distance (km) per unit of time (hours), so it is in kilometres per hour.

The graph shows the distance s metres of a trolley after t seconds. The tangent at P is drawn. It passes through (2, 2) and (6, 14). Find the rate of change of s at the moment shown. Give the number only, in metres per second.

A distance-time graph with a tangent at PA graph of the distance s in metres against the time t in seconds. The curve starts at the origin and rises, getting steeper. A straight tangent touches it at the point P (4, 8). The tangent passes through the marked points (2, 2) and (6, 14).t (s)s (metres)123456748121620OP (4, 8)(2, 2)(6, 14)
  1. The rate of change at P is the gradient of the tangent at P.
  2. Use the two points on the tangent: (2, 2) and (6, 14).
  3. Divide the rise by the run.
  • That is the gradient of the chord from the origin to P (8 ÷ 4), an average rate. The rate at P is the gradient of the tangent at P.
  • That is the rise (14 − 2) on its own. Divide it by the run, 6 − 2 = 4.

Rise = 14 − 2 = 12. Run = 6 − 2 = 4. Gradient = 12 ÷ 4 = 3. At P the distance is increasing at 3 metres per second.

The temperature T °C of a cup of tea after t minutes is T=90−2t2 for 0≤t≤5. Find dTdt when t=3. Give the number only, in °C per minute.

  1. Differentiate T with respect to t. The constant 90 gives 0.
  2. dTdt=−4t.
  3. Put t=3 into dTdt.
  • The tea is cooling, so the rate of change is negative. Keep the minus sign: −4×3=−12.
  • That is T when t=3, the temperature. The question asks for the rate of change.

dTdt=−4t. At t=3: −12. The tea is cooling at 12 °C per minute.

10. The gradient at a point

To find the gradient of a curve at a point, follow two steps.

  1. Differentiate to find dydx.
  2. Put the x-value of the point into dydx.

Key idea: put the x-value into the derivative, not into the original equation. The original equation gives the height of the curve. The derivative gives its gradient. The y-coordinate of the point is not needed to find the gradient.

The gradient of y = x cubed minus 4x squared plus 5 at the point (1, 2)The curve y equals x cubed minus 4 x squared plus 5, rising to a peak at (0, 5), falling through the point (1, 2) to a low point to the right, then rising again. A tangent touches it at (1, 2) and slopes steeply down, with gradient minus 5.xy−11234−6−4−2246810O(1, 2)gradient at x = 1 is −5y = x3​ − 4x2​ + 5
The tangent to y =x3−4x2+5 at (1, 2). The derivative is 3x2−8x. At x=1 the gradient is 3−8=−5.

Worked example

Find the gradient of y =x3−4x2+5 at the point (1, 2).

  1. dydx =3x2−8x.
  2. At x=1: 3×12−8×1 =−5.
  3. The gradient is −5. The curve is falling steeply at (1, 2).

Now you finish it

Find the gradient of y=x2+8x at the point where x=2.

  1. Rewrite: y =x2+8x−1. Then dydx=___.
  2. At x=2: 2×2−822 =4−2 =___.
  3. The gradient at x=2 is 2. The curve is rising there.
Check my answer

dydx =2x−8x−2. At x=2 it is 4−84=2.

Check your knowledge: gradient at a point

Find the gradient of the curve y =x3−4x2+5 at the point where x=3.

  1. Differentiate first: find dydx.
  2. dydx =3x2−8x. Now put x=3 into it.
  • That is y when x=3, the height of the curve. The gradient comes from dydx.

dydx =3x2−8x. At x=3: 3×9−8×3 =27−24 =3.

Find f′(9) when f(x)=4x. Give your answer as a fraction.

  1. Rewrite 4x as 4x1/2, then differentiate.
  2. f′(x) =2x−1/2. Now put x=9 into it.
  3. 9−1/2 means one over the square root of 9.
  • A negative power means one over: 9−1/2=13, not 3.
  • The 4 is multiplied by the one half: f′(x) =2x−1/2, not 4x−1/2.

f′(x) =4×12x−1/2 =2x−1/2. At x=9: 2×13=23.

The curve y=x3 has gradient 12 at two points. Find the x-values of both points. Type them with "or" between, like 1 or 3.

  1. Find dydx, then set it equal to 12.
  2. 3x2=12. Solve for x.
  3. A positive number has two square roots, one positive and one negative.
  • There is a second answer: x2=4 has two solutions, x=2 and x=−2. Give both.
  • That is x2. The question asks for x, so take the square root.

dydx=3x2. Set 3x2=12, so x2=4, so x=2 or x=−2. The gradient is 12 at both points: 3×(−2)2=12.

Flip it: from the gradient back to the function

Differentiating goes from a function to its derivative. Now run it backwards: given a derivative, find a function that has it.

Forwards

Start with y=x2. Differentiate: dydx=2x.

Backwards

Start with dydx=2x. Which function has this derivative? y=x2 does. So does y=x2+3, and so does y=x2−3. A constant differentiates to 0, so the derivative cannot tell these functions apart.

Three curves with the same derivativeThree U-shaped curves, y equals x squared plus 3, y equals x squared and y equals x squared minus 3, drawn in three line styles. They are the same shape at three different heights. On a vertical line at x equals 1 each has a short tangent, and the three tangents are parallel, all with gradient 2. A key at the lower right names each curve.xy−2−112345Oy = x2​ + 3y = x2​y = x2​ − 3the three tangents at x = 1are parallel: gradient 2
Three functions with the same derivative, 2x. They are the same curve at three different heights, so their tangents at the same x are parallel.

Key idea: undoing a derivative gives a whole family of functions that differ only by a constant. One point on the curve fixes the constant. To undo the power rule, do its two moves backwards: add 1 to the power, then divide by the new power. Check every answer by differentiating it.

This undoing has a name, integration. It is a later topic. Here you only need to guess a function and check it.

The same flip works on graphs. In section 8 you went from the graph of f to the graph of f′. Backwards, the graph of f′ tells you the gradient of f at each x. Where f′ is above the x-axis, f is rising. Where f′ is below, f is falling. Where f′ crosses the axis, f is flat.

Worked example

A curve has dydx=6x2−4 and passes through (1, 5). Find its equation.

  1. Undo each term. 6x2 comes from 2x3, because ddx(2x3) =6x2. And −4 comes from −4x.
  2. So y =2x3−4x+c, where c is a constant.
  3. The curve passes through (1, 5): 2−4+c=5, so c=7. The equation is y =2x3−4x+7. Check: differentiating gives 6x2−4. ✓

Now you finish it

A curve has dydx =4x3+2x and passes through (0, 3). Find its equation.

  1. 4x3 comes from ___, and 2x comes from ___.
  2. So y =x4+x2+c. At the point (0, 3): 0+0+c=3, so c=___.
  3. The equation is y =x4+x2+3.
Check my answer

ddx(x4) =4x3 and ddx(x2)=2x, so y =x4+x2+c. The point (0, 3) gives c=3.

Check your knowledge: flip it

A curve has dydx=6x and passes through (0, 5). Find its equation. Type it like 2x^2+1.

  1. Which function differentiates to 6x? Try x2 and see what you get.
  2. Which multiple of x2 has derivative 6x? Then add a constant, c.
  3. Use the point (0, 5) to find c.
  • That differentiates correctly, but the curve must pass through (0, 5). At x=0 this gives 0. Add the constant that fixes it.
  • x2+5 differentiates to 2x, not 6x. Check by differentiating.

y=3x2+c. At (0, 5): c=5. So y=3x2+5. Check: dydx=6x. ✓

A curve has dydx=3x2−4 and passes through (2, 1). Find its equation. Type it like x^2-3x+5.

  1. Undo each term of 3x2−4. Which power of x has derivative 3x2? Which term has derivative −4?
  2. Write your terms, then add a constant c.
  3. Put x=2 and y=1 into the equation to find c.
  • Add the constant c. The curve must pass through (2, 1), and x3−4x is 0 at x=2.
  • Put both terms into the equation: 8−8+c=1. The −4x term counts too.

y=x3−4x+c. At (2, 1): 8−8+c=1, so c=1. So y=x3−4x+1.

The graph shows y=f′(x). At which value of x does the graph of y=f(x) have a horizontal tangent?

The graph of the derivative of a function fThe graph of y equals f dash of x. It is a straight line sloping up to the right, crossing the y-axis at minus 2. The axes are marked in whole numbers.xy−2−11234−6−4−2246Oy = f′(x)
  1. A horizontal tangent means the gradient of f is 0.
  2. The graph shows f′(x), the gradient of f. Where is it 0?
  • That is where the graph meets the y-axis: f′(0)=−2. A horizontal tangent needs f′(x)=0, where the graph meets the x-axis.
  • 2 is the gradient of the line in the picture. A horizontal tangent needs f′(x)=0: look for where the line meets the x-axis.

f′(x)=0 where the graph of f′ crosses the x-axis, which is at x=1. So the graph of f has a horizontal tangent at x=1.

f′(x)=2x−2. For x>1, is f increasing or decreasing?

  • Increasing, because f′(x) is positive there
  • Decreasing, because f′(x) is positive there
  • Neither, because f′ is a straight line
  1. Pick a value of x greater than 1, such as 3. What is f′(3)?
  2. What does the sign of the gradient tell you about the curve?

For x>1, 2x−2>0. A positive gradient means f is increasing.

Both y=x2+1 and y=x2−3 have dydx=2x. Why do they have the same derivative?

  • A constant has a flat graph, so adding or subtracting a constant does not change the gradient
  • Because 1 and −3 are close together
  • Because dy by dx only describes the height of the curve
  1. What is the derivative of a constant?
  2. The derivative of a sum is the sum of the derivatives.

The derivative of x2+1 is 2x+0. The derivative of x2−3 is 2x−0. The constant differentiates to 0 in each case.

Spot the mistake

Finding an error in someone else’s working helps you learn. For each one, decide what went wrong.

Asha says: ddx(x3) =x2. What went wrong?

  • She took 1 off the power but did not bring the 3 down as a multiplier
  • She added 1 to the power
  • Nothing, it is correct
  1. Write the power rule: ddx(xn) =nxn−1.
  2. Put n=3 into it and compare.

The rule gives ddx(x3) =3x2. She has lost the multiplier 3.

Ben says: y=5, so dydx=5. What went wrong?

  • The graph of y=5 is horizontal, so its gradient is 0
  • He should have written 1
  • Nothing, a constant differentiates to itself
  1. Sketch the graph of y=5.
  2. What is the gradient of a horizontal line?

The graph of y=5 is a horizontal line, so dydx=0.

Chen says: y=1x2, so dydx=12x. What went wrong?

  • He did not rewrite 1x2 as x−2. The power rule gives −2x−3
  • He should have got 2x−2
  • Nothing, it is correct
  1. Rewrite 1x2 as a power of x first.
  2. Apply the power rule to x−2.

y=x−2, so dydx =−2x−3 =−2x3. Check the sign: for x>0 the curve falls, so the gradient must be negative.

Dee says: for f(x)=x2, f(x+h)−f(x)h =2xh+h2h. She puts h=0, gets 00, and says f′(x)=0. What went wrong?

  • She put h=0 into the fraction before cancelling h. The fraction has no value at h=0. Cancel first to get 2x+h, then let h tend to 0
  • She should not have divided by h
  • Nothing, f dash of x is 0 because the curve is flat
  1. Is it allowed to put h=0 into a fraction that has h on the bottom?
  2. Simplify the fraction while h is not 0. What do you get?

While h is not 0, 2xh+h2h =2x+h. As h tends to 0 this tends to 2x, so f′(x)=2x.

Eli says: d2ydx2 means (dydx)2. For y=x2, dydx=2x, so d2ydx2 =4x2. What went wrong?

  • d2ydx2 means differentiate twice. The answer is 2
  • He should have got 2x
  • He should not have found dy by dx first
  1. Does the 2 in d2y mean squaring?
  2. Differentiate 2x once more.

d2ydx2 means differentiate twice. dydx=2x, and differentiating again gives d2ydx2=2.

Check your knowledge: mixed review

Find f′(x) when f(x) =3x4 −2x2 +x −7. Type it like 5x^3-2x+4.

  1. Differentiate each of the four terms.
  2. 3x4 gives 12x3. −2x2 gives −4x.
  3. x gives 1. The constant −7 gives 0.
  • The constant −7 differentiates to 0. It does not stay in the answer.
  • For −2x2, bring the 2 down and multiply: −2×2x=−4x.

f′(x) =12x3 −4x +1 −0 =12x3−4x+1.

Find dydx when y=2x+x2. Type it like 5x-3x^(-2), or like 5x-3/x^2.

  1. Rewrite 2x as 2x−1.
  2. Differentiate 2x−1: bring −1 down and take 1 off the power.
  3. Differentiate x2.
  • The power is −1, so the multiplier is −1: the term is −2x−2. Keep the minus sign.
  • The power of the first term must go down by 1: −1−1=−2.

y =2x−1+x2, so dydx =−2x−2+2x. In the other form, 2x−2x2.

Find the gradient of the curve y=3x2−5x at the point where x=−1.

  1. Differentiate first: dydx=6x−5.
  2. Put x=−1 into dydx. Take care with the minus sign.
  • 6x at x=−1 is −6, not 6. Then −6−5=−11.
  • That is y when x=−1, the height of the curve. The gradient comes from dydx.

dydx=6x−5. At x=−1: 6×(−1)−5 =−11. The curve is falling steeply there.

Find the value of d2ydx2 when x=4, for y=x5/2. Give your answer as a fraction or a decimal.

  1. Differentiate twice. First dydx =52x3/2.
  2. Differentiate again: bring 32 down and take 1 off the power.
  3. Put x=4. Remember 41/2=2.
  • That is dydx at x=4: 52×43/2 =20. You need d2ydx2.
  • 41/2 is 2, not 1. Multiply 154 by 2.

dydx =52x3/2 and d2ydx2 =154x1/2. At x=4: 154×2=152.

For f(x)=2x2+3x, the gradient of the chord from x to x+h simplifies to 4x+2h+3. Find f′(x). Type it like 5x+7.

  1. f′(x) is the limit of the chord gradient as h tends to 0.
  2. Which terms contain h? What happens to them?
  • That is the gradient of the chord. Let h tend to 0: the 2h tends to 0.
  • Only the 2h tends to 0. The 3 does not contain h, so it stays.

As h tends to 0, 2h tends to 0. The terms 4x and 3 do not contain h. So f′(x)=4x+3.

Find dydx when y=3x2−1x. Type it like 5+x^(-3), or like 5+1/x^3.

  1. Divide each term on top by x.
  2. y=3x−x−1. Differentiate each term.
  • You differentiated the top and the bottom separately. Divide each term on top by x first.
  • The term is −x−1. Its derivative is −1×(−1)x−2 =+x−2: two minus signs make a plus.

y=3x−x−1, so dydx =3+x−2 =3+1x2.

A cyclist has travelled s metres after t seconds, where s=0.5t2+3t. Find how fast the distance is changing when t=4. Give the number only, in metres per second.

  1. The rate of change of s is dsdt.
  2. dsdt=t+3. Put t=4 into it.
  • That is s when t=4, the distance. The question asks for the rate of change, dsdt.

dsdt=t+3. At t=4: 7. The distance is increasing at 7 metres per second.

For y=x3, find the value of d2ydx2 when x=−1. Give the number only. Then, on paper, say what the sign of your answer tells you about the gradient.

  1. dydx=3x2. Differentiate again.
  2. Put x=−1 into the second derivative.
  • 6x at x=−1 is −6. Take care with the minus sign.
  • That is dydx at x=−1. You need the second derivative.

d2ydx2=6x. At x=−1 it is −6. The value −6 is negative, so the gradient is decreasing as x increases through x=−1.

Exam style

Use these like a real paper. The marks tell you how much to write. M marks are for method. A marks are for an accurate answer. B marks are for a correct fact or statement.

Write your working on paper, then type the answer.

[4 marks] Differentiate f(x)=4x2−3x from first principles. Type f′(x) like 5x+7.

  1. The marks tell you the steps: expand, simplify the chord gradient, take the limit.
  2. f(x+h) =4(x+h)2 −3(x+h). Expand it, then find f(x+h)−f(x).
  3. Divide by h, then let h tend to 0.
  • That is the gradient of the chord. Let h tend to 0: the 4h tends to 0.
  • The term −3x also contributes. Its chord gradient is −3, which does not contain h, so it stays.

f(x+h) =4(x2+2xh+h2) −3x −3h. So f(x+h)−f(x) =8xh +4h2 −3h. Divide by h: 8x+4h−3. As h tends to 0 this tends to 8x−3. So f′(x)=8x−3.

  • M1 for expanding f(x+h) correctly
  • M1 for forming f(x+h)−f(x)h and simplifying it to 8x+4h−3
  • M1 for letting h tend to 0 (the limit must be shown)
  • A1 for f′(x)=8x−3
  • y=(2x+3)2x, for x>0.

(a) [3 marks] Find dydx. Type it like 5-3x^(-2), or like 5-3/x^2.

  1. Expand the top first. Then divide each term by x.
  2. (2x+3)2 =4x2+12x+9. You should get three terms, each a power of x.
  3. Differentiate each term.
  • The term 9x−1 has the power −1, so its derivative is −9x−2. Keep the minus sign.
  • The term 9x−1 also differentiates, to −9x−2. It does not disappear.

y =4x2+12x+9x =4x +12 +9x−1. So dydx =4 +0 −9x−2 =4−9x2.

  • M1 for expanding (2x+3)2 =4x2+12x+9
  • M1 for dividing each term by x to get 4x +12 +9x−1
  • A1 for dydx =4−9x−2

(b) [2 marks] Hence find the value of d2ydx2 when x=1.

  1. “Hence” means: use your answer to part (a).
  2. Differentiate 4−9x−2. The 4 gives 0.
  3. Put x=1 into the result.
  • −9×(−2)=+18: a minus times a minus is a plus.
  • That is d2ydx2 as an expression. Put x=1 into it to get a number.

d2ydx2 =−9×(−2)x−3 =18x−3. At x=1: 18. The value 18 is positive, so the gradient is increasing there.

  • M1 for differentiating −9x−2 to get 18x−3
  • A1 for 18
  • A tank holds V litres of water after t minutes.
  • V =120−5t−t2, for 0≤t≤8.

(a) [2 marks] Find dVdt. Type it like 3-4t.

  1. Differentiate each term with respect to t.
  2. The constant 120 gives 0. −5t gives −5.
  • −t2 gives −2t: bring the 2 down.
  • The constant 120 differentiates to 0. It does not stay.

dVdt =0−5−2t =−5−2t.

  • M1 for differentiating at least one term correctly
  • A1 for dVdt=−5−2t

(b) [3 marks] Find the rate of change of the volume when t=3. Give the number only, in litres per minute. Then, on paper, say what the sign of your answer means.

  1. Use your answer to part (a).
  2. Put t=3 into dVdt, not into V.
  • The rate is negative: the volume is going down, so keep the minus sign.
  • That is V when t=3, the volume. The question asks for the rate of change.

dVdt =−5−2×3 =−11. The rate is −11 litres per minute. The sign is negative, so the volume is decreasing: the tank is losing 11 litres each minute at that moment.

  • M1 for substituting t=3 into dVdt
  • A1 for −11
  • B1 for saying that the volume is decreasing (at 11 litres per minute)

[4 marks] f(x) =4x+3x, for x>0. Find the exact value of f′(4). Give your answer as a fraction.

  1. Rewrite both terms as powers of x: 4x1/2 and 3x−1.
  2. Differentiate each term.
  3. Put x=4 into f′(x). Use 4−1/2=12.
  • That is the first term only, 2×4−1/2 =1. The second term also contributes.
  • The second term is −3x−2, which is negative. At x=4 it is −316, so subtract it.

f(x) =4x1/2 +3x−1, so f′(x) =2x−1/2 −3x−2. At x=4: 2×12−316 =1−316 =1316.

  • B1 for rewriting as 4x1/2 +3x−1
  • M1 for differentiating one term correctly
  • A1 for f′(x) =2x−1/2 −3x−2
  • A1 for 1316

Why it works

  • The tangent is the limit of chords. A chord needs two different points, so h is never 0. We simplify while h is not 0, and then ask what value the chord gradient gets close to. That is how a gradient at one point comes from a gradient between two points.
  • The power rule, for positive whole n. Use the binomial expansion of (x+h)n. The first two terms are xn and nxn−1h. Every other term has at least h2 in it. Subtract xn and divide by h: you get nxn−1 plus terms that each still contain h. As h tends to 0, those terms tend to 0. What is left is nxn−1.
  • Negative and fractional powers. The same rule holds, and the pictures agree: y=x flattens as x grows, so its gradient 12x−1/2 falls. y=1/x falls, so its gradient −x−2 is negative. A full proof for these needs ideas from Year 2.
  • Constant multiples and sums. If you multiply a function by 5, every chord gradient is multiplied by 5, and so is the limit. If you add two functions, the chord gradients add, and so do the limits.
  • A constant has derivative 0. Its graph is horizontal, so every chord gradient is 0.
  • The second derivative. It is the rate of change of the gradient. If the gradient is increasing, the tangent turns anticlockwise as you move right, and the curve bends upwards.
  • Working backwards loses the constant. Constants differentiate to 0, so many functions share one derivative. A point on the curve fixes the constant.

Common traps

  • Putting h=0 into the chord gradient before cancelling h.
  • Stopping at 2x+h, or writing it as the derivative. The limit has not been taken yet.
  • Bringing the power down but not taking 1 off it, or taking 1 off but not bringing it down.
  • Leaving a constant term in the derivative. It differentiates to 0.
  • Differentiating 1x2 or x without rewriting them as powers first.
  • Differentiating the top and the bottom of a fraction separately, or multiplying the derivatives of two factors.
  • Losing a minus sign when the power is negative: −2×(−3)=+6.
  • Putting the x-value into the original function instead of into the derivative.
  • Reading d2ydx2 as (dydx)2.
  • Forgetting the constant when working backwards from a gradient.

I can…

Come back in a week and tick again, without looking.

Back to the pyramid Glossary