From infinite slices of area to the most powerful bridge in mathematics — connecting differentiation and integration into one breathtaking theorem.
Opening Story
A Monsoon, a River, and a Question of Survival
It is July 2022. The monsoon has arrived in Sindh, and the Indus River is rising. Engineers at the Tarbela Dam need to answer one urgent question: how much water will flow through this point in the next 72 hours?
They have sensors reading the flow rate $R(t)$ in cubic metres per second, updated every hour. The rate changes constantly — faster after heavy rain, slower in the early morning. Nobody can memorise a continuously changing function. But every engineer in that room knows one thing: the total volume of water is the area under the $R(t)$ curve.
They need to compute $\displaystyle\int_0^{72} R(t)\,dt$. The decision to open the spillway — potentially displacing millions of people — depends on getting this number right. This is not a textbook exercise. This is the definite integral saving lives.
This story captures exactly why the definite integral exists. Whenever a quantity accumulates continuously — water, money, distance, electrical charge, heat — the tool that measures the total accumulation is the definite integral. And the tool that lets us compute it efficiently, without adding millions of rectangles by hand, is the Fundamental Theorem of Calculus.
The Big Picture: The Fundamental Theorem reveals that differentiation and integration — which appear to be completely different operations — are actually inverse processes of each other. This is one of the most surprising and beautiful results in all of mathematics.
Learning Objectives
What You Will Master in This Section
1
Show how area under a curve can be expressed as the limit of a Riemann sum.
2
Define the definite integral and explore its algebraic properties and rules.
3
State the Fundamental Theorem of Calculus and use it to evaluate definite integrals efficiently.
4
Use the FTC to solve applied problems involving net change and accumulation.
5
Provide a geometric justification of the Fundamental Theorem of Calculus.
§ 1 — Area as the Limit of a Sum
From One Rectangle to Infinite Precision
Let us find the area under $f(x) = x^2$ from $x = 0$ to $x = 2$. We will start crudely and progressively improve.
Approximation 1
One Rectangle — Very Rough
Use a single rectangle spanning the entire interval $[0, 2]$. Take the height as $f(2) = 4$ (right endpoint).
Area $\approx f(2) \cdot 2 = 4 \times 2 = 8$
The true area is $\frac{8}{3} \approx 2.667$. Our estimate of $8$ is a big overestimate — the rectangle towers over the curve everywhere. We can do better by using more rectangles.
Approximation 2
Two Rectangles — Getting Closer
Divide $[0, 2]$ into 2 equal subintervals of width $\Delta x = 1$. Use the right endpoint of each.
Rectangle 1 → right endpoint x = 1, f(1) = 1² = 1 → area = 1 × 1 = 1
Rectangle 2 → right endpoint x = 2, f(2) = 2² = 4 → area = 4 × 1 = 4
Total ≈ 1 + 4 = 5
The true area is $\frac{8}{3} \approx 2.667$. Two rectangles give us $5$ — still an overestimate, but already much better than $8$. More rectangles means a closer approximation.
Approximation 3
Four Rectangles — Much Better
Divide $[0,2]$ into 4 equal sub-intervals, each of width $\Delta x = 0.5$. Use right endpoints for height.
Sub-interval
Right endpoint $x_i$
Height $f(x_i) = x_i^2$
Area of rectangle
$[0, 0.5]$
$0.5$
$0.25$
$0.25 \times 0.5 = 0.125$
$[0.5, 1]$
$1.0$
$1.00$
$1.00 \times 0.5 = 0.500$
$[1, 1.5]$
$1.5$
$2.25$
$2.25 \times 0.5 = 1.125$
$[1.5, 2]$
$2.0$
$4.00$
$4.00 \times 0.5 = 2.000$
Total Area $\approx 0.125 + 0.500 + 1.125 + 2.000 = \mathbf{3.75}$
With 4 rectangles we get $3.75$ vs. the true $\frac{8}{3} \approx 2.667$. Still overshooting (right endpoints overestimate for increasing functions), but much closer than before. The key insight: more rectangles means more accuracy.
General Formula
$n$ Rectangles — The Riemann Sum
Divide $[a, b]$ into $n$ equal sub-intervals, each of width $\Delta x = \dfrac{b-a}{n}$. The right endpoint of the $i$-th sub-interval is $x_i = a + i\Delta x$.
Riemann Sum
$$S_n = \sum_{i=1}^{n} f(x_i)\,\Delta x = \sum_{i=1}^{n} f\!\left(a + i\cdot\frac{b-a}{n}\right)\cdot\frac{b-a}{n}$$
For our example $f(x)=x^2$, $[0,2]$, using right endpoints:
Drag the slider to increase the number of rectangles and watch the approximation converge to the exact area. Try different functions and endpoint rules.
⬛ Interactive Riemann Sum Explorer
n = 6
Δx = —
Approx ≈ —
Exact = —
Error = —
Area as a Limit
The exact area under $f(x)$ from $a$ to $b$ is defined as the limit of the Riemann sum as $n \to \infty$:
This limit exists whenever $f$ is continuous on $[a,b]$. The beautiful fact is: it does not matter which sample point $x_i^*$ we choose — left, right, or midpoint — the limit is always the same.
Example — Area Using the Limit
Find the area under $f(x) = 3x$ from $x = 0$ to $x = 2$ using the limit definition.
Solution
Right endpoints: $x_i = \dfrac{2i}{n}$, width $\Delta x = \dfrac{2}{n}$
The number $a$ is the lower limit and $b$ is the upper limit of integration. The result is a number, not a function.
Area as a Definite Integral
When $f(x) \geq 0$ on $[a,b]$, the definite integral equals the area under the curve:
$$\text{Area} = \int_a^b f(x)\,dx$$
When $f(x)$ takes negative values, the integral computes the signed area — area above the $x$-axis counts positive, area below counts negative.
📐 Signed Area Explorer — $\int_0^b \sin(x)\,dx$
Positive area: —
Negative area: —
Net integral: —
Important: $\displaystyle\int_a^b f(x)\,dx$ gives signed area. If you want total (unsigned) area when $f$ dips below the axis, you must split the integral at the zeros and add absolute values.
§ 4 — The Bridge Between Two Worlds
The Fundamental Theorem of Calculus
Without the FTC, computing $\displaystyle\int_0^2 x^2\,dx$ requires evaluating a limit of a sum — tedious. The FTC provides a miraculous shortcut.
The Fundamental Theorem of Calculus
If $f$ is continuous on $[a,b]$ and $F$ is any antiderivative of $f$ (i.e. $F'(x) = f(x)$), then:
$$\int_a^b f(x)\,dx = F(b) - F(a)$$
We write $F(b) - F(a)$ as $\Big[F(x)\Big]_a^b$.
What this means: To compute a definite integral, find any antiderivative $F(x)$, then simply subtract: $F(b) - F(a)$. The $+C$ cancels out, so we can ignore it.
Using the FTC — Examples
Example 1 — Power Function
Compute $\displaystyle\int_0^2 x^2\,dx$.
Step 1: Find an antiderivative: $F(x) = \dfrac{x^3}{3}$
So $A(x)$ is an antiderivative of $f(x)$! Since $A(a) = 0$, and any antiderivative $F$ satisfies $F(x) = A(x) + C$, we get $\int_a^b f(x)\,dx = A(b) = F(b) - F(a)$.
The Profound Truth: The FTC says that accumulation (integration) and rate of change (differentiation) are inverse operations. The area function, when differentiated, gives back the original function. This is why $\frac{d}{dx}\int_a^x f(t)\,dt = f(x)$.
§ 6 — Properties of the Definite Integral
Integration Rules for Definite Integrals
These rules let us manipulate definite integrals algebraically without recomputing from scratch.
When a definite integral requires substitution, you have two approaches. The cleaner method is to change the limits of integration along with the variable.
Substitution Rule for Definite Integrals
If $u = g(x)$ and $g'$ is continuous on $[a,b]$, then:
A land surveyor in Lahore is measuring a plot between two boundary roads. The northern boundary follows the curve $f(x) = -x^2 + 8x$ and the southern boundary follows $g(x) = x^2 - 4x$, where $x$ is in hundreds of metres. Find the total area of the plot enclosed between the two curves.
Step 1 — Find where the boundaries meet (intersection points).
Set $f(x) = g(x)$:
$$-x^2 + 8x = x^2 - 4x \implies 0 = 2x^2 - 12x = 2x(x-6) \implies x = 0 \text{ and } x = 6$$
Step 2 — Determine which curve is on top.
Test $x = 3$ (midpoint): $f(3) = -9+24 = 15$, $g(3) = 9-12 = -3$. Since $f(3) > g(3)$, the northern boundary $f(x)$ lies above $g(x)$ throughout $[0,6]$.
Why this works: When a region is bounded above by $f(x)$ and below by $g(x)$, you subtract the lower from the upper before integrating. This automatically handles the fact that $g(x)$ dips below the $x$-axis — you never need to split the integral or worry about signs, because the difference $f(x)-g(x)$ is always positive on $[0,6]$.
⚡ Example 2 — Electricity Consumption at LUMS
LUMS's power consumption rate (in MW) during a 12-hour working day is modelled by
Sanity check: The average power over 12 hours is $\dfrac{30.96}{12} \approx 2.58$ MW. Since $P(0)=1.5$ MW and $P(12) = 3.66$ MW, an average of $\approx 2.58$ MW is very reasonable. ✓
📈 Example 3 — Revenue Accumulation at a Karachi Textile Firm
A Karachi textile firm's revenue rate (in million PKR/month) follows
Key insight: You do not recompute the antiderivative for part (b) — the same substitution and antiderivative $\tfrac{3}{2}\sqrt{2t^2+7}$ works. Only the limits change.
🏃 Example 4 — LUMS Athletics Track Event
During a LUMS inter-faculty athletics event, a runner's speed (in km/min) is modelled by
(a) Find the total distance covered over the full 4 minutes. (b) Find the distance covered in the first minute only, and express it as an exact logarithm.
Part (a) — Total distance over 4 minutes.
Let $u = t^4 - t^2 + 3$, then $\dfrac{du}{dt} = 4t^3 - 2t$ — the numerator is exactly $\dfrac{du}{dt}$. This is a $\int \dfrac{u'}{u}\,dt = \ln|u| + C$ pattern.
What just happened? When $t=0$ and $t=1$ both give $u=3$, the upper and lower limits of the transformed integral are identical — so by the same-limits rule $\int_a^a f\,du = 0$, the net distance is zero. This is a powerful reminder: always check your transformed limits carefully before concluding.
Coming up next — §5.4 Applying Definite Integration: Distribution of Wealth and Average Value — where we use integrals to measure economic inequality with the Lorenz curve and Gini coefficient.