Skip to content

CalculusLesson 4 of 6

Integrals: add up a changing quantity

Definite integrals and area

At a constant speed of 6 metres per second, travelling for 2 seconds covers 62=126\cdot2=12 metres. Multiplication works because the speed is constant. An integral extends that calculation to a speed that changes.

On a speed-versus-time graph, height is speed and width is elapsed time. A rectangle’s area has units (metres/second)seconds=metres(\text{metres}/\text{second})\cdot\text{seconds}=\text{metres}.

When speed changes, split the interval into short pieces. On each piece, use one speed reading times the piece’s duration as an approximate distance. Add those distances. For continuous speed, the approximation approaches the exact distance as the pieces become finer.

To see the arithmetic, find the area under f(x)=x2f(x)=x^2 from 0 to 1. With four equal pieces, each width is Δx=1/4\Delta x=1/4. Using each piece’s right endpoint gives

14[(14)2+(24)2+(34)2+12]=3064=0.46875.\frac14\left[\left(\frac14\right)^2+ \left(\frac24\right)^2+ \left(\frac34\right)^2+1^2\right] =\frac{30}{64}=0.46875.

Because x2x^2 increases on this interval, right-endpoint rectangles overestimate the area. Left-endpoint rectangles underestimate it.

Number of piecesLeft-endpoint sumRight-endpoint sum
40.218750.46875
100.2850.385
1000.328350.33835

Both approach 1/31/3. Their gap is 1/n1/n, so the area is squeezed into a smaller interval as n increases.

Increase the number of rectangles. For an increasing curve, left sums lie below the integral and right sums lie above it. This ordering does not hold for every curve.

We write the limiting total as

01x2dx=13.\int_0^1 x^2\,dx=\frac13.
PartMeaning
\intAccumulate by taking a limit of sums
0 and 1Start and end of the interval
x2x^2Function whose values supply rectangle heights
dxdxIntegrate with respect to x

The finite rectangles have width Δx\Delta x. The notation dx identifies the integration variable in the limit; it does not mean we set every rectangle’s width to zero and add zeros.

A definite integral accumulates signed area. For f(x)=x1f(x)=x-1 on [0,2][0,2], the lower triangle contributes 1/2-1/2 and the upper triangle contributes 1/21/2. The integral is zero, although the total geometric area is 1.

This distinction matters for motion. Integrating velocity gives displacement, including direction. Integrating speed, the absolute value of velocity in one dimension, gives distance travelled. A round trip can have zero displacement and positive distance.

Splitting an interval splits the total:

acf(x)dx=abf(x)dx+bcf(x)dx.\int_a^c f(x)\,dx=\int_a^b f(x)\,dx+\int_b^c f(x)\,dx.

Constants can be pulled outside and sums integrated term by term. Reversing the bounds changes the sign. With identical bounds, the integral is zero.

The average height of f over [a,b][a,b], where a<ba<b, is

1baabf(x)dx.\frac1{b-a}\int_a^b f(x)\,dx.

This weights equal-width intervals equally. A probability expectation can use unequal weights: E[X]=xfX(x)dx\mathbb E[X]=\int x f_X(x)\,dx weights each value by the probability density there. Only for a uniform distribution does it reduce to an unweighted interval average.

Why the area under x² is exactly 1/3

The right-endpoint sum with n equal pieces is

12+22++n2n3=n(n+1)(2n+1)6n3=(1+1/n)(2+1/n)6.\frac{1^2+2^2+\cdots+n^2}{n^3} =\frac{n(n+1)(2n+1)}{6n^3} =\frac{(1+1/n)(2+1/n)}6.

Its limit is 2/6=1/32/6=1/3. This calculation uses the identity for the sum of the first n squares.

The fundamental theorem explains how an antiderivative can calculate this total without adding hundreds of rectangles.

Definition

Read the full glossary entry →