Vertex Learn

Anti-differentiation and why you need + c

What this lesson covers

  • Anti-differentiation reverses differentiation, and every answer has a family of curves, so + c is needed.
  • A known point on the curve fixes the value of c.
Key idea

Going backwards

  • Differentiating takes a function to its gradient.
  • Anti-differentiating goes back the other way.
  • Given the gradient, find the function.
Key idea

The rule, reversed

  • Raise the power by one.
  • Divide by the new power.
  • Then add + c.
TermDoGet
xⁿraise the power by 1xⁿ⁺¹
divide by the new powerxⁿ⁺¹/(n + 1)
a constant kbecomeskx
alwaysadd+ c
Worked example

Anti-differentiate 6x² − 4x + 3

  • Term by term.
  • Three terms in, three out.
  1. 6x² → 6x³/3 = 2x³power 2 to 3, ÷ 3
  2. −4x → −4x²/2 = −2x²power 1 to 2, ÷ 2
  3. 3 → 3xa constant k → kx
  4. 2x³ − 2x² + 3x + cadd + c
  5. check: 6x² − 4x + 3differentiate back
Worked example

Fractions, and checking

  • Same rule for fractions.
  • Differentiate back to check.
  1. x² → x³/3 + cpower 2 to 3, ÷ 3
  2. 3 − x/2 = 3 − ½xx/2 is ½x
  3. 3 → 3xa constant k → kx
  4. −½x → −½ × x²/2power 1 to 2, ÷ 2
  5. = −x²/4½ ÷ 2 = ¼
  6. 3x − x²/4 + c
  7. check: 3 − 2x/4 = 3 − x/2differentiate back
Key idea

Why + c: a family of curves

  • x², x² + 2 and x² − 2 all have gradient 2x.
  • At x = 1 they are all equally steep.
  • The gradient cannot tell them apart.
Why + c: a family of curves
Key idea

Try it: a family of curves

Worked example

A point picks one curve

  • Suppose the curve passes through (1, 3).
  • 1 + c = 3, so c = 2.
  • Only y = x² + 2 goes through it.
A point picks one curve
Worked example

Finding c, written out

  • Anti-differentiate, with + c.
  • Substitute the point.
  • Solve for c.
  1. f′(x) = 2x + 5
  2. f(x) = x² + 5x + canti-differentiate
  3. f(1) = 1² + 5(1) + c = 10through (1, 10)
  4. 6 + c = 10, so c = 4
  5. f(x) = x² + 5x + 4
  6. check: f′(x) = 2x + 5
  7. check: f(1) = 1 + 5 + 4 = 10
Key idea

The two ways marks go

  • Leaving out + c.
  • Dropping a term from a long expression.
  • Count terms in, count terms out.
Key idea

Graphing calculator

Worked example

In context: filling a tank

  • It starts with 50 litres.
  • V(0) = 50 fixes c.
  1. dV/dt = 20 − 2tlitres a minute
  2. V = 20t − 2t²/2 + canti-differentiate
  3. = 20t − t² + c
  4. V(0) = 0 − 0 + c = 5050 L at the start
  5. c = 50, V = 20t − t² + 50
  6. V(5) = 20 × 5 − 5² + 50
  7. = 100 − 25 + 50 = 125 L
Key idea

Where the marks are

  • Achieved: a general anti-derivative with + c.
  • Merit: c found from a point.
  • Excellence: used in a real problem.
Summary

What to take away

  • Raise, divide, + c, then let a point fix c.
Anti-differentiateraise the power, divide by it
Constant kbecomes kx
Every time+ c
Whya family of curves, same gradient
A pointfixes c
Checkdifferentiate your answer back

Common mistakes

  • 6x² − 4x + 3 anti-differentiates to 2x³ − 2x² + 3x
    Add + c every time, because any constant differentiates to 0: the answer is 2x³ − 2x² + 3x + c.
  • The constant 3 anti-differentiates to 0.
    A constant k becomes kx, because 3x differentiates back to 3. Count terms in, count terms out.
  • x²/2 anti-differentiates to x³/2 + c
    Raise the power, then divide by the new power: x²/2 → x³/(2 × 3) = x³/6 + c.
  • f′(x) = 6x and f(2) = 15, so f(x) = 3x² + 15
    Substitute the point to find c: 3 × 2² + c = 15 gives c = 3, so f(x) = 3x² + 3.
Your turn

Your turn: four questions

  • Every answer needs + c, or a value for it.
  • Check by differentiating back.
1

Anti-differentiate 4x³ + 2x.

2

f′(x) = 6x and f(2) = 15. Find f(x).

3

Anti-differentiate x²/2.

4

Gradient 2x − 3, through (0, 4). Find the curve.

Show answer

1. x⁴ + x² + c. 2. f(x) = 3x² + c; 12 + c = 15, so c = 3 and f(x) = 3x² + 3. 3. x³/6 + c. 4. y = x² − 3x + c; at (0, 4), c = 4, so y = x² − 3x + 4.

Worked example

The answers: questions 1 and 2

  1. 1. 4x³ → 4x⁴/4 = x⁴power 3 to 4, ÷ 4
  2. 2x → 2x²/2 = x²power 1 to 2, ÷ 2
  3. x⁴ + x² + cadd + c
  4. 2. f(x) = 6x²/2 + c = 3x² + canti-differentiate
  5. f(2) = 3 × 2² + c = 15f(2) = 15
  6. 12 + c = 15, so c = 3
  7. f(x) = 3x² + 3
Worked example

The answers: questions 3 and 4

  1. 3. x²/2 → x³/(2 × 3)power 2 to 3, ÷ 3
  2. = x³/6 + cadd + c
  3. 4. 2x → x², −3 → −3xanti-differentiate
  4. y = x² − 3x + c
  5. 4 = 0² − 3(0) + cthrough (0, 4)
  6. c = 4
  7. y = x² − 3x + 4
  8. check: dy/dx = 2x − 3
Your turn

Sample question: Achieved

A curve has gradient function dydx = 6x² − 4x + 5 and passes through the point (1, 8). Find the equation of the curve.

Hint

Anti-differentiate each term (add 1 to the power, then divide by the new power), include + c, then use the point to find c.

Answer

y = 2x³ − 2x² + 5x + 3

Step by step
  1. Anti-differentiating undoes differentiating. The rule for each term: add 1 to the power, then divide by the new power.
  2. 6x²: the power goes up to 3, then divide by 3, giving 6x³3 = 2x³.
  3. −4x: the power goes up to 2, then divide by 2, giving −2x². And 5 becomes 5x.
  4. Add + c, because any constant differentiates to zero. So y = 2x³ − 2x² + 5x + c.
  5. Classic mistake: leaving out + c. Then the curve cannot be made to pass through (1, 8), and the answer loses marks.
  6. Use the point: when x = 1, y = 8. So 8 = 2 − 2 + 5 + c, which gives 8 = 5 + c and c = 3.
  7. The curve is y = 2x³ − 2x² + 5x + 3.
  8. Check by differentiating: dydx = 6x² − 4x + 5, which is what we started with. And at x = 1, y = 2 − 2 + 5 + 3 = 8. Correct.
Full working
  1. y = 6x³3 − 4x²2 + 5x + cadd 1 to the power, divide by the new power
  2. y = 2x³ − 2x² + 5x + c
  3. 8 = 2 − 2 + 5 + c, so c = 3the point (1, 8)
  4. y = 2x³ − 2x² + 5x + 3
Your turn

Sample questions: Merit

1

Given f′(x) = (2x − 1)(x + 3) and f(2) = 10, find f(x).

Hint

You cannot anti-differentiate a product of brackets term by term. Expand first, then anti-differentiate and use f(2) = 10.

Answer

f(x) = 2x³3 + 5x²2 − 3x + 23

Step by step
  1. There is no simple rule for anti-differentiating a product, so expand the brackets first.
  2. (2x − 1)(x + 3) = 2x² + 6x − x − 3 = 2x² + 5x − 3.
  3. Classic mistake: anti-differentiating each bracket separately and multiplying. That does not undo differentiation.
  4. Anti-differentiate each term: 2x² gives 2x³3, 5x gives 5x²2, and −3 gives −3x.
  5. Add + c: f(x) = 2x³3 + 5x²2 − 3x + c.
  6. Use f(2) = 10. 2 × 83 = 163, 5 × 42 = 10, and −3 × 2 = −6. So 163 + 10 − 6 + c = 10.
  7. 163 + 4 = 283, so c = 10 − 283 = 303 − 283 = 23.
  8. So f(x) = 2x³3 + 5x²2 − 3x + 23. Keep the fractions exact; decimals like 0.667 lose accuracy.
  9. Check by differentiating: 2x² + 5x − 3, which is (2x − 1)(x + 3) expanded. Correct.
Full working
  1. f′(x) = 2x² + 5x − 3expand first
  2. f(x) = 2x³3 + 5x²2 − 3x + canti-differentiate each term
  3. 163 + 10 − 6 + c = 10f(2) = 10
  4. c = 10 − 283 = 23
  5. f(x) = 2x³3 + 5x²2 − 3x + 23
2

Water flows into a tank so that the volume V litres changes at a rate dVdt = 40 − 2t litres per minute, t minutes after the tap is turned on. The tank holds 100 litres at t = 0. Find V in terms of t, the volume after 10 minutes, and the volume when water stops flowing in.

Hint

Anti-differentiate the rate and use V = 100 at t = 0 to find c. The water stops flowing in when the rate is zero.

Answer

V = 40t − t² + 100; 400 litres after 10 minutes; 500 litres when the flow stops at t = 20

Step by step
  1. The rate dVdt is the derivative of V, so anti-differentiate it to get V.
  2. 40 becomes 40t, and −2t becomes −2t²2 = −t². So V = 40t − t² + c.
  3. Use the starting volume: at t = 0, V = 100. So 100 = 0 − 0 + c and c = 100.
  4. Classic mistake: thinking c is always 0. Here c is the volume already in the tank at the start.
  5. So V = 40t − t² + 100.
  6. After 10 minutes: V = 400 − 100 + 100 = 400 litres.
  7. Water stops flowing in when the rate is zero: 40 − 2t = 0, so t = 20 minutes.
  8. At t = 20: V = 800 − 400 + 100 = 500 litres.
  9. Check by differentiating: dVdt = 40 − 2t, as given. And the rate is positive for t < 20, so the volume rises the whole time up to 500 litres.
Full working
  1. V = 40t − t² + canti-differentiate the rate
  2. 100 = cV = 100 at t = 0
  3. V(10) = 400 − 100 + 100 = 400 L
  4. 40 − 2t = 0, so t = 20the flow stops
  5. V = 40t − t² + 100; 400 L; 500 L at t = 20
Your turn

Sample questions: Excellence

1

A curve has gradient function dydx = 3x² − 12. The local minimum value of the curve is −10. Find the equation of the curve, and the coordinates of its local maximum.

Hint

Find where the gradient is zero and decide which turning point is the minimum. Then anti-differentiate and use the minimum point to find c.

Answer

y = x³ − 12x + 6; the local maximum is (−2, 22)

Step by step
  1. Turning points are where the gradient is zero: 3x² − 12 = 0, so x² = 4 and x = 2 or x = −2.
  2. Decide which one is the minimum. Differentiate the gradient: the second derivative is 6x.
  3. At x = 2 it is 12, which is positive, so x = 2 is a minimum. At x = −2 it is −12, negative, so x = −2 is a maximum.
  4. Anti-differentiate the gradient: y = x³ − 12x + c.
  5. The minimum value is the y value at the minimum, so the point (2, −10) is on the curve.
  6. Substitute: −10 = 8 − 24 + c = −16 + c, so c = 6.
  7. The curve is y = x³ − 12x + 6.
  8. Classic mistake: putting y = −10 at x = −2. The question says minimum, so you must first work out which x is the minimum.
  9. The maximum is at x = −2: y = −8 + 24 + 6 = 22. So the local maximum is (−2, 22).
  10. Check: the maximum (22) is higher than the minimum (−10), as it must be for a cubic with a positive x³ term.
Full working
  1. 3x² − 12 = 0, so x = ±2turning points
  2. d²ydx² = 6x: 12 > 0 at x = 2 (min), −12 < 0 at x = −2 (max)
  3. y = x³ − 12x + canti-differentiate
  4. −10 = 8 − 24 + c, so c = 6minimum at (2, −10)
  5. y(−2) = −8 + 24 + 6 = 22
  6. y = x³ − 12x + 6; maximum (−2, 22)
2

A curve has gradient function dydx = kx(x − 4), where k is a constant. The curve has a turning point at (0, 5) and passes through (3, −4). Find k and the equation of the curve. Then find the other turning point and show whether it is a maximum or a minimum.

Hint

Expand, then anti-differentiate with k still in it. The point (0, 5) gives c, and (3, −4) then gives k.

Answer

k = 1, y = x³3 − 2x² + 5; the other turning point is (4, −173), a minimum

Step by step
  1. Expand the gradient function: dydx = kx² − 4kx. Leave k as a letter for now.
  2. Anti-differentiate: y = kx³3 − 4kx²2 + c = kx³3 − 2kx² + c.
  3. There are two unknowns, k and c, so use the two given points.
  4. (0, 5): every k term is zero at x = 0, so 5 = c.
  5. (3, −4): −4 = k × 273 − 2k × 9 + 5 = 9k − 18k + 5 = −9k + 5. So −9k = −9 and k = 1.
  6. The curve is y = x³3 − 2x² + 5.
  7. The gradient is x(x − 4), which is zero at x = 0 and x = 4. So the other turning point is at x = 4.
  8. y = 643 − 32 + 5 = 643 − 27 = 643 − 813 = −173. The point is (4, −173).
  9. Nature: check the gradient either side of x = 4. At x = 3 it is 3 × (−1) = −3 (falling). At x = 5 it is 5 × 1 = 5 (rising).
  10. Falling then rising means a minimum. So (4, −173) is a local minimum.
  11. Classic mistake: forgetting that k multiplies every term, and anti-differentiating x(x − 4) without it. Then the point (3, −4) cannot be used to find anything.
  12. Check: differentiate y to get x² − 4x = x(x − 4), and y(3) = 9 − 18 + 5 = −4. Both fit.
Full working
  1. dydx = kx² − 4kxexpand
  2. y = kx³3 − 2kx² + c
  3. c = 5the point (0, 5)
  4. −4 = 9k − 18k + 5, so k = 1the point (3, −4)
  5. x(x − 4) = 0 at x = 4: y = 643 − 27 = −173
  6. gradient −3 at x = 3, +5 at x = 5falling then rising: minimum
  7. k = 1, y = x³3 − 2x² + 5; minimum at (4, −173)
Try it

Calculus Grapher

Full screen · PhET Interactive Simulations, University of Colorado Boulder, CC BY 4.0

Practice

Practise this

Worksheet with answersWithout answersDownload PDF
2026 practice paper with worked answersOpen the paper
Report a mistake

More in AS 91262

Is your child on track?

Take the free placement test