TExcelTAD
Home › Calculus in Depth › Indefinite Integrals and the Net Change Theorem

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 ∫f(x) dx\int f(x)\,dx, 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

∫f(x) dx=F(x)+CmeansF′(x)=f(x)\int f(x)\,dx = F(x) + C \qquad \text{means} \qquad F'(x) = f(x)
Definite ∫abf(x) dx\int_a^b f(x)\,dx Indefinite ∫f(x) dx\int f(x)\,dx
is a number family of functions
depends on xx? no (xx is a dummy) yes
related by ∫abf(x) dx=[∫f(x) dx]ab\int_a^b f(x)\,dx = \left[\int f(x)\,dx\right]_a^b FTC Part 2

A formula is verified by differentiating the right side. For example

∫xcos⁡(x2) dx=12sin⁡(x2)+Csinceddx 12sin⁡(x2)=12cos⁡(x2)⋅2x ✓\int x \cos(x^2)\,dx = \tfrac{1}{2} \sin(x^2) + C \qquad \text{since} \quad \frac{d}{dx}\, \tfrac{1}{2} \sin(x^2) = \tfrac{1}{2} \cos(x^2) \cdot 2x \ \checkmark

The table of antiderivatives becomes a table of indefinite integrals. Remember the domain caveat: ∫dxx=ln⁡∣x∣+C\int \frac{dx}{x} = \ln\lvert x \rvert + C holds on any interval not containing 0, with possibly different constants on x>0x > 0 and x<0x < 0.

The Net Change Theorem

Net Change Theorem. The integral of a rate of change is the net change:

∫abF′(x) dx=F(b)−F(a)\int_a^b F'(x)\,dx = F(b) - F(a).

It is FTC Part 2 read backwards. Some readings:

F(t)F(t) F′(t)F'(t) ∫abF′(t) dt\int_a^b F'(t)\,dt
volume of water in a tank inflow rate (L/min) litres added between aa and bb
position s(t)s(t) velocity v(t)v(t) displacement
population P(t)P(t) growth rate net change in population
bytes downloaded bandwidth (bytes/s) bytes transferred
cost C(x)C(x) of xx units marginal cost C′(x)C'(x) cost of raising production from aa to bb
charge Q(t)Q(t) current I(t)I(t) charge passed

Displacement versus distance

∫abv(t) dt\int_a^b v(t)\,dt is the displacement: net change in position, with backward motion counted negative. The distance travelled is ∫ab∣v(t)∣ dt\int_a^b \lvert v(t) \rvert\,dt. To compute it, split the interval where vv changes sign.

A particle has v(t)=t2−5t+4=(t−1)(t−4)v(t) = t^2 - 5t + 4 = (t - 1)(t - 4) m/s for 0≤t≤60 \le t \le 6. It moves forward on [0,1][0, 1], backward on [1,4][1, 4], forward on [4,6][4, 6]:

python · try it yourself
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 116+92+263=15\frac{11}{6} + \frac{9}{2} + \frac{26}{3} = 15 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 F(t)−F(a)F(t) - F(a). A tank's inflow is logged every 5 minutes (negative = draining):

python · try it yourself
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 F′=0F' = 0 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 ∫(6x2−4x+3x)dx\int \left(6x^2 - 4x + \frac{3}{x}\right) dx for x>0x > 0 and check it by differentiating.

Answer

2x3−2x2+3ln⁡x+C2x^3 - 2x^2 + 3 \ln x + C.

Solution
∫6x2=2x3,∫−4x=−2x2,∫3x=3ln⁡x(x>0)ddx(2x3−2x2+3ln⁡x)=6x2−4x+3x ✓\begin{aligned} &\int 6x^2 = 2x^3, \quad \int -4x = -2x^2, \quad \int \frac{3}{x} = 3 \ln x \quad (x > 0) \\ &\frac{d}{dx}\left(2x^3 - 2x^2 + 3 \ln x\right) = 6x^2 - 4x + \frac{3}{x} \ \checkmark \end{aligned}

Exercise 2: Displacement and distance

For v(t)=3−tv(t) = 3 - t on [0,5][0, 5], find the displacement and the distance travelled.

Answer

Displacement 5/25/2; distance 13/213/2.

Solution
∫05(3−t) dt=15−252=52forward on [0,3]: ∫03(3−t) dt=92backward on [3,5]: ∫35(3−t) dt=−2distance=92+2=132\begin{aligned} &\int_0^5 (3 - t)\,dt = 15 - \frac{25}{2} = \frac{5}{2} \\ &\text{forward on } [0, 3]\text{: } \int_0^3 (3 - t)\,dt = \frac{9}{2} \\ &\text{backward on } [3, 5]\text{: } \int_3^5 (3 - t)\,dt = -2 \\ &\text{distance} = \frac{9}{2} + 2 = \frac{13}{2} \end{aligned}

Exercise 3: Marginal cost

Marginal cost is C′(x)=40−0.02xC'(x) = 40 - 0.02x dollars per unit. How much more does it cost to produce 1500 units than 1000?

Answer

$7500.

Solution
∫10001500(40−0.02x) dx=[40x−0.01x2]10001500=(60 000−22 500)−(40 000−10 000)=37 500−30 000=7500\begin{aligned} \int_{1000}^{1500} (40 - 0.02x)\,dx &= \left[40x - 0.01x^2\right]_{1000}^{1500} \\ &= (60\,000 - 22\,500) - (40\,000 - 10\,000) = 37\,500 - 30\,000 = 7500 \end{aligned}
python · try it yourself
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 r(t)=8+2sin⁡(πt/10)r(t) = 8 + 2\sin(\pi t/10) MB/s for 0≤t≤200 \le t \le 20 s. How many megabytes arrive?

Answer

160 MB160\ \text{MB}.

Solution

∫0208 dt=160\int_0^{20} 8\,dt = 160, and sin⁡(πt/10)\sin(\pi t/10) completes exactly one full period on [0,20][0, 20], so its integral is 0.

Test yourself

What does ∫abv(t) dt\int_a^b v(t)\,dt give for a moving object?

  1. Total distance
  2. Average acceleration
  3. Displacement (net change in position)
  4. Final velocity

∫f(x) dx\int f(x)\,dx is…

  1. a family of functions F(x)+CF(x) + C with F′=fF' = f
  2. a number
  3. the area under ff
  4. the derivative of ff

A tank's inflow rate is r(t)r(t) L/min. What is 300+∫010r(t) dt300 + \int_0^{10} r(t)\,dt?

  1. The average inflow
  2. The volume at t=0t = 0
  3. The maximum volume
  4. The volume at t=10t = 10 if the tank held 300 L at t=0t = 0