Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
Explorations › Feel the change › lesson 4 of 6

Adding up thin slices

Find the area under a curve by standing thin bars under it and adding them up. More bars, better answer.

The derivative cuts a curve into tiny pieces to find slopes. The other half of calculus does the opposite: it adds up tiny pieces to find a total. The simplest total is an area.

Bars under a curve

The area under a curve has no easy formula, but rectangles do: width × height. So fill the area with rectangles.

Start with x² from 0 to 2 and 4 slices. Each bar is 0.5 wide. The bars either poke out above the curve or leave gaps below it, depending on whether their height is taken from the left edge, the middle or the right edge.

Now drag the slices up to 60. The bars hug the curve, and the sum closes in on the exact area, 83≈2.667\frac{8}{3} ≈ 2.66738​≈2.667.

Thinner is better

slicessum with left edges
41.75
202.47
602.60
infinitely many2.667

Making the slices infinitely thin and adding infinitely many of them is called integration, and the result is written

∫02x2 dx=83\int_0^2 x^2\,dx = \frac{8}{3}∫02​x2dx=38​

The long S stands for "sum", and dxdxdx is the width of one thin slice.

Think of it like this

Covering a curved garden bed with square paving slabs leaves gaps. Smaller slabs leave smaller gaps. Infinitely small slabs fit perfectly.

What to remember

  • Area under a curve ≈ the sum of thin rectangles: height × width.
  • More, thinner rectangles give a better answer.
  • Taking the slices infinitely thin gives the exact area: the integral.
  • Middle-edge heights usually beat left or right edges for the same number of slices.
Slopes everywhere: the derivativeNext