In indefinite integration, substitution is our primary tool for simplifying composite functions by reversing the Chain Rule. When we move to definite integration, substitution becomes even cleaner: instead of converting the antiderivative back into the original variable x, we transform the limits of integration directly into the new variable t and evaluate the new integral in a single pass!
At the same time, changing the variable of a definite integral changes the domain over which we are integrating. To avoid subtle algebraic and geometric traps, we must understand why changing limits works, what conditions the substitution must satisfy (continuity and differentiability), and when we must split an interval before substituting.
1. The Substitution Theorem for Definite Integrals§
Suppose we want to evaluate an integral of the form:
∫abf(g(x))g′(x)dx
Here, we see an inner function t=g(x) together with its differential dt=g′(x)dx. As x moves from the lower limit x=a to the upper limit x=b, the new variable t=g(x) moves from t=g(a) to t=g(b).
[!IMPORTANT]
Theorem (Integration by Substitution — Direct Form):
Let g(x) have a continuous derivativeg′(x) on the closed interval [a,b], and let f(t) be continuous on the range of values taken by t=g(x) for x∈[a,b]. Then:
∫abf(g(x))g′(x)dx=∫g(a)g(b)f(t)dt
Proof (Via the Chain Rule and Fundamental Theorem of Calculus)§
Why does replacing g(x) by t, g′(x)dx by dt, and the limits a,b by g(a),g(b) give the exact same number?
Let F(t) be an antiderivative of the continuous function f(t), so that:
F′(t)=dtdF=f(t)
Right-Hand Side: Applying the First Fundamental Theorem of Calculus to the t-integral from t=g(a) to t=g(b) gives:
∫g(a)g(b)f(t)dt=[F(t)]g(a)g(b)=F(g(b))−F(g(a))
Left-Hand Side: Now consider the composite function H(x)=F(g(x)) on [a,b]. Because g(x) is differentiable on [a,b] and F(t) is differentiable on the range of g, the Chain Rule tells us the derivative of H(x) with respect to x:
H′(x)=dxd[F(g(x))]=F′(g(x))⋅g′(x)=f(g(x))g′(x)
Thus, H(x)=F(g(x)) is a continuous antiderivative of f(g(x))g′(x) on [a,b]! Applying the First Fundamental Theorem of Calculus from x=a to x=b gives:
∫abf(g(x))g′(x)dx=[F(g(x))]ab=F(g(b))−F(g(a))
Since both sides equal F(g(b))−F(g(a)), we conclude that:
Sometimes, instead of setting t=g(x), we substitute x as a function of t:
x=ϕ(t)⟹dx=ϕ′(t)dt
For example, to eliminate a2−x2, we set x=asinθ and dx=acosθdθ.
Here, we must find a lower limit t=α and an upper limit t=β such that ϕ(α)=a and ϕ(β)=b:
∫abf(x)dx=∫αβf(ϕ(t))ϕ′(t)dt
Does It Matter Which Interval of the New Variable We Choose?
Notice that for a periodic function like x=sinθ, there are infinitely many angles θ that satisfy sinα=a and sinβ=b. For example, if x goes from 0 to 1:
On the principal branch [0,2π], sin0=0 and sin(2π)=1.
On the second-quadrant branch [π,2π], sinπ=0 and sin(2π)=1.
What if someone chooses α=0 and β=25π (which spans multiple branches), or α=0 and β=π?
Let us examine what happens:
When Choosing Any Single Continuous Branch (Provided You Respect Signs!):
As long as x=ϕ(t) is continuous and differentiable on [α,β] and maps ϕ(α)=a, ϕ(β)=b without leaving the domain of f(x), the Chain Rule guarantees:
∫αβf(ϕ(t))ϕ′(t)dt=F(ϕ(β))−F(ϕ(α))=F(b)−F(a)
However, if you choose a branch where cosθ<0 (such as the second quadrant), you must write 1−sin2θ=∣cosθ∣=−cosθ! The principal one-to-one branch θ∈[−2π,2π] for x=asinθ (or θ∈(−2π,2π) for x=atanθ) is universally recommended because cosθ≥0 and secθ>0 there, so ∣cosθ∣=cosθ automatically!
Why Spanning Multiple Branches (Like [0,25π]) Fails in Practice:
If you pick α=0 and β=25π, then as θ moves from 0 to 25π, cosθ changes sign twice! If you carelessly write 1−sin2θ=cosθ across [0,25π] without absolute value bars, you will get the wrong answer. Furthermore, for x=tanθ, spanning across θ=2π crosses an infinite discontinuity where tanθ is undefined!
Let us see both of these points clearly through two worked examples.
Inverse Substitution Example A: Choosing Another Branch vs. Spanning Multiple Branches
Evaluate:
∫011−x2dx
using x=sinθ, and compare what happens for three different choices of [α,β] where sinα=0 and sinβ=1:
Choice 1: The Principal One-to-One Branch θ∈[0,2π] (Recommended)
Here sin0=0 and sin(2π)=1. On [0,2π], cosθ≥0, so:
We get the exact same answer 4π! Notice, however, that if we had forgotten ∣cosθ∣=−cosθ in the second quadrant, we would have gotten −4π (wrong sign).
Choice 3: Spanning Multiple Branches θ∈[0,25π] (The Trap!)
Since sin0=0 and sin(25π)=1, what happens if someone blindly writes:
∫05π/2cos2θdθ=[2θ+4sin2θ]05π/2=45π(WRONG! Five times too large!)
Why did this give 45π instead of 4π? Because on [2π,23π], cosθ is negative, so 1−sin2θ=∣cosθ∣=−cosθ. Therefore, the true integrand is ∣cosθ∣cosθ, which is negative on [2π,23π]:
By staying inside the single one-to-one branch [−2π,2π], x=sinθ never folds back and cosθ never changes sign!
Inverse Substitution Example B: Why Tangent Substitutions Must Stay Within a Single Branch
Evaluate:
∫−111+x21dx
using x=tanθ and dx=sec2θdθ.
Correct Choice (Single One-to-One Branch θ∈(−2π,2π)):
For x=−1, we choose α=−4π, and for x=1, we choose β=4π. Both lie inside the continuous one-to-one branch (−2π,2π):
Wrong Choice (Picking α and β from Different Branches, e.g., α=43π and β=4π):
Notice that tan(43π)=−1 as well! What if a student picks α=43π for the lower limit and β=4π for the upper limit?
∫3π/4π/41dθ=4π−43π=−2π(WRONG!)
Why did this fail completely? Because between θ=4π and θ=43π lies θ=2π, where x=tanθ has an infinite discontinuity! As θ moves from 43π to 4π, x=tanθ does not move through [−1,1] at all—instead, it blows up to ±∞ at θ=2π!
[!IMPORTANT]
Golden Rule for Inverse Substitution (x=ϕ(t)):
Always choose your new limits α and β from the standard principal one-to-one branch of the inverse function:
For x=asinθ: choose α,β∈[−2π,2π] (where cosθ≥0).
For x=atanθ: choose α,β∈(−2π,2π) (where tanθ is continuous and secθ>0).
For x=acosθ: choose α,β∈[0,π] (where sinθ≥0).
2. How to Substitute Step by Step (Without Switching Back to the Original Variable)§
When evaluating a definite integral by substitution, follow these four steps:
Choose the Substitution: Identify t=g(x) (or x=ϕ(t)) and differentiate to relate the differentials: dt=g′(x)dx (or dx=ϕ′(t)dt).
Check Continuity & Differentiability on [a,b]: Verify that g(x) and g′(x) have no discontinuities or undefined points inside [a,b]. (If there is a discontinuity at x=c, split the integral at x=c first!)
Change the Limits Immediately:
When x=a (lower limit), compute tlower=g(a).
When x=b (upper limit), compute tupper=g(b).
Rewrite Completely in t and Evaluate: Replace the entire integrand, differential, and limits with their t-equivalents. Never mix x-limits with a t-integrand, and once you are in t, evaluate [F(t)]g(a)g(b) directly—there is no need to substitute x back!
What happens if our substitution t=g(x) is a decreasing function of x, so that the new lower limit g(a) is larger than the new upper limit g(b)?
Do not panic—and do not swap the limits without changing the sign! Just keep g(a) at the bottom and g(b) at the top, or use the property ∫pqf(t)dt=−∫qpf(t)dt. The minus sign from dt=g′(x)dx and the reversed order of limits work together automatically!
Evaluate:
∫0π/2cos3xsinxdx
Solution:
Substitution: Let t=cosx. Differentiating gives:
dt=−sinxdx⟹sinxdx=−dt
Change the Limits:
When x=0, t=cos0=1.
When x=2π, t=cos2π=0.
Notice that as x goes from 0 to 2π, t decreases from 1 down to 0:
3. Crucial Traps: Differentiability and Non-Monotonic Substitutions§
Because substitution relies on the Chain Rule and domain mapping, there are two major traps you must watch out for.
Trap 1: Non-Monotonic Substitutions That Fold Back§
Suppose we use a substitution like t=g(x)=x2 on the symmetric interval [−1,1], or t=sinx on [0,π]. Look at what happens to the limits:
At x=−1, t=(−1)2=1.
At x=1, t=(1)2=1.
The lower limit and upper limit in t become equal (t=1 to t=1)! Does this mean the integral is zero, or did something go wrong?
The answer depends entirely on whether the integrand is already in the exact Chain Rule form f(g(x))g′(x)dx, or whether you tried to solve for x in terms of t!
Let us compare the two cases side by side:
Case A: When the Derivative Factor Is Already Present (Direct Theorem Applies!)
Consider:
∫−112xcos(x2)dx
Here g(x)=x2 and g′(x)dx=2xdx is already present in the integrand, and f(t)=cost is continuous everywhere. By our Substitution Theorem, it is 100% valid to write:
∫−112xcos(x2)dx=∫11costdt=0
Why is this valid? Because as x goes from −1 to 0, t=x2 goes from 1 to 0 (giving ∫10costdt), and as x goes from 0 to 1, t=x2 goes from 0 back to 1 (giving ∫01costdt). The two halves cancel each other out!
Case B: When You Must Solve for the Original Variable in Terms of the New Variable (You MUST Split First!)
Now consider the strictly positive integral:
I=∫−11cos(x2)dx>0orJ=∫0π1+sinxdx>0
Suppose a student tries to evaluate ∫−11x2dx by setting t=x2. Since x=−1⟹t=1 and x=1⟹t=1, if they blindly write ∫11…dt=0, they get 0 for a strictly positive area!
Why did it fail? Because 2xdx was not in the integrand! To express dx in terms of dt, you have to solve t=x2 for x:
On the left half [−1,0], x is negative, so x=−t and dx=−2t1dt.
On the right half [0,1], x is positive, so x=+t and dx=+2t1dt.
Because the inverse formula for x in terms of tchanges sign at the turning point x=0, you cannot use a single formula across [−1,1]!
[!CAUTION]
Rule for Non-Monotonic Substitutions:
If your substitution t=g(x) has a turning point x=c inside (a,b) (where g′(c)=0) and you need to solve for x or g′(x) in terms of t (using a square root like t or cosx=±1−sin2x), you MUST split the integral at the turning point x=c before substituting!
Example 4: Splitting at a Turning Point Before Substituting
First Integral: In ∫0π1+cos2xsinxdx, let t=cosx. Then dt=−sinxdx is already present! As x goes from 0 to π, t=cosx decreases monotonically from cos0=1 to cosπ=−1:
Second Integral: In ∫0π1+sin2xcosxdx, let t=sinx. Again, dt=cosxdx is already present in the numerator! Even though t=sinx rises from 0 to 1 (on [0,π/2]) and falls back from 1 to 0 (on [π/2,π]), the Direct Substitution Theorem applies immediately:
(Indeed, if you split at x=2π, the left half ∫0π/2 gives ∫011+t2dt=4π and the right half ∫π/2π gives ∫101+t2dt=−4π, summing to 0!)
Trap 2: Discontinuous Substitutions Inside the Interval§
Recall that the Substitution Theorem requires t=g(x) to be continuous and differentiable on the entire interval [a,b].
What if you choose a substitution like t=tanx, t=tan(2x), or t=x−x1 across an interval where g(x) blows up or jumps?
If g(x) is discontinuous at an interior point x=c∈(a,b), you cannot substitute across x=c in one piece! Just as we learned in Section 04, you must first split the integral at x=c into [a,c−h] and [c+h,b] as h→0+, and then apply the substitution on each continuous piece separately.
Example 5: Substituting Across an Interior Point of Discontinuity
Evaluate:
∫0π3+2cos2x1dx
Solution:
To integrate 3+2cos2x1, we divide the numerator and denominator by cos2x:
Check Continuity of t=tanx: On [0,π], the function t=tanx is discontinuous at x=2π!
(If we ignored this and plugged x=0⟹t=0 and x=π⟹t=0, we would get ∫005+3t2dt=0, which is false!)
Instead, we split [0,π] at x=2π before changing variables:
Notice the expression x4−1=(x2)2−1 inside the radical. If we multiply both the numerator and the denominator by x, we create xdx in the numerator and x2 in the denominator:
∫12x2(x2)2−1xdx
Substitution: Let t=x2. Then dt=2xdx⟹xdx=21dt.
Change the Limits:
When x=1, t=12=1.
When x=2, t=22=4.
The integral transforms into:
21∫14tt2−11dt
Recall that dtd(sec−1t)=tt2−11 for t≥1 (or you may set t=secθ, dt=secθtanθdθ). Evaluating directly: