ViewWiki

The world, a little closer

Calculus: rates and areas.

How steep is a curve at one point, and how much area lies under it? Narrow the slices and see how the two answers undo each other.

Explore the scene Interactive article

01 / The experiment

One curve, two questions.

Move the point along the curve, narrow the slices under it, then slide Thinner slices to the exact area and the curve that measures it.

Still of the Calculus: rates and areas 3D scene, which explores: How can the steepness of a curve and the area under it be two sides of one idea?
Interactive scene

Loading the interactive version…

The explanation below is available while the scene loads.

The curve is f(x) = 0.2x³ − 1.2x² + 1.8x + 0.5. Slopes and the exact area come from its formulas; the slice sum adds up the slices as drawn.Each slice is as tall as the curve at its left edge, and the last slice is cut short at the point x.

02 / Three slice widths

Thinner slices, closer sums.

The area under the curve from 0 to 4 is exactly 3.6. Each card adds up slats of one width.

Four slices01
sum 3.200

Width 1

Four flat tops miss the hill and overshoot the dip. The total is off by more than a tenth.

Slices
4
Slice sum
3.200
Error
−0.400
Against 3.6
11.1% short
Eight slices02
sum 3.400

Width 0.5

Twice as many slices, each half as wide. The gaps and overhangs shrink, and so does the error: it halves.

Slices
8
Slice sum
3.400
Error
−0.200
Against 3.6
5.6% short
Forty slices03
sum 3.560

Width 0.1

The steps are almost too small to see. The sum is within about 1% of the exact area.

Slices
40
Slice sum
3.560
Error
−0.040
Against 3.6
1.1% short
The big idea

As the slices narrow, their sum closes in on the exact area. And the area collected so far grows at a rate equal to the curve’s height: slope and area undo each other.

A′(x) = f(x)

Two questions about a curve

A car’s speedometer and its trip counter answer two different questions. One says how fast you are going right now; the other says how far you have gone so far. Calculus is the mathematics of those two questions for any changing quantity: how fast it is changing at one instant, a rate, and how much it has added up to, an area.

The board shows a curve with a hill at x = 1 and a dip at x = 3. A straight line touches it at the point x, and blue slices fill the area under it from 0 up to that point.

Slope: how steep at one point

A curve has no single steepness, it changes as you go along. To measure it at one point, lay a straight edge on the curve so that it just touches there without cutting across. That line is the tangent, and its steepness, how far it rises for each step to the right, is the curve’s slope at that point, also called the derivative.

Watch the tangent line as you move Point x. Climbing the hill it tilts up and the slope is positive. At the top it lies level: the slope is exactly 0. Going down into the dip it tilts down and the slope is negative, until it lies level again at the bottom. For this curve the slope is 0.6(x − 1)(x − 3), which is zero at exactly those two places.

Area: adding up thin slices

The area under a curved top has no simple formula from school geometry. The trick is to cut it into thin upright slices. Each slice is nearly a rectangle, and a rectangle’s area is width times height. Add up all the rectangles and you have an estimate, called a Riemann sum after Bernhard Riemann, who made the idea rigorous in the 1850s. The idea itself is far older: in the third century BC Archimedes found the area of a curved piece of a parabola by filling it with ever smaller triangles.

Here each slice is as tall as the curve at its left edge. Where the curve is rising, the slices fall short of it; where it falls, they poke above it. The readout adds them up and compares the total with the exact area.

Try it: set Slice width to 1, 0.5 and then 0.1 and watch the error shrink. Then press Hilltop on Point x and slide Thinner slices to Exact area.

Back to the experiment

Narrower slices, smaller error

With Point x at 4, the slice sum is 3.2 when the slices are 1 wide, 3.4 at 0.5 and 3.56 at 0.1, closing in on the exact area of 3.6. Halving the width halves the error here, because each slice’s mistake is a thin sliver that shrinks with it. Let the width shrink towards zero and the sum settles on one number: that limit is the exact area, the integral.

The exact value does not need endless slices. It comes from a second formula, the antiderivative, A(x) = 0.05x⁴ − 0.4x³ + 0.9x² + 0.5x, which gives the area under the curve from 0 to any x.

Slope and area undo each other

Slide Thinner slices to Exact area and the slices merge into one smooth fill. A pink curve rises above it: A(x), the area collected so far as the point moves right. A second tangent line touches that curve at the same x, with a slope triangle under it, one unit across.

The rise of that triangle is exactly as tall as the mint line from the axis up to the first curve. The rate at which the area grows is the height of the curve: where the curve is tall, each step right adds a lot of area and A climbs steeply; where it dips, A barely rises. This is the fundamental theorem of calculus: finding a slope and finding an area are inverse operations, each undoing the other. It is why the antiderivative gives exact areas, and why the speedometer’s reading is the rate at which the trip counter climbs.

Isaac Newton and Gottfried Wilhelm Leibniz worked this out independently in the second half of the 17th century. Leibniz published first, in 1684, and his notation, dx for a thin slice and the stretched S of ∫ for a sum, is still used today.

What this model leaves out

The curve is one fixed, smooth polynomial that stays above the axis, so every area here is positive; below the axis, area counts as negative. The slices use the curve’s height at their left edge, one of several common choices, and the last slice is cut off at the point x. Slopes, the slice sum and the exact area are printed rounded, but each is computed from the formulas, not measured from the drawing.

Reuse with credit to ViewWiki and a link to this page.

04 / Learn this in a course

Practise it, step by step.

These 4 lessons teach the topic with checked questions, in course order.

  1. Average rate of change Mathematics · Calculus
  2. The derivative Mathematics · Calculus
  3. The area under a curve Mathematics · Calculus
  4. Slope and area undo each other Mathematics · Calculus