Courses / Computer Science I
Calculus

The Definite Integral and Area

The definite integral ^b f(x)\, dx is the second face of integration: it measures the accumulated area between the curve y = f(x) and the x-axis, from x…

Computer Science I 338 words Free to read

Accumulating Under a Curve

The definite integral abf(x)dx\int_a^b f(x)\, dx is the second face of integration: it measures the accumulated area between the curve y=f(x)y = f(x) and the xx-axis, from x=ax = a to x=bx = b. Where the derivative was about instantaneous rates, the definite integral is about totals — the total distance from a velocity, the total accumulated from a rate.

The definition is a limit of Riemann sums: slice the interval [a,b][a, b] into nn thin rectangles of width Δx\Delta x, each with height f(xi)f(x_i) given by the curve. The sum of rectangle areas f(xi)Δx\sum f(x_i)\,\Delta x approximates the region, and as the slices get thinner (nn \to \infty) the approximation becomes exact: abf(x)dx=limni=1nf(xi)Δx.\int_a^b f(x)\, dx = \lim_{n \to \infty} \sum_{i=1}^n f(x_i)\,\Delta x. This is why the integral sign \int is an elongated "S" for "sum."

Two important features:

Numerically, Riemann sums (and refinements like the trapezoidal rule and Simpson's rule) are exactly how computers evaluate integrals that have no closed form — a cornerstone of scientific computing.

Common pitfall: treating the definite integral as always giving the geometric (positive) area, and confusing it with the indefinite integral. The definite integral is signed — area below the axis counts as negative, so a symmetric curve can integrate to zero even though it encloses real area. And a definite integral is a single number (no +C+C), unlike the indefinite integral, which is a family of functions.

The area under a curve approximated by rectangles that grow thinner and more numerous, the accent shaded region converging to the exact integral, with a below-axis lobe shaded to subtract.

abf(x)dx=limni=1nf(xi)Δx\int_a^b f(x)\, dx = \lim_{n \to \infty} \sum_{i=1}^n f(x_i)\,\Delta x

The Definite Integral and Area

Practise this lesson

The explanation above is free to read. The graded practice for this lesson lives in the Tryals app.

10practice questions
2interactive scenes
Start Computer Science I free

Calculus