Advanced level

The integral

Integration is differentiation run backwards: we look for the function whose derivative is the one we started with. An indefinite integral gives a formula up to a constant, a definite one gives a number — and that number is the area under the curve.

Before you start

This topic builds on earlier ideas. Before you start, it's worth working through the lessons below — they'll make everything click:

All formulas

  • Antiderivative

    F(x)=f(x)F'(x) = f(x)

    F is an antiderivative of f when differentiating F gives f

  • Indefinite integral

    f(x)dx=F(x)+C\int f(x)\,dx = F(x) + C

    the result is a whole FAMILY of functions, hence the constant C

  • Power rule

    xndx=xn+1n+1+C(n1)\int x^n\,dx = \frac{x^{n+1}}{n+1} + C \quad (n \neq -1)

    the exponent grows by one, then divide by the new exponent

  • Newton–Leibniz formula

    abf(x)dx=F(b)F(a)\int_a^b f(x)\,dx = F(b) - F(a)

    the constant C cancels in the subtraction, so it never matters

  • Area under a curve

    f(x)0 on a;b    A=abf(x)dxf(x) \geq 0 \ \text{on} \ \langle a; b \rangle \implies A = \int_a^b f(x)\,dx

    the definite integral equals the area only above the axis

  • Area in general

    A=abf(x)dxA = \int_a^b |f(x)|\,dx

    where the curve dips below the axis, the area is computed piece by piece

  • Trigonometric functions

    sinxdx=cosx+C,cosxdx=sinx+C\int \sin x\,dx = -\cos x + C, \qquad \int \cos x\,dx = \sin x + C

    the minus sign changes sides compared with differentiation

Differentiation answers the question "how fast is this changing". Integration asks the reverse: given the rate of change, what was the quantity? It is the operation inverse to the derivative — and at the same time the way to measure regions bounded by a curve.

The antiderivative

An antiderivative of a function ff is a function FF whose derivative is ff:

F(x)=f(x)F'(x) = f(x)

For f(x)=2xf(x) = 2x an antiderivative is F(x)=x2F(x) = x^2, because differentiating x2x^2 gives 2x2x. But so is x2+7x^2 + 7, and so is x2100x^2 - 100the derivative of a constant is zero, so shifting a graph vertically leaves the slope at every point untouched.

There are therefore infinitely many antiderivatives, and they differ by a constant alone.

The indefinite integral

We write it like this:

f(x)dx=F(x)+C\int f(x)\,dx = F(x) + C

The sign \int is an elongated "S" for sum, and dxdx says which variable we are integrating over. The constant of integration CC is not decoration: without it the notation would name one function instead of a whole family.

The power rule is the exact reverse of the one from differentiation — the exponent grows by one and then we divide by the new exponent:

xndx=xn+1n+1+C(n1)\int x^n\,dx = \frac{x^{n+1}}{n+1} + C \qquad (n \neq -1)
functionintegral
kk (a constant)kx+Ckx + C
xxx22+C\dfrac{x^2}{2} + C
x2x^2x33+C\dfrac{x^3}{3} + C
kx2\dfrac{k}{x^2}kx+C-\dfrac{k}{x} + C
sinx\sin xcosx+C-\cos x + C
cosx\cos xsinx+C\sin x + C

The restriction n1n \neq -1 is there because n=1n = -1 would mean dividing by zero. The integral of 1x\tfrac{1}{x} is a logarithm — beyond the scope of this lesson.

A sum is integrated term by term, and a constant factor passes through an integral just as it passes through a derivative.

Compute the indefinite integral ∫ (6x² − 4x + 5) dx and check the result.

The definite integral and Newton–Leibniz

Once limits of integration are written on the integral sign, the result stops being a function and becomes a number:

abf(x)dx=F(b)F(a)\int_a^b f(x)\,dx = F(b) - F(a)

This is the Newton–Leibniz formula, one of the great theorems of mathematics: it ties differentiation to the measurement of areas. The computation has three steps — find an antiderivative, substitute the upper limit, subtract the value at the lower one.

The constant CC is irrelevant here, because it cancels in the subtraction:

(F(b)+C)(F(a)+C)=F(b)F(a)(F(b) + C) - (F(a) + C) = F(b) - F(a)
Compute the definite integral of (3x² − 4x + 1) from 1 to 3.

The area under a curve

Where do areas come into it? Slice the region under a graph into narrow vertical strips. Each is almost a rectangle of area f(x)Δxf(x) \cdot \Delta x, and the narrower the strips, the smaller the error. Passing to the limit — exactly the limit we met with the derivative — turns the sum of rectangle areas into an integral.

0123401234567xyf(x) = 2x
The region under f(x) = 2x from 0 to 3. Here the answer can be checked with geometry: it is a triangle of base 3 and height 6.

For a function that is non-negative across the interval, the definite integral simply is the area:

f(x)0 on a;b    A=abf(x)dxf(x) \geq 0 \ \text{on} \ \langle a; b \rangle \implies A = \int_a^b f(x)\,dx

Check it against the drawing above. The area of a triangle of base 33 and height 66 is 1236=9\tfrac{1}{2} \cdot 3 \cdot 6 = 9, and the integral:

032xdx=[x2]03=90=9\int_0^3 2x\,dx = \big[x^2\big]_0^3 = 9 - 0 = 9

They agree — and that is the whole power of the method: for a straight line geometry already knew the answer, but the integral computes the region under any curve, including those no formula in a book of shapes covers.

Find the area of the region bounded by f(x) = x², the x-axis and the lines x = 0 and x = 2.

When the curve dips below the axis

A definite integral measures area with a sign: stretches below the axis enter it with a minus. That is why "integral = area" only holds for non-negative functions.

012345−3−2−10123xyf(x) = x − 2
The two shaded triangles have the identical area of 2, but they lie on opposite sides of the axis. The integral subtracts them and returns 0; the area of the region is 4.

Compute both numbers. The antiderivative is F(x)=x222xF(x) = \tfrac{x^2}{2} - 2x, so:

04(x2)dx=(88)0=0\int_0^4 (x - 2)\,dx = (8 - 8) - 0 = 0

The area, on the other hand, is taken piece by piece with absolute values:

A=02(x2)dx+24(x2)dx=2+2=4A = \left| \int_0^2 (x - 2)\,dx \right| + \left| \int_2^4 (x - 2)\,dx \right| = |-2| + |2| = 4

In general:

A=abf(x)dxA = \int_a^b |f(x)|\,dx

The recipe is simple: find the zeros inside the interval, integrate over each piece separately, and add the absolute values of the results.

Two questions, two answers

It pays to keep three easily confused things apart:

  • the indefinite integral — a function (a family of functions), the answer to "what is this the derivative of";
  • the definite integral — a number, the result of the subtraction F(b)F(a)F(b) - F(a), possibly negative;
  • the area — a non-negative number, equal to the integral only when the curve stays above the axis.

That last distinction is the commonest source of wrong answers in area problems.

Exercises

The three kinds of question match the three parts of this lesson. For the indefinite integral, type an antiderivative — the constant C may be written out or left off, because the answer is graded up to a constant. For the definite integral the answer is a number, and it may well come out negative. For the area under a graph the answer is always non-negative, and in the harder questions the curve crosses the axis inside the interval — then the area is computed piece by piece.

Practice

Work through a set of exercises — they get harder as you go. At the end you'll see your score and the mistakes worth reviewing.

Exercise 1 of 8Score: 0
∫ (2x + 6) dx =

Common mistakes

  • Dropping the constant C — the result of an indefinite integral is a family of functions, so +C+\,C belongs to the answer.
  • Integrating as if differentiating — in an integral the exponent grows, and then you divide by the new exponent.
  • Equating the integral with the area — below the axis the integral is negative and an area never is.
  • Adding the pieces without the modulus — that gives the integral back, not the area.
  • Subtracting in the wrong order — it is F(b)F(a)F(b) - F(a): the lower limit is taken away from the upper one.
  • Carrying C through a definite integral — it cancels anyway and only clutters the computation.

Formula card

Topic: The integral

  • Antiderivative

    F(x)=f(x)F'(x) = f(x)

    F is an antiderivative of f when differentiating F gives f

  • Indefinite integral

    f(x)dx=F(x)+C\int f(x)\,dx = F(x) + C

    the result is a whole FAMILY of functions, hence the constant C

  • Power rule

    xndx=xn+1n+1+C(n1)\int x^n\,dx = \frac{x^{n+1}}{n+1} + C \quad (n \neq -1)

    the exponent grows by one, then divide by the new exponent

  • Newton–Leibniz formula

    abf(x)dx=F(b)F(a)\int_a^b f(x)\,dx = F(b) - F(a)

    the constant C cancels in the subtraction, so it never matters

  • Area under a curve

    f(x)0 on a;b    A=abf(x)dxf(x) \geq 0 \ \text{on} \ \langle a; b \rangle \implies A = \int_a^b f(x)\,dx

    the definite integral equals the area only above the axis

  • Area in general

    A=abf(x)dxA = \int_a^b |f(x)|\,dx

    where the curve dips below the axis, the area is computed piece by piece

  • Trigonometric functions

    sinxdx=cosx+C,cosxdx=sinx+C\int \sin x\,dx = -\cos x + C, \qquad \int \cos x\,dx = \sin x + C

    the minus sign changes sides compared with differentiation

0123401234567xyf(x) = 2x
The shaded region under f(x) = 2x on ⟨0; 3⟩. It is a triangle of base 3 and height 6, so its area is 9 — exactly what the definite integral returns.
012345−3−2−10123xyf(x) = x − 2
The region between f(x) = x − 2 and the axis on ⟨0; 4⟩. Two triangles of area 2 sit on opposite sides of the axis: the integral is 0, the area is 4.

Frequently asked questions

Related articles