Integrals

The integral as accumulated area — Riemann sums, definite integrals, and the antiderivative as an operation that reverses differentiation.

Riemann sum approximation of ∫₀³ x² dx = 9 — drag slider to add more rectangles
00.511.522.5302468f(x) = x²Approx: 5.906Exact: 9 (n→∞)
n = 480

Error: 3.0938 — approaches 0 as n → ∞

Definition

The definite integral of ff from aa to bb is the signed area between the graph of ff and the xx-axis over the interval [a,b][a, b]:

abf(x)dx\int_a^b f(x)\,dx

Area above the axis counts positive; area below counts negative.

To compute it, we approximate using Riemann sums — the sum of nn thin rectangles of width Δx=(ba)/n\Delta x = (b-a)/n and heights f(xi)f(x_i^*):

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

Computing from the definition

023dx\int_0^2 3\,dx is the area of a rectangle with width 22 and height 33: the answer is 66.

11xdx=0\int_{-1}^1 x\,dx = 0 because the positive area above the axis (for x>0x > 0) exactly cancels the negative area below (for x<0x < 0) — the integrand is odd.

Compute the integral

Evaluate 0πsinxdx\displaystyle\int_0^\pi \sin x\,dx.

Related concepts