The basic rules handle sums of powers, exponentials, and trig functions. But what about ∫ 2 x ( x 2 + 3 ) 5 d x \int 2x(x^2 + 3)^5\,dx ∫ 2 x ( x 2 + 3 ) 5 d x or ∫ x 2 cos ( x 3 ) d x \int x^2\cos(x^3)\,dx ∫ x 2 cos ( x 3 ) d x ? These came from the chain rule , and substitution (often called u-substitution ) is the chain rule run backwards. It’s the single most useful integration technique in a first calculus course (AP Calculus AB or IB).
The chain rule says d d x F ( g ( x ) ) = F ′ ( g ( x ) ) g ′ ( x ) \dfrac{d}{dx}F\big(g(x)\big) = F'\big(g(x)\big)\,g'(x) d x d F ( g ( x ) ) = F ′ ( g ( x ) ) g ′ ( x ) . Reading that backwards:
∫ f ( g ( x ) ) g ′ ( x ) d x = F ( g ( x ) ) + C , where F ′ = f . \int f\big(g(x)\big)\,g'(x)\,dx = F\big(g(x)\big) + C, \quad \text{where } F' = f. ∫ f ( g ( x ) ) g ′ ( x ) d x = F ( g ( x ) ) + C , where F ′ = f .
Look for an “inside function” g ( x ) g(x) g ( x ) whose derivative g ′ ( x ) g'(x) g ′ ( x ) also appears as a factor.
Choose u u u : usually the inside of a power, a root, an exponential, a trig function, or a denominator.
Find d u du d u : d u = u ′ ( x ) d x du = u'(x)\,dx d u = u ′ ( x ) d x .
Rewrite the whole integral in terms of u u u and d u du d u . No x x x may be left over.
Integrate with respect to u u u .
Substitute back so the answer is in terms of x x x .
If d u du d u is off by a constant factor, that’s fine: solve for d x dx d x or multiply and divide by the constant. For example, with u = x 3 u = x^3 u = x 3 , d u = 3 x 2 d x du = 3x^2\,dx d u = 3 x 2 d x , so x 2 d x = 1 3 d u x^2\,dx = \tfrac{1}{3}\,du x 2 d x = 3 1 d u .
You can only fix constants this way. If a variable is missing, a different u u u or a different method is needed.
For a definite integral, you can change the limits to u u u -values when you substitute:
∫ a b f ( g ( x ) ) g ′ ( x ) d x = ∫ g ( a ) g ( b ) f ( u ) d u . \int_a^b f\big(g(x)\big)\,g'(x)\,dx = \int_{g(a)}^{g(b)} f(u)\,du . ∫ a b f ( g ( x ) ) g ′ ( x ) d x = ∫ g ( a ) g ( b ) f ( u ) d u .
Then evaluate in terms of u u u and never go back to x x x . (Or substitute back to x x x and use the original limits. Just don’t mix the two.)
When you meet a new integral, ask in this order:
Is it a basic rule? Use the table from indefinite integrals .
Can algebra make it basic? Expand, split a fraction with a one-term denominator, or rewrite roots as powers.
Is there an inside function whose derivative is (nearly) there? Use substitution.
Is it a rational function with a polynomial on top that’s too big, or a quadratic on the bottom? Use long division or completing the square .
Find ∫ 2 x ( x 2 + 3 ) 5 d x \displaystyle\int 2x(x^2 + 3)^5\,dx ∫ 2 x ( x 2 + 3 ) 5 d x .
Solution. The inside of the power is x 2 + 3 x^2 + 3 x 2 + 3 , and its derivative 2 x 2x 2 x is right there. Let u = x 2 + 3 u = x^2 + 3 u = x 2 + 3 , so d u = 2 x d x du = 2x\,dx d u = 2 x d x :
∫ 2 x ( x 2 + 3 ) 5 d x = ∫ u 5 d u = u 6 6 + C = ( x 2 + 3 ) 6 6 + C \int 2x(x^2 + 3)^5\,dx = \int u^5\,du = \frac{u^6}{6} + C = \frac{(x^2 + 3)^6}{6} + C ∫ 2 x ( x 2 + 3 ) 5 d x = ∫ u 5 d u = 6 u 6 + C = 6 ( x 2 + 3 ) 6 + C
Check: d d x ( x 2 + 3 ) 6 6 = 6 ( x 2 + 3 ) 5 ⋅ 2 x 6 = 2 x ( x 2 + 3 ) 5 \dfrac{d}{dx}\dfrac{(x^2 + 3)^6}{6} = \dfrac{6(x^2 + 3)^5 \cdot 2x}{6} = 2x(x^2 + 3)^5 d x d 6 ( x 2 + 3 ) 6 = 6 6 ( x 2 + 3 ) 5 ⋅ 2 x = 2 x ( x 2 + 3 ) 5 . ✓
Find (a) ∫ x 2 cos ( x 3 ) d x \displaystyle\int x^2\cos(x^3)\,dx ∫ x 2 cos ( x 3 ) d x and (b) ∫ e 5 x d x \displaystyle\int e^{5x}\,dx ∫ e 5 x d x .
Solution.
(a) Let u = x 3 u = x^3 u = x 3 , so d u = 3 x 2 d x du = 3x^2\,dx d u = 3 x 2 d x and x 2 d x = 1 3 d u x^2\,dx = \tfrac{1}{3}\,du x 2 d x = 3 1 d u :
∫ x 2 cos ( x 3 ) d x = 1 3 ∫ cos u d u = 1 3 sin u + C = 1 3 sin ( x 3 ) + C \int x^2\cos(x^3)\,dx = \frac{1}{3}\int \cos u\,du = \frac{1}{3}\sin u + C = \frac{1}{3}\sin(x^3) + C ∫ x 2 cos ( x 3 ) d x = 3 1 ∫ cos u d u = 3 1 sin u + C = 3 1 sin ( x 3 ) + C
(b) Let u = 5 x u = 5x u = 5 x , so d x = 1 5 d u dx = \tfrac{1}{5}\,du d x = 5 1 d u :
∫ e 5 x d x = 1 5 ∫ e u d u = 1 5 e 5 x + C \int e^{5x}\,dx = \frac{1}{5}\int e^u\,du = \frac{1}{5}e^{5x} + C ∫ e 5 x d x = 5 1 ∫ e u d u = 5 1 e 5 x + C
A handy shortcut: for a linear inside function a x + b ax + b a x + b , just divide by a a a . For example, ∫ cos ( 4 x ) d x = 1 4 sin ( 4 x ) + C \int \cos(4x)\,dx = \tfrac{1}{4}\sin(4x) + C ∫ cos ( 4 x ) d x = 4 1 sin ( 4 x ) + C .
Find (a) ∫ x x 2 + 1 d x \displaystyle\int \frac{x}{x^2 + 1}\,dx ∫ x 2 + 1 x d x and (b) ∫ tan x d x \displaystyle\int \tan x\,dx ∫ tan x d x .
Solution.
(a) Let u = x 2 + 1 u = x^2 + 1 u = x 2 + 1 , so d u = 2 x d x du = 2x\,dx d u = 2 x d x and x d x = 1 2 d u x\,dx = \tfrac{1}{2}\,du x d x = 2 1 d u :
∫ x x 2 + 1 d x = 1 2 ∫ 1 u d u = 1 2 ln ∣ u ∣ + C = 1 2 ln ( x 2 + 1 ) + C \int \frac{x}{x^2 + 1}\,dx = \frac{1}{2}\int \frac{1}{u}\,du = \frac{1}{2}\ln|u| + C = \frac{1}{2}\ln(x^2 + 1) + C ∫ x 2 + 1 x d x = 2 1 ∫ u 1 d u = 2 1 ln ∣ u ∣ + C = 2 1 ln ( x 2 + 1 ) + C
(No absolute value is needed at the end because x 2 + 1 x^2 + 1 x 2 + 1 is always positive.)
(b) Write tan x = sin x cos x \tan x = \dfrac{\sin x}{\cos x} tan x = cos x sin x . Let u = cos x u = \cos x u = cos x , so d u = − sin x d x du = -\sin x\,dx d u = − sin x d x :
∫ sin x cos x d x = − ∫ 1 u d u = − ln ∣ u ∣ + C = − ln ∣ cos x ∣ + C \int \frac{\sin x}{\cos x}\,dx = -\int \frac{1}{u}\,du = -\ln|u| + C = -\ln|\cos x| + C ∫ cos x sin x d x = − ∫ u 1 d u = − ln ∣ u ∣ + C = − ln ∣ cos x ∣ + C
Whenever the numerator is (a constant times) the derivative of the denominator, the answer is a logarithm.
Evaluate ∫ 0 2 x x 2 + 5 d x \displaystyle\int_0^2 \frac{x}{\sqrt{x^2 + 5}}\,dx ∫ 0 2 x 2 + 5 x d x .
Solution. Let u = x 2 + 5 u = x^2 + 5 u = x 2 + 5 , so x d x = 1 2 d u x\,dx = \tfrac{1}{2}\,du x d x = 2 1 d u . Change the limits:
when x = 0 x = 0 x = 0 , u = 5 u = 5 u = 5 ;
when x = 2 x = 2 x = 2 , u = 9 u = 9 u = 9 .
∫ 0 2 x x 2 + 5 d x = 1 2 ∫ 5 9 u − 1 / 2 d u = 1 2 [ 2 u 1 / 2 ] 5 9 = [ u ] 5 9 = 3 − 5 \begin{aligned}
\int_0^2 \frac{x}{\sqrt{x^2 + 5}}\,dx &= \frac{1}{2}\int_5^9 u^{-1/2}\,du \\
&= \frac{1}{2}\Big[2u^{1/2}\Big]_5^9 \\
&= \Big[\sqrt{u}\Big]_5^9 = 3 - \sqrt{5}
\end{aligned} ∫ 0 2 x 2 + 5 x d x = 2 1 ∫ 5 9 u − 1/2 d u = 2 1 [ 2 u 1/2 ] 5 9 = [ u ] 5 9 = 3 − 5
Leaving some x behind. After substituting, the integral must be entirely in u u u . If you have ∫ u 5 ⋅ x d u \int u^5 \cdot x\,du ∫ u 5 ⋅ x d u , the substitution isn’t finished (or it’s the wrong u u u ).
Dropping the du (or the dx). d u = 2 x d x du = 2x\,dx d u = 2 x d x tells you what to replace. Writing it out keeps your constants right.
Fixing a missing variable as if it were a constant. In ∫ cos ( x 3 ) d x \int \cos(x^3)\,dx ∫ cos ( x 3 ) d x , the x 2 x^2 x 2 from d u = 3 x 2 d x du = 3x^2\,dx d u = 3 x 2 d x is missing. You can’t just divide by 3 x 2 3x^2 3 x 2 . (In fact, this integral has no elementary antiderivative.)
Using the old limits with u. In Example 4, writing 1 2 ∫ 0 2 u − 1 / 2 d u \tfrac{1}{2}\int_0^2 u^{-1/2}\,du 2 1 ∫ 0 2 u − 1/2 d u gives the wrong answer. Either change both limits to u u u -values, or go back to x x x before substituting 0 0 0 and 2 2 2 .
Forgetting to substitute back. For an indefinite integral, the final answer must be in terms of x x x .
1. (Warm-up) Find ∫ 3 x 2 ( x 3 − 1 ) 4 d x \displaystyle\int 3x^2(x^3 - 1)^4\,dx ∫ 3 x 2 ( x 3 − 1 ) 4 d x .
Solution Let u = x 3 − 1 u = x^3 - 1 u = x 3 − 1 , d u = 3 x 2 d x du = 3x^2\,dx d u = 3 x 2 d x :
∫ u 4 d u = u 5 5 + C = ( x 3 − 1 ) 5 5 + C \int u^4\,du = \frac{u^5}{5} + C = \frac{(x^3 - 1)^5}{5} + C ∫ u 4 d u = 5 u 5 + C = 5 ( x 3 − 1 ) 5 + C
2. (Warm-up) Find ∫ cos ( 4 x ) d x \displaystyle\int \cos(4x)\,dx ∫ cos ( 4 x ) d x .
Solution Let u = 4 x u = 4x u = 4 x , d x = 1 4 d u dx = \tfrac{1}{4}\,du d x = 4 1 d u :
1 4 ∫ cos u d u = 1 4 sin ( 4 x ) + C \frac{1}{4}\int \cos u\,du = \frac{1}{4}\sin(4x) + C 4 1 ∫ cos u d u = 4 1 sin ( 4 x ) + C
3. (Warm-up) Find ∫ 2 x e x 2 d x \displaystyle\int 2x\,e^{x^2}\,dx ∫ 2 x e x 2 d x .
Solution Let u = x 2 u = x^2 u = x 2 , d u = 2 x d x du = 2x\,dx d u = 2 x d x :
∫ e u d u = e x 2 + C \int e^u\,du = e^{x^2} + C ∫ e u d u = e x 2 + C
4. (Core) Find ∫ x ( x 2 + 4 ) 3 d x \displaystyle\int \frac{x}{(x^2 + 4)^3}\,dx ∫ ( x 2 + 4 ) 3 x d x .
Solution Let u = x 2 + 4 u = x^2 + 4 u = x 2 + 4 , so x d x = 1 2 d u x\,dx = \tfrac{1}{2}\,du x d x = 2 1 d u :
1 2 ∫ u − 3 d u = 1 2 ⋅ u − 2 − 2 + C = − 1 4 ( x 2 + 4 ) 2 + C \frac{1}{2}\int u^{-3}\,du = \frac{1}{2} \cdot \frac{u^{-2}}{-2} + C = -\frac{1}{4(x^2 + 4)^2} + C 2 1 ∫ u − 3 d u = 2 1 ⋅ − 2 u − 2 + C = − 4 ( x 2 + 4 ) 2 1 + C
5. (Core) Find ∫ ( ln x ) 2 x d x \displaystyle\int \frac{(\ln x)^2}{x}\,dx ∫ x ( ln x ) 2 d x .
Solution Let u = ln x u = \ln x u = ln x , d u = 1 x d x du = \tfrac{1}{x}\,dx d u = x 1 d x :
∫ u 2 d u = u 3 3 + C = ( ln x ) 3 3 + C \int u^2\,du = \frac{u^3}{3} + C = \frac{(\ln x)^3}{3} + C ∫ u 2 d u = 3 u 3 + C = 3 ( ln x ) 3 + C
6. (Core) Find ∫ e x x d x \displaystyle\int \frac{e^{\sqrt{x}}}{\sqrt{x}}\,dx ∫ x e x d x .
Solution Let u = x = x 1 / 2 u = \sqrt{x} = x^{1/2} u = x = x 1/2 , so d u = 1 2 x d x du = \dfrac{1}{2\sqrt{x}}\,dx d u = 2 x 1 d x and d x x = 2 d u \dfrac{dx}{\sqrt{x}} = 2\,du x d x = 2 d u :
2 ∫ e u d u = 2 e x + C 2\int e^u\,du = 2e^{\sqrt{x}} + C 2 ∫ e u d u = 2 e x + C
7. (Core) Evaluate ∫ 0 1 x ( x 2 + 1 ) 3 d x \displaystyle\int_0^1 x(x^2 + 1)^3\,dx ∫ 0 1 x ( x 2 + 1 ) 3 d x .
Solution Let u = x 2 + 1 u = x^2 + 1 u = x 2 + 1 , x d x = 1 2 d u x\,dx = \tfrac{1}{2}\,du x d x = 2 1 d u . When x = 0 x = 0 x = 0 , u = 1 u = 1 u = 1 ; when x = 1 x = 1 x = 1 , u = 2 u = 2 u = 2 .
1 2 ∫ 1 2 u 3 d u = 1 2 [ u 4 4 ] 1 2 = 1 2 ⋅ 16 − 1 4 = 15 8 \frac{1}{2}\int_1^2 u^3\,du = \frac{1}{2}\left[\frac{u^4}{4}\right]_1^2 = \frac{1}{2} \cdot \frac{16 - 1}{4} = \frac{15}{8} 2 1 ∫ 1 2 u 3 d u = 2 1 [ 4 u 4 ] 1 2 = 2 1 ⋅ 4 16 − 1 = 8 15
8. (Challenge) Find ∫ x x − 1 d x \displaystyle\int x\sqrt{x - 1}\,dx ∫ x x − 1 d x .
Solution Let u = x − 1 u = x - 1 u = x − 1 , so d u = d x du = dx d u = d x and x = u + 1 x = u + 1 x = u + 1 . The extra x x x becomes u + 1 u + 1 u + 1 :
∫ ( u + 1 ) u 1 / 2 d u = ∫ ( u 3 / 2 + u 1 / 2 ) d u = 2 5 u 5 / 2 + 2 3 u 3 / 2 + C = 2 5 ( x − 1 ) 5 / 2 + 2 3 ( x − 1 ) 3 / 2 + C \begin{aligned}
\int (u + 1)\,u^{1/2}\,du &= \int \left(u^{3/2} + u^{1/2}\right)du \\
&= \frac{2}{5}u^{5/2} + \frac{2}{3}u^{3/2} + C \\
&= \frac{2}{5}(x - 1)^{5/2} + \frac{2}{3}(x - 1)^{3/2} + C
\end{aligned} ∫ ( u + 1 ) u 1/2 d u = ∫ ( u 3/2 + u 1/2 ) d u = 5 2 u 5/2 + 3 2 u 3/2 + C = 5 2 ( x − 1 ) 5/2 + 3 2 ( x − 1 ) 3/2 + C
9. (Challenge) Evaluate ∫ 1 4 1 x ( 1 + x ) 2 d x \displaystyle\int_1^4 \frac{1}{\sqrt{x}\,(1 + \sqrt{x})^2}\,dx ∫ 1 4 x ( 1 + x ) 2 1 d x .
Solution Let u = 1 + x u = 1 + \sqrt{x} u = 1 + x , so d u = 1 2 x d x du = \dfrac{1}{2\sqrt{x}}\,dx d u = 2 x 1 d x and d x x = 2 d u \dfrac{dx}{\sqrt{x}} = 2\,du x d x = 2 d u . When x = 1 x = 1 x = 1 , u = 2 u = 2 u = 2 ; when x = 4 x = 4 x = 4 , u = 3 u = 3 u = 3 .
2 ∫ 2 3 u − 2 d u = 2 [ − 1 u ] 2 3 = 2 ( − 1 3 + 1 2 ) = 1 3 2\int_2^3 u^{-2}\,du = 2\left[-\frac{1}{u}\right]_2^3 = 2\left(-\frac{1}{3} + \frac{1}{2}\right) = \frac{1}{3} 2 ∫ 2 3 u − 2 d u = 2 [ − u 1 ] 2 3 = 2 ( − 3 1 + 2 1 ) = 3 1