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

Try it: check by going back

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: eight 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.

5

Which of these is an anti-derivative of 6x² − 4?

6

Why does every anti-derivative need + c?

7

A student anti-differentiates 8x³ − 6x + 1 and writes 2x⁴ − 3x² + c. What is the mistake?

8

A Rotorua hot pool fills at dV/dt = 60 − 3t litres per minute and starts with 100 litres. How much water is in it after 10 minutes?

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. 5. 2x³ − 4x + 9: differentiating it back gives 6x² − 4, and + 9 is just one choice of c. 6. A constant differentiates to 0, so a whole family of curves has the same gradient function. 7. A term is missing: the constant 1 becomes x, so the answer is 2x⁴ − 3x² + x + c. 8. 550 L. V = 60t − 1.5t² + c and V(0) = 100 gives c = 100, so V(10) = 600 − 150 + 100 = 550.

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

Challenge

1

A curve has gradient function dydx = ax² − 2x, where a is a constant. The line y = 4x − 7 is the tangent to the curve at the point (2, 1). Find a and the equation of the curve. Then find the other point on the curve where the gradient is 4.

Hint

The tangent tells you two things at x = 2: the gradient of the curve there, and a point on the curve. Use the gradient first.

Answer

a = 2, y = 2x³3 − x² − 13, and the other point is (−1, −2).

Step by step
  1. The tangent at (2, 1) has gradient 4, so dydx = 4 when x = 2. That gives a.
  2. Anti-differentiate the gradient function, with + c.
  3. The curve goes through (2, 1), so substitute it to find c.
  4. Set dydx = 4 again and solve the quadratic: x = 2 is one answer, the other is new.
  5. Find the height of the new point from the curve, not from the gradient.
Full working
  1. a(2)² − 2(2) = 4gradient of the tangent at x = 2
  2. 4a − 4 = 4, so a = 2solve
  3. y = 2x³3 − x² + canti-differentiate 2x² − 2x
  4. 2(8)3 − 4 + c = 1through (2, 1)
  5. 163 − 4 + c = 1, so c = −13solve for c
  6. 2x² − 2x = 4where else is the gradient 4?
  7. x² − x − 2 = 0, so (x − 2)(x + 1) = 0divide by 2, factorise
  8. x = −1x = 2 is the tangent point
  9. y = 2(−1)3 − 1 − 13 = −2height from the curve
  10. a = 2, y = 2x³3 − x² − 13, other point (−1, −2)
2

A curve has gradient function dydx = 3x² − 6x − 6. The line y = 3x + 1 is a tangent to the curve, but you are not told where it touches. Find every possible equation of the curve, and the point where the line touches each one.

Hint

At the touching point the curve's gradient equals the line's gradient. Find those x-values first, then make the curve go through the line's point there.

Answer

y = x³ − 3x² − 6x − 4, touching at (−1, −2), or y = x³ − 3x² − 6x + 28, touching at (3, 10).

Step by step
  1. Anti-differentiating gives a family of curves y = x³ − 3x² − 6x + c, one for each c.
  2. Where the line is a tangent, the curve's gradient must be 3, the line's gradient. That happens at two x-values.
  3. At a touching point the curve and the line also have the same height, so the point is on the line.
  4. Each x-value gives its own c, so there are two curves.
  5. Give each curve with its own touching point.
Full working
  1. y = x³ − 3x² − 6x + canti-differentiate
  2. 3x² − 6x − 6 = 3gradient of the line is 3
  3. x² − 2x − 3 = (x − 3)(x + 1) = 0, so x = 3 or x = −1solve
  4. x = 3: line height 3(3) + 1 = 10, curve 27 − 27 − 18 + c = c − 18 = 10, so c = 28same height
  5. x = −1: line height −2, curve −1 − 3 + 6 + c = c + 2 = −2, so c = −4same height
  6. y = x³ − 3x² − 6x + 28 touching at (3, 10), or y = x³ − 3x² − 6x − 4 touching at (−1, −2)
3

Curve A has gradient function dydx = 3x² + 2x − 1 and passes through (0, 5). Curve B has gradient function dydx = 2x + 2 and passes through (1, 6). Find the equation of each curve. Show that the curves touch at (1, 6), find the other point where they meet, and find the greatest vertical gap between the curves between these two points.

Hint

Write the gap as A − B, a single cubic. Where the curves touch, the gap has a double root.

Answer

A: y = x³ + x² − x + 5 and B: y = x² + 2x + 3. They touch at (1, 6), meet again at (−2, 3), and the greatest gap between them is 4, at x = −1.

Step by step
  1. Anti-differentiate each gradient function with its own constant, and use each curve's point to fix it.
  2. Both curves pass through (1, 6) with the same gradient there, so they share a tangent: they touch.
  3. The gap A − B is a cubic. Touching at x = 1 makes (x − 1)² a factor, and the last factor gives the other meeting point.
  4. The gap is greatest where its own derivative is 0, inside the interval −2 < x < 1.
  5. Check the gap at that point is bigger than at the ends, where it is 0.
Full working
  1. A: y = x³ + x² − x + c, c = 5through (0, 5)
  2. B: y = x² + 2x + k, 1 + 2 + k = 6, so k = 3through (1, 6)
  3. A(1) = 1 + 1 − 1 + 5 = 6, gradients 3 + 2 − 1 = 4 and 2 + 2 = 4same point, same gradient: they touch
  4. A − B = x³ − 3x + 2 = (x − 1)²(x + 2)the gap
  5. x = −2: A = −8 + 4 + 2 + 5 = 3, B = 4 − 4 + 3 = 3other meeting point (−2, 3)
  6. d(A − B)dx = 3x² − 3 = 0, so x = −1x = 1 is the end point
  7. A − B at x = −1: −1 + 3 + 2 = 4A = 6, B = 2
  8. A: y = x³ + x² − x + 5, B: y = x² + 2x + 3; meet again at (−2, 3); greatest gap 4 at x = −1

More challenge problems

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