MathLabs

Grade 12

Antiderivative

An antiderivative reverses differentiation: FF is an antiderivative of ff on an interval KK when F′=fF'=f on KK, written ∫f(x) dx=F(x)+C\int f(x)\,dx = F(x) + C. On an interval, any two antiderivatives of the same ff differ only by a constant — a fact proved with the Mean Value Theorem — and two systematic techniques, substitution (∫f(g(x))g′(x) dx=F(g(x))+C\int f(g(x))g'(x)\,dx = F(g(x)) + C) and integration by parts (∫u dv=uv−∫v du\int u\,dv = uv - \int v\,du), turn the derivative rules you already know (chain rule, product rule) into tools for finding antiderivatives, with direct uses in kinematics: recovering position from velocity and velocity from acceleration.

IntuitionRunning the derivative backward: from velocity to position

A speedometer tells you v(t)v(t), how fast you are going; an odometer tells you s(t)s(t), how far you have travelled. Differentiation goes one way, s↦vs\mapsto v: v(t)=s′(t)v(t) = s'(t). The antiderivative asks the reverse question: given only the speed readings v(t)v(t), can you reconstruct the position s(t)s(t)? Since differentiating undoes a shift by a constant (ddx(x2+5)=ddx(x2+100)=2x\frac{d}{dx}(x^2+5)=\frac{d}{dx}(x^2+100)=2x), reversing it can only recover ss up to an unknown constant — exactly how much distance had already been covered before you started watching the speedometer.

A cubic curve representing one antiderivative F(x); a slider for the constant d shifts the entire curve up or down without changing its shape.
One member, F(x)≈x33−x2+xF(x) \approx \dfrac{x^3}{3} - x^2 + x, of the family of antiderivatives of f(x)=x2−2x+1=(x−1)2f(x)=x^2-2x+1=(x-1)^2. Dragging the constant term dd shifts the whole curve vertically without changing its slope anywhere — because the derivative of a constant is 00 — which is exactly why every vertical shift of FF is also a valid antiderivative of the same ff.

SchoolDefinition of the antiderivative

Definition: Antiderivative on an interval

Let ff be defined on an interval KK. A function FF is an antiderivative (or primitive) of ff on KK if FF is differentiable at every x∈Kx\in K and F′(x)=f(x),x∈KF'(x) = f(x), \quad x \in K. The collection of all antiderivatives of ff on KK is called the indefinite integral of ff, written ∫f(x) dx=F(x)+C\int f(x)\,dx = F(x) + C, where CC ranges over all real constants; ∫\int is the integral sign, f(x)f(x) the integrand, and dxdx marks xx as the variable of integration.

F′(x)=f(x),x∈KF'(x) = f(x), \quad x \in K

Linearity. Antiderivatives inherit the two linearity rules of differentiation: ∫[f(x)±g(x)] dx=∫f(x) dx±∫g(x) dx\int [f(x) \pm g(x)]\,dx = \int f(x)\,dx \pm \int g(x)\,dx, and pulling out a nonzero constant factor, ∫kf(x) dx=k∫f(x) dx(k≠0)\int k f(x)\,dx = k\int f(x)\,dx \quad (k \neq 0). These let you find the antiderivative of a sum or scalar multiple term by term, exactly as with derivatives.

∫f(x) dx=F(x)+C\int f(x)\,dx = F(x) + C
Basic table of antiderivatives
f(x)f(x)∫f(x) dx\int f(x)\,dxCondition
xnx^nxn+1n+1+C\dfrac{x^{n+1}}{n+1} + Cn≠−1n \neq -1
1x\dfrac1xln⁡∣x∣+C\ln|x| + Cx≠0x \neq 0
exe^xex+Ce^x + Calways
cos⁡x\cos xsin⁡x+C\sin x + Calways
sin⁡x\sin x−cos⁡x+C-\cos x + Calways
1cos⁡2x\dfrac{1}{\cos^2 x}tan⁡x+C\tan x + Cx≠π2+kπx \neq \frac{\pi}{2}+k\pi

UndergraduateUniqueness, substitution, and integration by parts

If FF and GG are both antiderivatives of ff on an interval KK, then there is a constant CC such that G(x)=F(x)+CG(x) = F(x) + C for all x∈Kx\in K.

Why is it true?

If two cars drive along the same road with identical speed at every instant, they cannot drift apart or come together — the distance between them stays fixed forever. Here FF and GG are the two cars' positions and ff is their shared speed; the theorem says the "gap" G−FG-F must be a constant. Crucially this needs KK to be a single interval: on two separate intervals, the gap could jump to a different constant on each piece, since you never have to physically travel from one piece to the other.

Proof

Define H(x)=G(x)−F(x)H(x) = G(x) - F(x) for x∈Kx\in K. Since FF and GG are both antiderivatives of ff, H′(x)=G′(x)−F′(x)=f(x)−f(x)=0H'(x) = G'(x)-F'(x) = f(x)-f(x)=0 for every x∈Kx\in K: HH is differentiable on KK with derivative identically zero.

Take any two points x1<x2x_1 < x_2 in KK (possible since KK is an interval, so the whole segment [x1,x2][x_1,x_2] lies in KK). HH is differentiable, hence continuous, on [x1,x2][x_1,x_2], so the Mean Value Theorem (Lagrange) applies: there is ξ∈(x1,x2)\xi\in(x_1,x_2) with H(x2)−H(x1)=H′(ξ)(x2−x1)=0H(x_2)-H(x_1) = H'(\xi)(x_2-x_1) = 0, using H′(ξ)=0H'(\xi)=0.

Hence H(x2)=H(x1)H(x_2)=H(x_1) for every pair x1<x2x_1<x_2 in KK: HH takes the same value everywhere on KK, say H(x)=CH(x)=C for all x∈Kx\in K. Substituting back, G(x)−F(x)=CG(x)-F(x)=C, i.e. G(x)=F(x)+CG(x) = F(x) + C, which is exactly the claim.

If FF is an antiderivative of ff and gg is differentiable, then ∫f(g(x))g′(x) dx=F(g(x))+C\int f(g(x))g'(x)\,dx = F(g(x)) + C.

Why is it true?

Substitution is nothing but the chain rule read backward: differentiating a composite function F(g(x))F(g(x)) produces exactly the pattern "outer derivative times inner derivative," f(g(x))g′(x)f(g(x))g'(x). So whenever an integrand already has this exact shape, recognizing u=g(x)u=g(x) turns a hard-looking integral in xx into an easy one in uu.

Proof

Define Φ(x)=F(g(x))\Phi(x) = F(g(x)). By the chain rule, since F′=fF'=f, Φ′(x)=F′(g(x))⋅g′(x)=f(g(x))g′(x)\Phi'(x) = F'(g(x))\cdot g'(x) = f(g(x))g'(x).

This says exactly that Φ\Phi is differentiable with derivative f(g(x))g′(x)f(g(x))g'(x) at every xx in the domain — i.e. Φ\Phi is, by definition, an antiderivative of f(g(x))g′(x)f(g(x))g'(x).

By the uniqueness theorem above, every antiderivative of f(g(x))g′(x)f(g(x))g'(x) differs from Φ\Phi by a constant, so ∫f(g(x))g′(x) dx=Φ(x)+C=F(g(x))+C\int f(g(x))g'(x)\,dx = \Phi(x) + C = F(g(x)) + C, as claimed. In practice one writes u=g(x)u=g(x), du=g′(x) dxdu=g'(x)\,dx, reducing the left side to ∫f(u) du=F(u)+C\int f(u)\,du = F(u)+C before substituting u=g(x)u=g(x) back at the end.

If u=u(x)u=u(x) and v=v(x)v=v(x) are differentiable on an interval KK, then ∫u dv=uv−∫v du\int u\,dv = uv - \int v\,du, i.e. ∫u(x)v′(x) dx=u(x)v(x)−∫u′(x)v(x) dx\int u(x)v'(x)\,dx = u(x)v(x) - \int u'(x)v(x)\,dx.

Why is it true?

Integration by parts reverses the product rule: it does not remove the integral, but it shifts the derivative from one factor (vv) onto the other (uu), which is exactly the right move when uu becomes simpler after differentiating (like u=xu=x becoming u′=1u'=1) while v′v' stays easy to antidifferentiate — turning a hard product like ∫xex dx\int x e^x\,dx into an easy one.

Proof

By the product rule, (uv)′=u′v+uv′(uv)' = u'v + uv'. Rearranging, uv′=(uv)′−u′vuv' = (uv)' - u'v.

Take the antiderivative (with respect to xx, on KK) of both sides. On the right, (uv)′(uv)' obviously has antiderivative uvuv itself (up to a constant, by the uniqueness theorem), so ∫uv′ dx=∫(uv)′ dx−∫u′v dx=uv−∫u′v dx\int uv'\,dx = \int (uv)'\,dx - \int u'v\,dx = uv - \int u'v\,dx.

Writing dv=v′(x) dxdv = v'(x)\,dx and du=u′(x) dxdu=u'(x)\,dx turns this into the compact mnemonic form ∫u dv=uv−∫v du\int u\,dv = uv - \int v\,du. In practice, one factor is chosen as uu (to be differentiated) and the rest as dvdv (to be antidifferentiated), typically preferring to differentiate the factor that simplifies (polynomial, logarithm) and antidifferentiate the factor that stays manageable (exe^x, sin⁡x\sin x, cos⁡x\cos x).

UndergraduateReal-World Applications and Worked Examples

Antiderivatives are the mathematical engine of kinematics: since v(t)=s′(t)v(t) = s'(t) and a(t)=v′(t)=s′′(t)a(t) = v'(t) = s''(t), going backward — antidifferentiating acceleration to recover velocity, then antidifferentiating velocity to recover position — is exactly how engineers compute how far a braking car travels before stopping, or how high a rocket climbs given its thrust profile, whenever only the acceleration (from Newton's second law, F=maF=ma) is known directly.

Example: Braking distance from a velocity function

A car brakes with velocity v(t)=20−8tv(t) = 20 - 8t (in m/s, tt in seconds) until it stops. Given s(0)=0s(0)=0, find s(t)s(t) and compute the braking distance (the position when the car stops).

Solution

Since v=s′v=s', ss is an antiderivative of vv: s(t)=20t−4t2s(t) = 20t - 4t^2 term by term, plus a constant CC; s(0)=0s(0)=0 forces C=0C=0, so s(t)=20t−4t2s(t) = 20t - 4t^2.

The car stops when v(t)=0v(t)=0: 20−8t=0⇒t=2.5 s20-8t=0 \Rightarrow t = 2.5\ \text{s}.

The braking distance is the position reached at that stopping time: s(2,5)=20(2,5)−4(2,5)2=50−25=25 ms(2{,}5) = 20(2{,}5)-4(2{,}5)^2 = 50-25 = 25\ \text{m}. So the car travels 2525 meters after the brakes are applied.

Example: Altitude of a rocket from its acceleration

A model rocket accelerates upward with a(t)=6ta(t) = 6t (m/s²) for 0≤t≤100\le t\le 10 s, starting from rest at the ground (v(0)=0v(0)=0, s(0)=0s(0)=0). Find its altitude s(t)s(t) and its altitude at t=10t=10 s.

Solution

Antidifferentiate the acceleration to get velocity: ∫6t dt=3t2+C1\int 6t\,dt = 3t^2+C_1; since v(0)=0v(0)=0, C1=0C_1=0, so v(t)=3t2v(t) = 3t^2.

Antidifferentiate the velocity to get position: ∫3t2 dt=t3+C2\int 3t^2\,dt = t^3+C_2; since s(0)=0s(0)=0, C2=0C_2=0, so s(t)=t3s(t) = t^3.

At t=10t=10: s(10)=1000 ms(10) = 1000\ \text{m} — the rocket has climbed one kilometer, entirely recovered from the acceleration profile by two successive antidifferentiations.

ResearchAntiderivatives at the research frontier

Compute ∫(3x2−4x+5) dx\int (3x^2 - 4x + 5)\,dx.

Using substitution, compute ∫2xcos⁡(x2) dx\int 2x\cos(x^2)\,dx.

Using integration by parts, compute ∫xex dx\int x e^x\,dx.

An object has velocity v(t)=6t2−4tv(t) = 6t^2 - 4t (m/s) and position s(0)=1s(0)=1 (m). What is s(1)s(1)?

References

  1. James Stewart (2015). Calculus: Early Transcendentals
  2. Michael Spivak (2008). Calculus
  3. Manuel Bronstein (1998). Symbolic Integration Tutorial