Skip to content
EN - Language: English
MathematicsUniversity

What is a definite integral? The area under a graph, step by step

· 9 min read

In short

The definite integral of a function from a to b is the area under its graph over that interval - with the area below the x axis counted as negative. We approximate it with the total area of thin rectangles, more closely the thinner they are. In practice we work it out from an antiderivative F as F(b) − F(a).

Words to know

Interval [a, b]
The stretch of the x axis over which we measure the area - from x = a to x = b.
Riemann sum
The total area of rectangles that approximate the area under a graph.
Antiderivative
A function F whose derivative is f - a derivative worked backwards.
Signed area
The part above the x axis counts as positive, the part below as negative.

What do you think?

What is the area under the parabola y=x2y = x^2 above the stretch from 00 to 11?

The idea: adding up many small pieces

The area of a rectangle is width times height. The trouble starts when the top edge of a region is curved. The idea of the integral is simple: cut the region into thin strips. Each strip is almost a rectangle, so its area is easy to work out. The total area of the strips approximates the whole area - and the thinner the strips, the better.

Lots of everyday quantities work the same way:

  • distance is the area under a graph of speed - when the speed changes, you add up short stretches of time times the speed,
  • the energy used is the area under a graph of power,
  • a day’s takings are the sum of the takings in each minute.

From rectangles to the integral

Go through the animation step by step with the buttons or the arrow keys.

0.511.521234

the integral = ?

Step 1 of 5
Steps of the animation. Arrow keys move between steps.

We want the area under the graph of f(x) = x² between x = 0 and x = 2. The top edge is curved, so the formula for a rectangle is not enough.

With very thin strips it no longer matters whether the height comes from the left end, the right end or the middle - the totals close in on the same number.

Try it yourself: rectangles under any graph

Pick a function and an interval, change the number of rectangles and how their heights are chosen, and compare the total with the integral. For sin⁡x\sin x and x3−3xx^3 - 3x part of the graph is below the xx axis - there the rectangles count as negative.

Function
Where each rectangle’s height comes from
-2-112246
n = 6
a = 0
b = 2
total of the rectangles
3.37
integral from a to b
2.667
difference
0.704

What to notice:

  • the more rectangles, the smaller the difference between their total and the integral,
  • rectangles taken from the middle of each strip are usually far more accurate than those from the left or right end - with just a few rectangles the difference is already small,
  • when part of the graph is above the axis and part below, the integral can come out close to zero even though the region is not small at all.

The definition

Cut the interval [a,b][a, b] into nn strips of width Δx=b−an\Delta x = \frac{b - a}{n} and pick a point xix_i in each. The definite integral is the limit of the total area of the rectangles:

∫abf(x) dx=lim⁡n→∞∑i=1nf(xi) Δx.\int_a^b f(x)\,dx = \lim_{n \to \infty} \sum_{i=1}^{n} f(x_i)\,\Delta x.

The ∫\int sign is a stretched letter S - for “sum” - and the dxdx is a reminder of the width of the strips.

Working out the limit of a sum every time would be tedious. Fortunately there is a shortcut - the fundamental theorem of calculus. If FF is an antiderivative of ff, that is F′(x)=f(x)F'(x) = f(x), then

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

Why does this work? The derivative f=F′f = F' says how fast FF grows. Over a thin strip FF therefore grows by about f(xi) Δxf(x_i)\,\Delta x - exactly the area of the rectangle. Adding up these increases from aa to bb gives the whole increase of FF, which is F(b)−F(a)F(b) - F(a). Integration and taking derivatives undo each other.

Example 1: the area under a parabola

An antiderivative of x2x^2 is x33\frac{x^3}{3}, because (x33)′=x2\left(\frac{x^3}{3}\right)' = x^2. So

∫02x2 dx=233−033=83≈2.67\int_0^2 x^2\,dx = \frac{2^3}{3} - \frac{0^3}{3} = \frac{8}{3} \approx 2.67

That is exactly the number the rectangles were closing in on. And the area from the question at the start is ∫01x2 dx=13\int_0^1 x^2\,dx = \frac{1}{3}.

Example 2: the area under a sine wave

An antiderivative of sin⁡x\sin x is −cos⁡x-\cos x, because (−cos⁡x)′=sin⁡x(-\cos x)' = \sin x. So

∫0πsin⁡x dx=−cos⁡π−(−cos⁡0)=1+1=2.\begin{aligned} \int_0^{\pi} \sin x\,dx &= -\cos \pi - (-\cos 0) \\ &= 1 + 1 = 2. \end{aligned}

Your turn

Work out ∫13(2x+1) dx\int_1^3 (2x + 1)\,dx, then check the answer geometrically: what shape is the region under this graph?

Hintshow

An antiderivative of 2x+12x + 1 is x2+xx^2 + x. The graph of y=2x+1y = 2x + 1 is a straight line, so the region under it is a trapezium.

Solutiontry it on your own first
∫13(2x+1) dx=(32+3)−(12+1)=12−2=10.\begin{aligned} \int_1^3 (2x + 1)\,dx &= (3^2 + 3) \\ &\quad - (1^2 + 1) \\ &= 12 - 2 = 10. \end{aligned}

Check: the region is a trapezium with parallel sides f(1)=3f(1) = 3 and f(3)=7f(3) = 7 and height 22, so its area is 3+72⋅2=10\frac{3 + 7}{2} \cdot 2 = 10.

Common mistakes

  • Area below the xx axis. The integral counts it as negative. ∫02πsin⁡x dx=0\int_0^{2\pi} \sin x\,dx = 0, even though the graph and the axis enclose a region of area 44. To get the area, integrate the parts above and below the axis separately and add up their absolute values.
  • The wrong order. It is F(b)−F(a)F(b) - F(a), not F(a)−F(b)F(a) - F(b). Swapping them flips the sign of the answer.
  • The constant CC. An indefinite integral gets + C+\,C, because there are infinitely many antiderivatives. In a definite integral CC cancels: (F(b)+C)−(F(a)+C)=F(b)−F(a)(F(b) + C) - (F(a) + C) = F(b) - F(a).
  • Mixing up definite and indefinite integrals. A definite integral, with limits aa and bb, is a number. An indefinite integral is a family of functions, F(x)+CF(x) + C.

At university

The definite integral is one of the main topics of a first calculus course. In the open textbook Active Calculus, for example, the fundamental theorem of calculus is followed by integration by parts and by substitution, numerical integration and applications: areas between curves, arc length, volumes of solids of revolution, work and improper integrals. In physics an integral gives displacement from velocity and work from force.

Check yourself

Test yourself

What is ∫032 dx\int_0^3 2\,dx?

The graph of ff lies entirely below the xx axis on [a,b][a, b]. What is ∫abf(x) dx\int_a^b f(x)\,dx then?

You approximate the area under f(x)=x2f(x) = x^2 from 00 to 22 with rectangles whose height comes from the right end of each strip. What happens to the total as you use more and more rectangles?

Which function is an antiderivative of f(x)=3x2f(x) = 3x^2?

What is ∫12x dx\int_1^2 x\,dx?

Flashcards for review

Flip a card and say whether you knew the answer. The ones you did not know come back at the end of the deck. Why it pays to come back to them in a few days is explained in the guide Spaced repetition.

Flashcards

  1. What is ∫abf(x) dx\int_a^b f(x)\,dx?

    The area under the graph of ff from aa to bb - with the area below the xx axis counted as negative.
  2. What is a Riemann sum?

    The total area of rectangles f(xi) Δxf(x_i)\,\Delta x that approximate the area under a graph.
  3. What is the definition of the definite integral?

    ∫abf(x) dx=lim⁡n→∞∑i=1nf(xi) Δx\int_a^b f(x)\,dx = \lim_{n \to \infty} \sum_{i=1}^{n} f(x_i)\,\Delta x
  4. What does the fundamental theorem of calculus say?

    If F′=fF' = f, then ∫abf(x) dx=F(b)−F(a)\int_a^b f(x)\,dx = F(b) - F(a).
  5. What is an antiderivative of x2x^2?

    x33\frac{x^3}{3} - plus any constant CC.
  6. What is ∫02x2 dx\int_0^2 x^2\,dx?

    83≈2.67\frac{8}{3} \approx 2.67
  7. Where does the ∫\int sign come from?

    It is a stretched letter S - for the Latin word summa.
  8. How is a definite integral different from an indefinite one?

    A definite integral, with limits aa and bb, is a number. An indefinite integral is a family of functions, F(x)+CF(x) + C.
  9. Which rectangles give the most accurate total: left ends, right ends or middles?

    Usually the middles of the strips - with just a few rectangles the difference is already small.

Sources

We checked the facts on this page against these sources. All of them may be reused freely: they carry an open licence or are not covered by copyright.

  1. Wikipedia - Riemann integral · CC BY-SA 4.0
  2. Wikipedia - Integral (the integral sign, the fundamental theorem of calculus, uses in physics) · CC BY-SA 4.0
  3. Wikipedia - Riemann sum (accuracy of the midpoint rule) · CC BY-SA 4.0
  4. Wikipedia - Power (physics) (energy as the integral of power) · CC BY-SA 4.0
  5. Active Calculus (Matthew Boelkins, Grand Valley State University) - 4.1 Determining distance traveled from velocity (distance as the area under a graph of velocity) · CC BY-SA 4.0
  6. Active Calculus (Matthew Boelkins, Grand Valley State University) - 4.2 Riemann Sums (left, right and middle sums) · CC BY-SA 4.0
  7. Active Calculus (Matthew Boelkins, Grand Valley State University) - 4.3 The Definite Integral (the limit of Riemann sums, the ∫ sign, net signed area, left, right and middle sums close in on the same value) · CC BY-SA 4.0
  8. Active Calculus (Matthew Boelkins, Grand Valley State University) - 4.4 The Fundamental Theorem of Calculus (F(b) − F(a), antiderivatives, why the constant C cancels) · CC BY-SA 4.0
  9. Active Calculus (Matthew Boelkins, Grand Valley State University) - 5.3 Integration by Substitution (reversing the chain rule) · CC BY-SA 4.0
  10. Active Calculus (Matthew Boelkins, Grand Valley State University) - 5.4 Integration by Parts (reversing the product rule) · CC BY-SA 4.0
  11. Active Calculus (Matthew Boelkins, Grand Valley State University) - 5.6 Numerical Integration (the midpoint rule is more accurate) · CC BY-SA 4.0
  12. Active Calculus (Matthew Boelkins, Grand Valley State University) - 6.1 Using Definite Integrals to Find Area and Length (the area between two curves, arc length) · CC BY-SA 4.0
  13. Active Calculus (Matthew Boelkins, Grand Valley State University) - 6.2 Using Definite Integrals to Find Volume (solids of revolution) · CC BY-SA 4.0
  14. Active Calculus (Matthew Boelkins, Grand Valley State University) - 6.4 Physics Applications: Work, Force, and Pressure (work as an integral of force) · CC BY-SA 4.0
  15. Active Calculus (Matthew Boelkins, Grand Valley State University) - 6.5 Improper Integrals (integrals over an infinite interval) · CC BY-SA 4.0
  16. Silvanus P. Thompson - Calculus Made Easy, 2nd edition (1914), chapter XVII Integration, Project Gutenberg (the ∫ sign is “only a long S” meaning “the sum of”) · public domain

More explainers