1.08PureCore

Indefinite Integrals

Differentiation takes a function and gives its gradient. Integration\textbf{Integration} goes the other way: given the gradient, find the function. Because every constant differentiates to zero, the answer is never unique — there is a whole family of curves with the same gradient, which is why every indefinite integral carries a + c+\,c.

40 min Integration

The big picture

The Fundamental Theorem of Calculus connects two ideas that look unrelated: undoing differentiation, and finding the area under a curve. This lesson is the first half — reverse differentiation — and every rule in it is simply a differentiation rule read backwards. Where differentiation lowers a power by one, integration raises it; where differentiating sin⁡\sin gives cos⁡\cos, integrating cos⁡\cos gives sin⁡\sin. The constant of integration is not a formality: it represents a genuinely unknown vertical position, and a single known point on the curve is enough to pin it down. That idea returns in kinematics, where integrating acceleration needs initial conditions, and in differential equations.

What you'll be able to do

  • Understand integration as the reverse of differentiation
  • Integrate xnx^{n} (n≠−1n \neq -1), 1x\dfrac{1}{x}, ekx\mathrm{e}^{kx}, sin⁡kx\sin kx, cos⁡kx\cos kx and sec⁡2kx\sec^{2}kx
  • Include and interpret the constant of integration
  • Find the equation of a curve from its gradient function and a point
1

Reversing differentiation

If ddxF(x)=f(x)\dfrac{\mathrm{d}}{\mathrm{d}x}\mathrm{F}(x) = \mathrm{f}(x), then ∫f(x) dx=F(x)+c\int \mathrm{f}(x)\,\mathrm{d}x = \mathrm{F}(x) + c. The dx\mathrm{d}x says the variable is xx.

Since x3x^{3}, x3+5x^{3} + 5 and x3−2x^{3} - 2 all differentiate to 3x23x^{2}, the integral of 3x23x^{2} is x3+cx^{3} + c for an arbitrary constant cc.

You can always check an integral by differentiating your answer.

Why this works

Geometrically, the curves y=x3+cy = x^{3} + c are vertical translations of each other. At every value of xx they have the same gradient, so the gradient alone cannot tell them apart.

2

Powers of x

To integrate xnx^{n}: raise the power by one and divide by the new power. This works for every rational nn except n=−1n = -1, which would mean dividing by zero.

Constants multiply through, and sums integrate term by term. Rewrite roots and fractions as powers first, and expand brackets — there is no product rule for integration.

∫xn dx=xn+1n+1+c,n≠−1\int x^{n}\,\mathrm{d}x = \dfrac{x^{n+1}}{n+1} + c, \quad n \neq -1
Power rule for integration.
Example 1Find ∫(x+2)2x dx\int \dfrac{(x + 2)^{2}}{\sqrt{x}}\,\mathrm{d}x.
1Expand: (x+2)2=x2+4x+4(x + 2)^{2} = x^{2} + 4x + 4.
2Divide by x1/2x^{1/2}: x3/2+4x1/2+4x−1/2x^{3/2} + 4x^{1/2} + 4x^{-1/2}.
3Integrate each: x5/25/2+4x3/23/2+4x1/21/2\dfrac{x^{5/2}}{5/2} + \dfrac{4x^{3/2}}{3/2} + \dfrac{4x^{1/2}}{1/2}.
Answer25x5/2+83x3/2+8x1/2+c\tfrac25 x^{5/2} + \tfrac83 x^{3/2} + 8x^{1/2} + c

Tip — Dividing by a fraction like 52\tfrac52 is multiplying by 25\tfrac25. Write the reciprocal straight away rather than leaving a compound fraction.

3

Exponentials, logarithms and trigonometric functions

The missing case n=−1n = -1 is supplied by the natural log: ∫1x dx=ln⁡∣x∣+c\int \dfrac{1}{x}\,\mathrm{d}x = \ln|x| + c. The modulus allows negative xx.

ekx\mathrm{e}^{kx} integrates to 1kekx\dfrac{1}{k}\mathrm{e}^{kx} — divide by kk, the reverse of multiplying by kk when differentiating.

In radians: ∫cos⁡kx dx=1ksin⁡kx+c\int \cos kx\,\mathrm{d}x = \dfrac{1}{k}\sin kx + c, ∫sin⁡kx dx=−1kcos⁡kx+c\int \sin kx\,\mathrm{d}x = -\dfrac{1}{k}\cos kx + c, and ∫sec⁡2kx dx=1ktan⁡kx+c\int \sec^{2}kx\,\mathrm{d}x = \dfrac{1}{k}\tan kx + c.

For a linear inside (ax+b)(ax + b), the same results hold with a factor of 1a\dfrac{1}{a}: ∫(3x−1)5 dx=(3x−1)618+c\int (3x - 1)^{5}\,\mathrm{d}x = \dfrac{(3x - 1)^{6}}{18} + c.

∫1x dx=ln⁡∣x∣+c\int \dfrac{1}{x}\,\mathrm{d}x = \ln|x| + c
The n = -1 case.
∫ekx dx=1kekx+c\int \mathrm{e}^{kx}\,\mathrm{d}x = \dfrac{1}{k}\mathrm{e}^{kx} + c
Exponential.
∫sin⁡kx dx=−1kcos⁡kx+c\int \sin kx\,\mathrm{d}x = -\dfrac{1}{k}\cos kx + c
Note the minus sign.
Example 1Find ∫(4e2x−3x+6sin⁡3x)dx\int \left(4\mathrm{e}^{2x} - \dfrac{3}{x} + 6\sin 3x\right)\mathrm{d}x.
1∫4e2x dx=2e2x\int 4\mathrm{e}^{2x}\,\mathrm{d}x = 2\mathrm{e}^{2x}.
2∫3x dx=3ln⁡∣x∣\int \dfrac{3}{x}\,\mathrm{d}x = 3\ln|x|.
3∫6sin⁡3x dx=−2cos⁡3x\int 6\sin 3x\,\mathrm{d}x = -2\cos 3x.
Answer2e2x−3ln⁡∣x∣−2cos⁡3x+c2\mathrm{e}^{2x} - 3\ln|x| - 2\cos 3x + c
4

Finding the constant

If you know the gradient function and one point on the curve, integrate, then substitute the point to find cc.

The same method applies whenever a rate of change and an initial value are given — velocity from acceleration, volume from flow rate.

Example 1A curve has dydx=6x2−4x+1\dfrac{\mathrm{d}y}{\mathrm{d}x} = 6x^{2} - 4x + 1 and passes through (2,9)(2, 9). Find its equation.
1Integrate: y=2x3−2x2+x+cy = 2x^{3} - 2x^{2} + x + c.
2Substitute (2,9)(2, 9): 9=16−8+2+c9 = 16 - 8 + 2 + c, so c=−1c = -1.
Answery=2x3−2x2+x−1y = 2x^{3} - 2x^{2} + x - 1

Tip — Losing the + c+\,c costs a mark on every indefinite integral, and makes "find the curve" questions impossible. Write it on the same line as the integration.

Think like an examiner

  • Include + c+\,c in every indefinite integral.
  • Rewrite roots and reciprocals as powers, and expand products, before integrating.
  • Use ln⁡∣x∣\ln|x| for ∫1x dx\int \tfrac1x\,\mathrm{d}x.
  • Check by differentiating your answer.

Common misconceptions

Integrating x−1x^{-1} as x00\dfrac{x^{0}}{0}.
∫x−1 dx=ln⁡∣x∣+c\int x^{-1}\,\mathrm{d}x = \ln|x| + c.
Integrating sin⁡x\sin x to cos⁡x\cos x.
∫sin⁡x dx=−cos⁡x+c\int \sin x\,\mathrm{d}x = -\cos x + c.
Integrating e4x\mathrm{e}^{4x} to 4e4x4\mathrm{e}^{4x}.
Divide by 4: 14e4x+c\tfrac14\mathrm{e}^{4x} + c.
Integrating a product factor by factor.
Expand first; there is no simple product rule for integrals.

Standard integrals

∫xn dx=xn+1n+1+c\int x^{n}\,\mathrm{d}x = \tfrac{x^{n+1}}{n+1} + c
n≠−1n \neq -1.
∫1x dx=ln⁡∣x∣+c\int \tfrac1x\,\mathrm{d}x = \ln|x| + c
Reciprocal.
∫ekx dx=1kekx+c\int \mathrm{e}^{kx}\,\mathrm{d}x = \tfrac1k\mathrm{e}^{kx} + c
Exponential.
∫cos⁡kx dx=1ksin⁡kx+c\int \cos kx\,\mathrm{d}x = \tfrac1k\sin kx + c
Cosine.

Stretch yourself

A curve passes through (π2,3)\left(\tfrac{\pi}{2}, 3\right) and has gradient function dydx=2cos⁡2x+sin⁡x\dfrac{\mathrm{d}y}{\mathrm{d}x} = 2\cos 2x + \sin x. Find the equation of the curve and its yy-intercept.

Hint — Integrate each term with its 1k\tfrac1k factor, remembering the sign for sine. Then substitute x=π2x = \tfrac{\pi}{2}.

Reveal solution
SolutionIntegrating: y=sin⁡2x−cos⁡x+cy = \sin 2x - \cos x + c. At x=π2x = \tfrac{\pi}{2}: sin⁡π−cos⁡π2+c=0−0+c=3\sin\pi - \cos\tfrac{\pi}{2} + c = 0 - 0 + c = 3, so c=3c = 3. The curve is y=sin⁡2x−cos⁡x+3y = \sin 2x - \cos x + 3. At x=0x = 0: y=0−1+3=2y = 0 - 1 + 3 = 2, so the yy-intercept is (0,2)(0, 2). Check by differentiating: 2cos⁡2x+sin⁡x2\cos 2x + \sin x ✓. ■\blacksquare

Questions students ask

Why is there a + c+\,c?
Constants differentiate to zero, so reversing differentiation cannot tell you what constant was there. cc stands for every possibility.
Why the modulus in ln⁡∣x∣\ln|x|?
For negative xx, ln⁡(−x)\ln(-x) also differentiates to 1x\tfrac1x. The modulus covers both cases in one formula.
Can I integrate (2x+1)3(2x + 1)^{3} without expanding?
Yes, because the inside is linear: (2x+1)44×2+c\dfrac{(2x+1)^{4}}{4 \times 2} + c. For non-linear insides you need substitution or expansion.
How do I check an integral?
Differentiate your answer. You should get back exactly the function you integrated.

Key takeaways

  • Integration reverses differentiation; indefinite integrals include + c+\,c.
  • ∫xn dx=xn+1n+1+c\int x^{n}\,\mathrm{d}x = \tfrac{x^{n+1}}{n+1} + c for n≠−1n \neq -1; ∫1x dx=ln⁡∣x∣+c\int \tfrac1x\,\mathrm{d}x = \ln|x| + c.
  • ∫ekx dx=1kekx+c\int \mathrm{e}^{kx}\,\mathrm{d}x = \tfrac1k\mathrm{e}^{kx} + c; trig integrals need radians and care with signs.
  • Rewrite as powers and expand before integrating.
  • A known point determines the constant.

How this fits the course

Test yourself

Answer a few questions, then review anything you missed.

Next step

Keep practising

Start with the quiz above to check the key ideas. You can also choose another topic from the practice library.

Browse practice topics

Related lessons

All 13 lessons

Put the methods into practice: see how A-Level maths duels work. An account is required to play; the overview and sample are public.