Indefinite Integrals and the Net Change Theorem
The Fundamental Theorem links two different objects: a definite integral (a number) and an antiderivative (a function). This lesson introduces the notation that keeps them apart, the indefinite integral , and then reads FTC Part 2 as the Net Change Theorem: integrating a rate of change gives the total change. That reading is what makes integrals useful far beyond geometry. See also Indefinite Integral Properties.
Indefinite integrals
| Definite | Indefinite | |
|---|---|---|
| is a | number | family of functions |
| depends on ? | no ( is a dummy) | yes |
| related by | FTC Part 2 |
A formula is verified by differentiating the right side. For example
The table of antiderivatives becomes a table of indefinite integrals. Remember the domain caveat: holds on any interval not containing 0, with possibly different constants on and .
The Net Change Theorem
Net Change Theorem. The integral of a rate of change is the net change:
.
It is FTC Part 2 read backwards. Some readings:
| volume of water in a tank | inflow rate (L/min) | litres added between and |
| position | velocity | displacement |
| population | growth rate | net change in population |
| bytes downloaded | bandwidth (bytes/s) | bytes transferred |
| cost of units | marginal cost | cost of raising production from to |
| charge | current | charge passed |
Displacement versus distance
is the displacement: net change in position, with backward motion counted negative. The distance travelled is . To compute it, split the interval where changes sign.
A particle has m/s for . It moves forward on , backward on , forward on :
import sympy as sp
t = sp.symbols('t', real=True)
v = t**2 - 5*t + 4
print("antiderivative:", sp.integrate(v, t), "+ C")
disp = sp.integrate(v, (t, 0, 6))
pieces = [sp.integrate(v, (t, a, b)) for a, b in [(0, 1), (1, 4), (4, 6)]]
print("displacement =", disp)
print("pieces =", pieces)
print("distance =", sum(abs(p) for p in pieces), "=", sp.integrate(sp.Abs(v), (t, 0, 6)))antiderivative: t**3/3 - 5*t**2/2 + 4*t + C
displacement = 6
pieces = [11/6, -9/2, 26/3]
distance = 15 = 15
The particle ends 6 m from its start but travels m in total.
Net change from measured rates
Usually the rate is measured, not given as a formula. Then the integral is computed numerically, and the cumulative integral gives the whole history . A tank's inflow is logged every 5 minutes (negative = draining):
import numpy as np
from scipy.integrate import cumulative_trapezoid
t = np.arange(0, 65, 5) # minutes
rate = np.array([12, 15, 18, 16, 10, 4, -3, -8, -10, -6, 0, 5, 9], float) # litres/min
change = cumulative_trapezoid(rate, t, initial=0)
start = 200.0
for ti, c in zip(t, change):
print(f"t = {ti:2d} min volume ≈ {start + c:6.1f} L")
print("net change over the hour ≈", float(change[-1]), "L")t = 0 min volume ≈ 200.0 L
t = 5 min volume ≈ 267.5 L
t = 10 min volume ≈ 350.0 L
t = 15 min volume ≈ 435.0 L
t = 20 min volume ≈ 500.0 L
t = 25 min volume ≈ 535.0 L
t = 30 min volume ≈ 537.5 L
t = 35 min volume ≈ 510.0 L
t = 40 min volume ≈ 465.0 L
t = 45 min volume ≈ 425.0 L
t = 50 min volume ≈ 410.0 L
t = 55 min volume ≈ 422.5 L
t = 60 min volume ≈ 457.5 L
net change over the hour ≈ 257.5 L
The volume peaks at about the time the rate crosses zero (between 25 and 30 min), exactly where predicts a maximum. Integrating the rate gave the whole trajectory, not just the endpoints.
In software
- Metrics and monitoring. Prometheus-style counters store totals and expose rates; dashboards integrate rates back into totals over a window (
increase()): the Net Change Theorem on time series. - Sensor fusion. A gyroscope reports angular velocity; integrating it gives the change in orientation. Errors in the rate integrate into growing drift, which is why it is combined with an absolute sensor (accelerometer, magnetometer).
- Finance. Interest accrual, cash-flow models and marginal-cost reasoning integrate rates. Cumulative sums over transactions are the discrete form.
Exercises
Exercise 1: An indefinite integral
Find for and check it by differentiating.
Answer
.
Solution
Exercise 2: Displacement and distance
For on , find the displacement and the distance travelled.
Answer
Displacement ; distance .
Solution
Exercise 3: Marginal cost
Marginal cost is dollars per unit. How much more does it cost to produce 1500 units than 1000?
Answer
$7500.
Solution
from scipy.integrate import quad
print(round(quad(lambda x: 40 - 0.02 * x, 1000, 1500)[0], 6))7500.0
Exercise 4: Downloaded data
A download runs at MB/s for s. How many megabytes arrive?
Answer
.
Solution
, and completes exactly one full period on , so its integral is 0.
Test yourself
What does give for a moving object?
- Total distance
- Average acceleration
- Displacement (net change in position)
- Final velocity
is…
- a family of functions with
- a number
- the area under
- the derivative of
A tank's inflow rate is L/min. What is ?
- The average inflow
- The volume at
- The maximum volume
- The volume at if the tank held 300 L at