Integration as the reverse of differentiation

AS · P1 · 12 min

Differentiation turns a function into its gradient function. Integration runs the process backwards: given the gradient function, it recovers the original function. Because a constant disappears when you differentiate, integration can only recover the function up to an unknown constant, and a known point on the curve is needed to fix it. This note covers integrating powers of xx and the classic exam question "find the equation of the curve", which appears on almost every Paper 1. Integrating brackets like (3x−2)5(3x - 2)^5 is in integrating (ax+b)n(ax + b)^n, and areas are in definite integrals.

Undoing a derivative

If dydx=2x\dfrac{dy}{dx} = 2x, what was yy? You know that x2x^2 differentiates to 2x2x, so y=x2y = x^2 is one answer. But x2+5x^2 + 5, x2−3x^2 - 3 and x2+100x^2 + 100 all differentiate to 2x2x as well, because the constant differentiates to zero. So the full answer is y=x2+cy = x^2 + c, where cc is an arbitrary constant.

Definition

An integral (or antiderivative) of f(x)f(x) is a function F(x)F(x) with F′(x)=f(x)F'(x) = f(x). The indefinite integral of f(x)f(x) is

∫f(x) dx=F(x)+c\int f(x)\, dx = F(x) + c

where cc is the constant of integration. Finding it is called integrating f(x)f(x) with respect to xx.

The symbol ∫… dx\int \ldots\, dx means "integrate with respect to xx". The dxdx tells you the variable, and it closes the expression, so ∫(3x+1) dx\int (3x + 1)\, dx means integrate the whole bracket.

Geometrically, all the curves y=x2+cy = x^2 + c have exactly the same gradient at each value of xx: they are vertical translations of one another. Integration gives you the whole family; one point picks out a single member.

y = x^2 + x - 4 y = x^2 + x - 2 y = x^2 + x y = x^2 + x + 2 (1, -2)

These are curves y=x2+x+cy = x^2 + x + c for four values of cc. All have gradient 2x+12x + 1. The one through (1,−2)(1, -2) is y=x2+x−4y = x^2 + x - 4, the example from the syllabus worked in Example 4 below.

The power rule in reverse

To differentiate xnx^n you multiply by the power and reduce the power by one. To integrate, do the opposite in the opposite order: increase the power by one, then divide by the new power.

ddx(xn+1n+1)=(n+1)xnn+1=xn\frac{d}{dx}\left(\frac{x^{n+1}}{n + 1}\right) = \frac{(n + 1)x^n}{n + 1} = x^n

so xn+1n+1\dfrac{x^{n+1}}{n + 1} is an integral of xnx^n. The rule fails only for n=−1n = -1, where it would mean dividing by zero. The integral of x−1=1xx^{-1} = \dfrac{1}{x} is a logarithm, which is in Paper 3, not Paper 1.

Key result
∫xn dx=xn+1n+1+cfor any rational n≠−1\int x^n\, dx = \frac{x^{n + 1}}{n + 1} + c \qquad \text{for any rational } n \neq -1
  • Constant multiples stay: ∫kxn dx=kxn+1n+1+c\displaystyle\int kx^n\, dx = \frac{kx^{n+1}}{n + 1} + c.
  • Sums and differences integrate term by term, with a single + c+\,c at the end.
  • A constant integrates to a multiple of xx: ∫k dx=kx+c\displaystyle\int k\, dx = kx + c.

Check every integral by differentiating it in your head. If you do not get back to the integrand, something is wrong.

Rewrite as powers first

Exactly as for differentiation, roots and reciprocals must become powers of xx, products must be expanded and fractions split before you integrate. There is no product or quotient rule for integration.

IntegrandRewrite asIntegral (without + c+\,c)
x\sqrt{x}x12x^{\frac{1}{2}}23x32\tfrac{2}{3}x^{\frac{3}{2}}
1x2\dfrac{1}{x^2}x−2x^{-2}−x−1=−1x-x^{-1} = -\dfrac{1}{x}
1x\dfrac{1}{\sqrt{x}}x−12x^{-\frac{1}{2}}2x12=2x2x^{\frac{1}{2}} = 2\sqrt{x}
6x4\dfrac{6}{x^4}6x−46x^{-4}−2x−3-2x^{-3}
xxx\sqrt{x}x32x^{\frac{3}{2}}25x52\tfrac{2}{5}x^{\frac{5}{2}}
(x+1)(x−3)(x + 1)(x - 3)x2−2x−3x^2 - 2x - 313x3−x2−3x\tfrac{1}{3}x^3 - x^2 - 3x
x3+2x2\dfrac{x^3 + 2}{x^2}x+2x−2x + 2x^{-2}12x2−2x−1\tfrac{1}{2}x^2 - 2x^{-1}

Dividing by a fraction is multiplying by its reciprocal: x3/23/2=23x32\dfrac{x^{3/2}}{3/2} = \tfrac{2}{3}x^{\frac{3}{2}}. Negative powers need care: −2+1=−1-2 + 1 = -1, and −12+1=+12-\tfrac{1}{2} + 1 = +\tfrac{1}{2}.

Finding the equation of a curve

The constant of integration is fixed by one extra piece of information, usually a point on the curve. This is the syllabus's own example: "find the equation of the curve through (1,−2)(1, -2) for which dydx=2x+1\dfrac{dy}{dx} = 2x + 1."

Equation of a curve from its gradient
  1. Rewrite dydx\dfrac{dy}{dx} as a sum of powers of xx.
  2. Integrate term by term and include + c+\,c.
  3. Substitute the coordinates of the given point into y=…+cy = \ldots + c and solve for cc.
  4. Write the final equation y=…y = \ldots with the value of cc in place.

Information in other forms

The extra information is not always a plain point.

  • A tangent or normal: "the normal at (2,7)(2, 7) has gradient −14-\tfrac{1}{4}" tells you the curve's gradient at x=2x = 2 is 44. That can fix an unknown constant inside dydx\dfrac{dy}{dx}.
  • A stationary point: "dydx=0\dfrac{dy}{dx} = 0 at x=1x = 1" fixes a constant in the derivative.
  • A second derivative: if d2ydx2\dfrac{d^2y}{dx^2} is given, integrate twice. Each integration brings its own constant, so you need two pieces of information.

Worked examples

A polynomial

Find ∫(6x2−4x+5)dx\displaystyle\int \left(6x^2 - 4x + 5\right) dx.

Solution

Integrate term by term: raise each power by one and divide by the new power.

∫(6x2−4x+5)dx=6x33−4x22+5x+c=2x3−2x2+5x+c\int \left(6x^2 - 4x + 5\right) dx = \frac{6x^3}{3} - \frac{4x^2}{2} + 5x + c = 2x^3 - 2x^2 + 5x + c

Check: ddx(2x3−2x2+5x)=6x2−4x+5\dfrac{d}{dx}\left(2x^3 - 2x^2 + 5x\right) = 6x^2 - 4x + 5.

Roots and reciprocals

Find ∫(3x−4x3+2x)dx\displaystyle\int \left(3\sqrt{x} - \frac{4}{x^3} + \frac{2}{\sqrt{x}}\right) dx.

Solution

Rewrite:

∫(3x12−4x−3+2x−12)dx\int \left(3x^{\frac{1}{2}} - 4x^{-3} + 2x^{-\frac{1}{2}}\right) dx

Integrate each term:

=3x3232−4x−2−2+2x1212+c=2x32+2x−2+4x12+c= \frac{3x^{\frac{3}{2}}}{\tfrac{3}{2}} - \frac{4x^{-2}}{-2} + \frac{2x^{\frac{1}{2}}}{\tfrac{1}{2}} + c = 2x^{\frac{3}{2}} + 2x^{-2} + 4x^{\frac{1}{2}} + c

or 2x32+2x2+4x+c2x^{\frac{3}{2}} + \dfrac{2}{x^2} + 4\sqrt{x} + c.

Expanding a fraction first

Find ∫(x2−3)2x2 dx\displaystyle\int \frac{(x^2 - 3)^2}{x^2}\, dx.

Solution

Expand the numerator and divide each term by x2x^2:

x4−6x2+9x2=x2−6+9x−2\frac{x^4 - 6x^2 + 9}{x^2} = x^2 - 6 + 9x^{-2}

Then

∫(x2−6+9x−2)dx=x33−6x−9x−1+c=x33−6x−9x+c\int \left(x^2 - 6 + 9x^{-2}\right) dx = \frac{x^3}{3} - 6x - 9x^{-1} + c = \frac{x^3}{3} - 6x - \frac{9}{x} + c
The curve through a point

Find the equation of the curve through (1,−2)(1, -2) for which dydx=2x+1\dfrac{dy}{dx} = 2x + 1.

Solutiony=∫(2x+1) dx=x2+x+cy = \int (2x + 1)\, dx = x^2 + x + c

At (1,−2)(1, -2): −2=1+1+c-2 = 1 + 1 + c, so c=−4c = -4.

The curve is y=x2+x−4y = x^2 + x - 4.

Fractional powers and a point

A curve is such that dydx=3x−6x2\dfrac{dy}{dx} = 3\sqrt{x} - \dfrac{6}{x^2}, and the point (4,9)(4, 9) lies on the curve. Find the equation of the curve.

Solutiony=∫(3x12−6x−2)dx=2x32+6x−1+cy = \int \left(3x^{\frac{1}{2}} - 6x^{-2}\right) dx = 2x^{\frac{3}{2}} + 6x^{-1} + c

At x=4x = 4: 432=84^{\frac{3}{2}} = 8, so

9=2(8)+64+c=16+1.5+c⇒c=−8.59 = 2(8) + \frac{6}{4} + c = 16 + 1.5 + c \quad\Rightarrow\quad c = -8.5

The curve is y=2x32+6x−172y = 2x^{\frac{3}{2}} + \dfrac{6}{x} - \dfrac{17}{2}.

A gradient condition from a normal

A curve has dydx=kx2−4x\dfrac{dy}{dx} = kx^2 - 4x, where kk is a constant. The normal to the curve at the point (2,7)(2, 7) has gradient −14-\tfrac{1}{4}. Find kk and the equation of the curve.

Solution

The normal has gradient −14-\tfrac{1}{4}, so the tangent (and hence the curve) has gradient 44 at x=2x = 2:

4k−8=4⇒k=34k - 8 = 4 \quad\Rightarrow\quad k = 3

Then dydx=3x2−4x\dfrac{dy}{dx} = 3x^2 - 4x and

y=x3−2x2+cy = x^3 - 2x^2 + c

At (2,7)(2, 7): 7=8−8+c7 = 8 - 8 + c, so c=7c = 7. The curve is y=x3−2x2+7y = x^3 - 2x^2 + 7.

Integrating twice

A curve has d2ydx2=6x−4\dfrac{d^2y}{dx^2} = 6x - 4. It has a stationary point at (1,5)(1, 5).

(a) Find the equation of the curve.

(b) Find the coordinates of the other stationary point and determine the nature of both.

Solution

(a) Integrate once:

dydx=3x2−4x+c1\frac{dy}{dx} = 3x^2 - 4x + c_1

The gradient is 00 at x=1x = 1: 3−4+c1=03 - 4 + c_1 = 0, so c1=1c_1 = 1. Integrate again:

y=x3−2x2+x+c2y = x^3 - 2x^2 + x + c_2

At (1,5)(1, 5): 5=1−2+1+c25 = 1 - 2 + 1 + c_2, so c2=5c_2 = 5. The curve is y=x3−2x2+x+5y = x^3 - 2x^2 + x + 5.

(b) dydx=3x2−4x+1=(3x−1)(x−1)=0\dfrac{dy}{dx} = 3x^2 - 4x + 1 = (3x - 1)(x - 1) = 0 gives x=13x = \tfrac{1}{3} (and x=1x = 1).

y=127−29+13+5=1−6+9+13527=13927y = \frac{1}{27} - \frac{2}{9} + \frac{1}{3} + 5 = \frac{1 - 6 + 9 + 135}{27} = \frac{139}{27}

Using d2ydx2=6x−4\dfrac{d^2y}{dx^2} = 6x - 4: at x=13x = \tfrac{1}{3} it is −2<0-2 < 0, so (13,13927)\left(\tfrac{1}{3}, \tfrac{139}{27}\right) is a maximum; at x=1x = 1 it is 2>02 > 0, so (1,5)(1, 5) is a minimum. See stationary points for the test.

Watch out

Forgetting + c+\,c. An indefinite integral without the constant loses a mark, and in a "find the curve" question the constant is the whole point.

Integrating a product term by term. ∫(x+1)(x−3) dx\displaystyle\int (x + 1)(x - 3)\, dx is not 12x2+x\tfrac{1}{2}x^2 + x times 12x2−3x\tfrac{1}{2}x^2 - 3x. Expand first.

Multiplying instead of dividing by the new power. ∫x12 dx=x3/23/2=23x32\displaystyle\int x^{\frac{1}{2}}\, dx = \dfrac{x^{3/2}}{3/2} = \tfrac{2}{3}x^{\frac{3}{2}}, not 32x32\tfrac{3}{2}x^{\frac{3}{2}}.

Adding one to a negative power wrongly. x−3x^{-3} becomes x−2−2\dfrac{x^{-2}}{-2}, not x−4−4\dfrac{x^{-4}}{-4} (that is differentiating).

Using the gradient of the normal as the gradient of the curve. The curve's gradient is the negative reciprocal of the normal's.

One constant for two integrations. Integrating d2ydx2\dfrac{d^2y}{dx^2} twice gives two independent constants; find the first before integrating again.

Exam tip
  • Show the rewritten form before integrating, for example ∫(3x12−6x−2)dx\int \left(3x^{\frac{1}{2}} - 6x^{-2}\right)dx. It makes your method clear and earns credit even if one term slips.
  • Typical marking for "find the equation of the curve": one mark for raising a power correctly, one for the coefficients, one for using the point to find cc, one for the final equation. Do not leave cc unevaluated.
  • Give the final answer as an equation "y=…y = \ldots", not just an expression.
  • Keep fractions exact. c=−172c = -\tfrac{17}{2} is better than −8.5-8.5 only if the rest is in fractions; either is accepted, but avoid rounded decimals.
  • Check by differentiating. It takes ten seconds and catches most errors.
Summary
  • Integration reverses differentiation: ∫f(x) dx=F(x)+c\displaystyle\int f(x)\, dx = F(x) + c where F′(x)=f(x)F'(x) = f(x).
  • ∫xn dx=xn+1n+1+c\displaystyle\int x^n\, dx = \frac{x^{n+1}}{n + 1} + c for rational n≠−1n \neq -1: add one to the power, divide by the new power.
  • Integrate sums term by term; constants multiply through; one + c+\,c at the end.
  • Rewrite roots, reciprocals, products and fractions as sums of powers first.
  • A point on the curve fixes cc; a gradient condition (tangent, normal, stationary point) fixes a constant in dydx\dfrac{dy}{dx}.
  • From d2ydx2\dfrac{d^2y}{dx^2}, integrate twice, with a new constant each time.
  • Check by differentiating your answer.

Practice questions

Question
  1. Find ∫(4x3−6x+7)dx\displaystyle\int \left(4x^3 - 6x + 7\right) dx.
  2. Find ∫(5x2+x)dx\displaystyle\int \left(\frac{5}{x^2} + \sqrt{x}\right) dx.
  3. Find ∫(2x+3)(x−1) dx\displaystyle\int (2x + 3)(x - 1)\, dx.
  4. Find ∫x+4x dx\displaystyle\int \frac{x + 4}{\sqrt{x}}\, dx.
  5. A curve has dydx=6x2−2x\dfrac{dy}{dx} = 6x^2 - 2x and passes through (1,4)(1, 4). Find its equation.
  6. A curve has dydx=4x−1\dfrac{dy}{dx} = \dfrac{4}{\sqrt{x}} - 1 and passes through (9,10)(9, 10). Find its equation.
  7. A function ff has f′′(x)=12x−6f''(x) = 12x - 6. The curve y=f(x)y = f(x) passes through (0,3)(0, 3) and has a stationary point where x=2x = 2. Find f(x)f(x), and find the coordinates of the other stationary point.
  8. A curve has dydx=3x2+kx\dfrac{dy}{dx} = 3x^2 + kx, where kk is a constant, and passes through the points (1,0)(1, 0) and (3,10)(3, 10). Find kk and the equation of the curve.
  9. A curve passes through (1,1)(1, 1) and has dydx=3x−k\dfrac{dy}{dx} = 3\sqrt{x} - k, where kk is a constant. The tangent to the curve at the point where x=4x = 4 is parallel to the line y=2xy = 2x. (a) Find kk and the equation of the curve. (b) Find the coordinates of the stationary point of the curve.
Answers
  1. x4−3x2+7x+cx^4 - 3x^2 + 7x + c.

  2. ∫(5x−2+x12)dx=−5x−1+23x32+c=−5x+23x32+c\displaystyle\int \left(5x^{-2} + x^{\frac{1}{2}}\right) dx = -5x^{-1} + \tfrac{2}{3}x^{\frac{3}{2}} + c = -\dfrac{5}{x} + \tfrac{2}{3}x^{\frac{3}{2}} + c.

  3. Expand: 2x2+x−32x^2 + x - 3. Integral: 23x3+12x2−3x+c\tfrac{2}{3}x^3 + \tfrac{1}{2}x^2 - 3x + c.

  4. x+4x=x12+4x−12\dfrac{x + 4}{\sqrt{x}} = x^{\frac{1}{2}} + 4x^{-\frac{1}{2}}. Integral: 23x32+8x12+c\tfrac{2}{3}x^{\frac{3}{2}} + 8x^{\frac{1}{2}} + c.

  5. y=2x3−x2+cy = 2x^3 - x^2 + c. At (1,4)(1, 4): 4=2−1+c4 = 2 - 1 + c, c=3c = 3. So y=2x3−x2+3y = 2x^3 - x^2 + 3.

  6. y=∫(4x−12−1)dx=8x12−x+cy = \displaystyle\int \left(4x^{-\frac{1}{2}} - 1\right) dx = 8x^{\frac{1}{2}} - x + c. At (9,10)(9, 10): 10=24−9+c10 = 24 - 9 + c, c=−5c = -5. So y=8x−x−5y = 8\sqrt{x} - x - 5.

  7. f′(x)=6x2−6x+af'(x) = 6x^2 - 6x + a. f′(2)=0f'(2) = 0: 24−12+a=024 - 12 + a = 0, a=−12a = -12. f(x)=2x3−3x2−12x+bf(x) = 2x^3 - 3x^2 - 12x + b; f(0)=3f(0) = 3 gives b=3b = 3. So f(x)=2x3−3x2−12x+3f(x) = 2x^3 - 3x^2 - 12x + 3. f′(x)=6(x−2)(x+1)f'(x) = 6(x - 2)(x + 1), so the other stationary point is at x=−1x = -1: f(−1)=−2−3+12+3=10f(-1) = -2 - 3 + 12 + 3 = 10. The point is (−1,10)(-1, 10).

  8. y=x3+k2x2+cy = x^3 + \tfrac{k}{2}x^2 + c. At (1,0)(1, 0): 0=1+k2+c0 = 1 + \tfrac{k}{2} + c. At (3,10)(3, 10): 10=27+9k2+c10 = 27 + \tfrac{9k}{2} + c. Subtracting: 10=26+4k10 = 26 + 4k, so k=−4k = -4, and then c=1c = 1. The curve is y=x3−2x2+1y = x^3 - 2x^2 + 1.

  9. (a) Parallel to y=2xy = 2x means gradient 22 at x=4x = 4: 3(2)−k=23(2) - k = 2, so k=4k = 4. Then y=∫(3x12−4)dx=2x32−4x+cy = \displaystyle\int \left(3x^{\frac{1}{2}} - 4\right) dx = 2x^{\frac{3}{2}} - 4x + c. At (1,1)(1, 1): 1=2−4+c1 = 2 - 4 + c, c=3c = 3. So y=2x32−4x+3y = 2x^{\frac{3}{2}} - 4x + 3. (b) 3x−4=03\sqrt{x} - 4 = 0 gives x=43\sqrt{x} = \tfrac{4}{3}, x=169x = \tfrac{16}{9}. Then x32=6427x^{\frac{3}{2}} = \tfrac{64}{27}, so y=12827−649+3=128−192+8127=1727y = \tfrac{128}{27} - \tfrac{64}{9} + 3 = \tfrac{128 - 192 + 81}{27} = \tfrac{17}{27}. The stationary point is (169,1727)\left(\tfrac{16}{9}, \tfrac{17}{27}\right).

How well do you know this?

Builds on

Where this leads

Console

Search notes, courses and tools, or run an action