Search

Search papers and lessons

Definite Integral

Level 1 · 11 min read

A definite integral adds up a function's values across an interval, each weighted by a tiny width, and gives the signed area between the curve and the horizontal axis.

On this page

  • Colour = topic mix
  • Calculus
  • Discrete math
  • Sign in to see your progress

TL;DR

A definite integral ∫abf(x) dx\int_a^b f(x)\,dx adds up the values of ff from aa to bb, each multiplied by a tiny width, and returns one number. Geometrically it is the area between the graph of ff and the horizontal axis, where area below the axis counts as negative. You rarely add anything up by hand: find an antiderivative FF and compute F(b)−F(a)F(b) - F(a).

Where you'll see it: finding the area of a curved region, turning a speed curve into a distance, computing total charge or mass from a density, and computing the probability that a random variable lands in a range.

Intuition

Slice the region into thin strips

Suppose you want the area under a curve that is not a rectangle or a triangle. School geometry has no formula for it. But you can cut the region into thin vertical strips. Each strip is almost a rectangle: its width is tiny, and its height is roughly the function's value at one point. A rectangle's area is height times width, so add the rectangles up. Make the strips thinner and the total gets closer to the true area. The definite integral is what that total approaches as the strips become infinitely thin.

00.511.522.50246xf(x)
  • f(x) = x^2
The area between this curve and the horizontal axis, from x = 0 to x = 2, is 8/3, about 2.667.

Why a limit is needed

A finite sum of rectangles is only an approximation. It is always a little off, and no finite number of strips gives the exact area. The integral is defined as the limit of the sums as the number of strips grows, which is the only way to get an exact answer for a curved region. Once the limit is in hand, a second idea does most of the work: the integral is the reverse of differentiation. That link, the Antiderivative and the fundamental theorem below, is why integrals can be computed in closed form at all.

Why signed area

Functions can dip below zero. The integral does not measure "how much ink is between the curve and the axis". It measures the net accumulation: area above the axis is positive, and area below it is negative. If a speed is negative, the integral of speed over time is the net displacement, not the total distance travelled. This sign convention is what makes the integral useful for physics, probability and accounting.

The math

Definition: Definite integral

For a function ff on a closed interval [a,b][a, b] with a<ba \lt b, the definite integral is

∫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,

where Δx=(b−a)/n\Delta x = (b - a)/n is the width of each of nn equal strips and xi∗x_i^* is a sample point inside the ii-th strip. The limit must exist and be the same for every choice of sample points. For continuous ff it always does.

The symbol ∫\int is an elongated S for "sum". The dxdx says the variable of integration is xx and that the strips are thin in that direction. The numbers aa and bb are the limits of integration. Because they are fixed, the result is a single number, not a function of xx. That is the difference from an Antiderivative, which is a function.

Riemann sums

The sum inside the limit is called a Riemann sum. Choosing xi∗x_i^* as the left end, right end or midpoint of each strip gives three approximations. For f(x)=x2f(x) = x^2 on [0,2][0, 2] with n=4n = 4 strips, each width is Δx=0.5\Delta x = 0.5. The midpoints are 0.25,0.75,1.25,1.750.25, 0.75, 1.25, 1.75, so

∑i=14f(xi∗) Δx=(0.0625+0.5625+1.5625+3.0625)(0.5)=2.625.\sum_{i=1}^{4} f(x_i^*)\,\Delta x = (0.0625 + 0.5625 + 1.5625 + 3.0625)(0.5) = 2.625.

The exact answer is 8/3≈2.66678/3 \approx 2.6667. Four strips already get within about 1.6%. Doubling the number of strips roughly quarters the error for a smooth function like this.

The fundamental theorem of calculus

This is the result that makes integrals practical. Let ff be continuous on [a,b][a, b], and let FF be any antiderivative of ff, so F′=fF' = f. Then

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

Why does it hold? Define the area function A(x)=∫axf(t) dtA(x) = \int_a^x f(t)\,dt. Then A(a)=0A(a) = 0. Now compare A(x+h)A(x + h) with A(x)A(x). The extra sliver between xx and x+hx + h is almost a rectangle of height f(x)f(x) and width hh, so A(x+h)−A(x)≈f(x) hA(x + h) - A(x) \approx f(x)\,h. Dividing by hh and letting h→0h \to 0 gives A′(x)=f(x)A'(x) = f(x), which is the Derivative of the area function. So AA and FF have the same derivative, which means they differ by a constant: A(x)=F(x)+CA(x) = F(x) + C. Setting x=ax = a and using A(a)=0A(a) = 0 gives 0=F(a)+C0 = F(a) + C, so C=−F(a)C = -F(a). Therefore A(b)=F(b)−F(a)A(b) = F(b) - F(a).

The constant cancels in the difference, which is why a definite integral has no +C+C.

Basic properties

  • Linearity: ∫ab(αf+βg) dx=α∫abf dx+β∫abg dx\int_a^b (\alpha f + \beta g)\,dx = \alpha \int_a^b f\,dx + \beta \int_a^b g\,dx.
  • Reversed bounds: ∫baf dx=−∫abf dx\int_b^a f\,dx = -\int_a^b f\,dx.
  • Splitting an interval: ∫acf dx=∫abf dx+∫bcf dx\int_a^c f\,dx = \int_a^b f\,dx + \int_b^c f\,dx for any bb between aa and cc.
  • Equal bounds: ∫aaf dx=0\int_a^a f\,dx = 0.

Worked examples

Example
Area under a parabola

Find ∫02x2 dx\int_0^2 x^2\,dx.

  1. An antiderivative of x2x^2 is F(x)=x3/3F(x) = x^3/3.
  2. Apply the fundamental theorem: F(2)−F(0)=8/3−0F(2) - F(0) = 8/3 - 0.
  3. The integral is 8/3≈2.6678/3 \approx 2.667.
  4. Check against the midpoint sum with four strips above: 2.6252.625. The approximation is close and slightly low, as expected for this convex curve.
Example
Displacement and distance

A particle moves with velocity v(t)=t−2v(t) = t - 2 metres per second for 0≤t≤40 \le t \le 4. Its displacement and its total distance are different things.

Displacement is the signed integral of velocity:

  1. ∫04(t−2) dt=[t22−2t]04\int_0^4 (t - 2)\,dt = \left[\frac{t^2}{2} - 2t\right]_0^4.
  2. At t=4t = 4 the bracket is 8−8=08 - 8 = 0, and at t=0t = 0 it is 00.
  3. Displacement is 00 metres: the particle ends where it started.

Distance adds up speed, so the negative part must be flipped. Velocity is negative on [0,2)[0, 2) and positive on (2,4](2, 4].

  1. ∫02(2−t) dt=[2t−t22]02=4−2=2\int_0^2 (2 - t)\,dt = \left[2t - \frac{t^2}{2}\right]_0^2 = 4 - 2 = 2 metres.
  2. ∫24(t−2) dt=[t22−2t]24=0−(2−4)=2\int_2^4 (t - 2)\,dt = \left[\frac{t^2}{2} - 2t\right]_2^4 = 0 - (2 - 4) = 2 metres.
  3. Total distance is 2+2=42 + 2 = 4 metres. The particle went out 2 metres and came back 2 metres.
Example
Probability as an area

For a standard Gaussian with density p(x)=e−x2/2/2πp(x) = e^{-x^2/2}/\sqrt{2\pi}, the probability that XX lies between −1-1 and 11 is

P(−1≤X≤1)=∫−11p(x) dx.P(-1 \le X \le 1) = \int_{-1}^{1} p(x)\,dx.
  1. The antiderivative of pp has no elementary closed form, so we use the standard normal cumulative distribution function Φ(z)=∫−∞zp(x) dx\Phi(z) = \int_{-\infty}^{z} p(x)\,dx, which is tabulated.
  2. By the fundamental theorem, ∫−11p(x) dx=Φ(1)−Φ(−1)\int_{-1}^{1} p(x)\,dx = \Phi(1) - \Phi(-1).
  3. From the table, Φ(1)≈0.8413\Phi(1) \approx 0.8413 and Φ(−1)≈0.1587\Phi(-1) \approx 0.1587.
  4. The difference is 0.68270.6827. About 68% of the probability lies within one standard deviation of the mean.

This is the same fact as the 68-95-99.7 rule in Gaussian (Normal) Distribution. The idea that a probability is an integral of a Probability Density Function is what lets probabilities be read off as areas.

Tradeoffs and failure modes

Integrals are powerful, but several things go wrong in practice.

SituationProblemBetter choice
Antiderivative is knownSymbolic evaluation is exact and fastUse the fundamental theorem directly
No closed-form antiderivative (for example, the Gaussian)Symbolic methods stallNumerical quadrature such as Simpson's rule, or a table of special values
Many dimensionsA grid of strips grows exponentially with dimensionMonte Carlo Method, which samples instead of gridding
Infinite bounds or a singularity inside the intervalThe Riemann sum is not defined directlyWrite it as a limit of proper integrals (an improper integral)
Oscillating or very jagged integrandCoarse sums miss cancellationsAdaptive quadrature that refines where the function changes fast

Common mistakes:

  • Forgetting the sign. Area below the axis is negative. If you need the total area of a region, split the integral at the zeros and flip the signs of the negative pieces.
  • Reversing the bounds. Computing F(a)−F(b)F(a) - F(b) gives the wrong sign. Always subtract the value at the lower limit from the value at the upper limit.
  • Adding +C+C. It belongs to indefinite integrals, not definite ones. Including it is harmless, but it adds clutter.
  • Confusing displacement with distance. The integral of velocity gives displacement. Distance needs the integral of ∣v∣|v|.

History

The idea of computing areas by exhausting a region with simpler shapes goes back to the ancient Greeks. Archimedes, in the third century BCE, found the area of a parabolic segment by filling it with triangles, and showed that the total approached a fixed fraction of the triangle that encloses it. This is the method of exhaustion, and it is the same limiting idea in geometric form.

In the late 1600s, Isaac Newton and Gottfried Wilhelm Leibniz independently connected areas to rates of change. They showed that the area under a curve can be found by reversing differentiation, which is the fundamental theorem. Leibniz introduced the elongated S symbol ∫\int, short for "sum", in the 1670s and 1680s. His notation has outlasted almost every alternative.

The rigorous limit definition took longer. Augustin-Louis Cauchy gave a limit-based definition of the integral in the 1820s. Bernhard Riemann refined it in 1854, and the Riemann sum definition used here is named after him. Henri Lebesgue later generalised integration in the early 1900s to handle functions that Riemann's version could not. Riemann's definition is still the one taught first because it matches the picture of thin strips exactly.

Check yourself

QuestionWhat does the dxdx in ∫abf(x) dx\int_a^b f(x)\,dx tell you?Show answer

It names xx as the variable of integration and says the strips are thin in the xx direction. It is what the strip width Δx\Delta x becomes in the limit of the Riemann sum.

QuestionCompute ∫132x dx\int_1^3 2x\,dx.Show answer

An antiderivative of 2x2x is x2x^2. Then [x2]13=9−1=8[x^2]_1^3 = 9 - 1 = 8. The answer is 88.

QuestionWhy does the constant of integration disappear when you compute a definite integral?Show answer

Any antiderivative has the form F(x)+CF(x) + C. Evaluating the definite integral gives (F(b)+C)−(F(a)+C)(F(b) + C) - (F(a) + C). The two copies of CC cancel, so the result is F(b)−F(a)F(b) - F(a) for every choice of CC.

QuestionA car's velocity is v(t)v(t) in metres per second, and ∫010v(t) dt=0\int_0^{10} v(t)\,dt = 0. Can you conclude that the car travelled a total distance of zero?Show answer

No. The integral is the signed displacement, so 00 means the car ended where it started. The car could have driven forward for five seconds and then backward for five seconds, covering a total distance of ∫010∣v(t)∣ dt\int_0^{10} |v(t)|\,dt, which is positive. Distance needs the absolute value of velocity inside the integral.

Sources