Calculus3Introduction to Integration6 of 6
Introduction to Integration · 6

U-Substitution

1

Undoing the chain rule

We know antiderivatives like ∫xn dx\int x^n\,dx, ∫cos⁡x dx\int \cos x\,dx, and ∫ex dx\int e^x\,dx. But in ∫2xcos⁡(x2) dx\int \dv{2x}\cos(\iu{x^2})\,dx, we have 2x\dv{2x} multiplied by cos⁡(x2)\cos(\iu{x^2}), and we don't have a product rule for integrals. Notice, though, that x2\iu{x^2} is inside the cosine and its derivative, 2x\dv{2x}, is multiplying it. That's exactly what the chain rule gives us when we differentiate sin⁡(x2)\sin(\iu{x^2}).

ddxsin⁡(x2)=cos⁡(x2)⋅2x∫2xcos⁡(x2) dx=sin⁡(x2)+C\displaystyle \begin{aligned}\frac{d}{dx}\sin(\iu{x^2}) &= \cos(\iu{x^2})\cdot \dv{2x}\\[6pt] \int \dv{2x}\cos(\iu{x^2})\,dx &= \sin(\iu{x^2}) + C\end{aligned}

We won't always spot the antiderivative like that, so let's turn it into a method, called u-substitution.

Find ∫2xcos⁡(x2) dx\int 2x\cos(x^2)\,dx
∫2xcos⁡(x2) dx\displaystyle \int \dv{2x}\cos(\iu{x^2})\,dx =  ?\displaystyle = \;?
Text solution
Let u\iu{u} be the insideTo write the whole integral in u\iu{u}, we also replace dxdx.
u\displaystyle \iu{u} =x2\displaystyle = \iu{x^2}
du\displaystyle \dv{du} =2x dx\displaystyle = \dv{2x}\,dx
dx\displaystyle dx =du2x\displaystyle = \frac{\dv{du}}{\dv{2x}}
The 2x\dv{2x} cancelsThe 2x\dv{2x} already in the integral cancels the 2x\dv{2x} in dxdx, and no xx is left.
∫cos⁡u⋅2x⋅du2x\displaystyle \int \cos \iu{u}\cdot \dv{\cancel{2x}}\cdot\frac{\dv{du}}{\dv{\cancel{2x}}} =∫cos⁡u du\displaystyle = \int \cos \iu{u}\,\dv{du} =sin⁡(x2)+C\displaystyle = \sin(\iu{x^2}) + C
2

When a constant factor is missing

Earlier we found ∫2xcos⁡(x2) dx=sin⁡(x2)+C\int \dv{2x}\cos(\iu{x^2})\,dx = \sin(\iu{x^2}) + C. But what if the 22 is missing, or the whole 2x\dv{2x}? And what happens when the inside is linear, like 3x+5\iu{3x + 5}?

Find ∫xcos⁡(x2) dx\int x\cos(x^2)\,dx, compare it with ∫cos⁡(x2) dx\int \cos(x^2)\,dx, and integrate functions with 3x+53x + 5 inside
∫xcos⁡(x2) dx\displaystyle \int \dv{x}\cos(\iu{x^2})\,dx =  ?\displaystyle = \;?
∫cos⁡(x2) dx\displaystyle \int \cos(\iu{x^2})\,dx =  ?\displaystyle = \;?
∫cos⁡(3x+5) dx\displaystyle \int \cos(\iu{3x+5})\,dx =  ?\displaystyle = \;?
Text solution
The 22 is missingWith u=x2\iu{u} = \iu{x^2}, the x\dv{x} still cancels. What's left is 12\nf{\frac12}, a constant we can pull outside the integral.
∫xcos⁡u⋅du2x\displaystyle \int \dv{\cancel{x}}\cos \iu{u}\cdot\frac{\dv{du}}{\dv{2\cancel{x}}} =12∫cos⁡u du\displaystyle = \nf{\frac12}\int \cos \iu{u}\,\dv{du} =12sin⁡(x2)+C\displaystyle = \nf{\frac12}\sin(\iu{x^2}) + C
The xx is missingNow nothing cancels the x\lo{x} in dx=du2xdx = \frac{\dv{du}}{\lo{2x}}. Writing it as u\lo{\sqrt{\iu{u}}} (for positive xx) gives a factor that changes with u\iu{u}, so it can't come outside.
∫cos⁡(x2) dx\displaystyle \int \cos(\iu{x^2})\,dx =∫cos⁡u2u du\displaystyle = \int \frac{\cos \iu{u}}{\lo{2\sqrt{\iu{u}}}}\,\dv{du}
In fact, cos⁡(x2)\cos(\iu{x^2}) has no antiderivative made of powers, sine, cosine, exe^x, or ln⁡x\ln x, so no choice of uu finishes it.
A linear insideWith u=3x+5\iu{u} = \iu{3x + 5}, dx=du3dx = \frac{\dv{du}}{\dv{3}} has no xx in it, so we just divide by 3\dv{3}.
∫cos⁡(3x+5) dx\displaystyle \int \cos(\iu{3x+5})\,dx =13∫cos⁡u du\displaystyle = \nf{\frac13}\int \cos \iu{u}\,\dv{du} =13sin⁡(3x+5)+C\displaystyle = \nf{\frac13}\sin(\iu{3x+5}) + C
Multiplying by 33 instead would be wrong: the chain rule would bring out another 33, and the derivative would be 9cos⁡(3x+5)9\cos(3x+5).

Because dx=du3dx = \frac{\dv{du}}{\dv{3}}, any function with 3x+5\iu{3x + 5} on the inside gives a factor of 13\nf{\frac13}.

∫e3x+5 dx=13e3x+5+C∫(3x+5)4 dx=13⋅(3x+5)55+C=(3x+5)515+C∫dx3x+5=13ln⁡∣3x+5∣+C\displaystyle \begin{aligned}\int e^{\iu{3x+5}}\,dx &= \nf{\frac13} e^{\iu{3x+5}} + C\\[8pt] \int (\iu{3x+5})^4\,dx &= \nf{\frac13}\cdot\frac{(\iu{3x+5})^5}{5} + C = \frac{(\iu{3x+5})^5}{15} + C\\[8pt] \int \frac{dx}{\iu{3x+5}} &= \nf{\frac13}\ln|\iu{3x+5}| + C\end{aligned}
∫e3x+5 dx=13e3x+5+C∫(3x+5)4 dx=13⋅(3x+5)55+C=(3x+5)515+C∫dx3x+5=13ln⁡∣3x+5∣+C\displaystyle \begin{aligned}\int e^{\iu{3x+5}}\,dx &= \nf{\frac13} e^{\iu{3x+5}} + C\\[8pt] \int (\iu{3x+5})^4\,dx &= \nf{\frac13}\cdot\frac{(\iu{3x+5})^5}{5} + C\\[4pt] &= \frac{(\iu{3x+5})^5}{15} + C\\[8pt] \int \frac{dx}{\iu{3x+5}} &= \nf{\frac13}\ln|\iu{3x+5}| + C\end{aligned}
3

When no parentheses show the inside

So far, u\iu{u} has been the expression inside parentheses. But an integral doesn't always have parentheses written out. In ∫sin⁡4xcos⁡x dx\int \sin^4 x\dv{\cos x}\,dx, the sin⁡4x\sin^4 x means (sin⁡x)4(\iu{\sin x})^4, so the inside of the power is sin⁡x\iu{\sin x}, and its derivative is the other factor.

sin⁡4xcos⁡x\displaystyle \sin^4 x\dv{\cos x} =(sin⁡x)4⋅cos⁡x\displaystyle = (\iu{\sin x})^4\cdot\dv{\cos x}

The same idea works for ∫(ln⁡x)2x dx\int \frac{(\iu{\ln x})^2}{\dv{x}}\,dx, where the inside of the square is ln⁡x\iu{\ln x}.

Evaluate ∫sin⁡4xcos⁡x dx\int \sin^4 x\cos x\,dx and ∫(ln⁡x)2x dx\int \frac{(\ln x)^2}{x}\,dx
∫sin⁡4xcos⁡x dx\displaystyle \int \sin^4 x\dv{\cos x}\,dx =  ?\displaystyle = \;?
∫(ln⁡x)2x dx\displaystyle \int \frac{(\iu{\ln x})^2}{\dv{x}}\,dx =  ?\displaystyle = \;?
Text solution
Let u=sin⁡x\iu{u} = \iu{\sin x}Then dx=ducos⁡xdx = \frac{\dv{du}}{\dv{\cos x}}, and the cos⁡x\dv{\cos x} cancels.
∫(sin⁡x)4cos⁡x dx\displaystyle \int (\iu{\sin x})^4\dv{\cos x}\,dx =∫u4 du\displaystyle = \int \iu{u}^4\,\dv{du} =sin⁡5x5+C\displaystyle = \frac{\sin^5 x}{5} + C
Why not u=cos⁡x\iu{u} = \iu{\cos x}?Then dx=−dusin⁡xdx = \dv{{-}\frac{du}{\sin x}}, and only one sin⁡x\dv{\sin x} cancels. The sin⁡3x\lo{\sin^3 x} left over keeps an xx in the integral.
∫sin⁡4x cos⁡x dx\displaystyle \int \sin^4 x\,\iu{\cos x}\,dx =−∫sin⁡3x⋅u du\displaystyle = \nf{-}\int \lo{\sin^3 x}\cdot\iu{u}\,\dv{du}
Let u=ln⁡x\iu{u} = \iu{\ln x}Its derivative is 1x\dv{\frac{1}{x}}, and dividing by x\dv{x} is multiplying by 1x\dv{\frac{1}{x}}. So dx=x dudx = \dv{x}\,\dv{du}, and the x\dv{x} cancels.
∫(ln⁡x)2x dx\displaystyle \int \frac{(\iu{\ln x})^2}{\dv{x}}\,dx =∫u2 du\displaystyle = \int \iu{u}^2\,\dv{du} =(ln⁡x)33+C\displaystyle = \frac{(\iu{\ln x})^3}{3} + C

Which choice of u simplifies the whole integral?

Check the derivative factor
4

When the bottom gives a logarithm

In ∫xx2+9 dx\int \frac{\dv{x}}{\iu{x^2+9}}\,dx, there's no power on the bottom, so there's no inside of a power to choose. But the derivative of x2+9\iu{x^2 + 9} is 2x\dv{2x}, and the top is x\dv{x}, so let's try making u\iu{u} the whole bottom. Then we'll need the rule for integrating 1x\frac1x, which works the same way with u\iu{u}.

∫1x dx\displaystyle \int \frac1x\,dx =ln⁡∣x∣+C\displaystyle = \ln|x| + C

We'll also see what changes when the bottom is squared, and find ∫tan⁡x dx\int \tan x\,dx by writing tan⁡x\tan x as a fraction.

Integrate xx2+9\frac{x}{x^2+9}, x(x2+9)2\frac{x}{(x^2+9)^2}, and tan⁡x\tan x
∫xx2+9 dx\displaystyle \int \frac{\dv{x}}{\iu{x^2+9}}\,dx =  ?\displaystyle = \;?
∫x(x2+9)2 dx\displaystyle \int \frac{\dv{x}}{(\iu{x^2+9})^2}\,dx =  ?\displaystyle = \;?
∫tan⁡x dx\displaystyle \int \tan x\,dx =  ?\displaystyle = \;?
Text solution
Let u\iu{u} be the bottomWith u=x2+9\iu{u} = \iu{x^2 + 9} and dx=du2xdx = \frac{\dv{du}}{\dv{2x}}, the x\dv{x} cancels. Since x2+9\iu{x^2 + 9} is always positive, we don't need absolute value bars.
∫xx2+9 dx\displaystyle \int \frac{\dv{x}}{\iu{x^2+9}}\,dx =12∫duu\displaystyle = \nf{\frac12}\int \frac{\dv{du}}{\iu{u}} =12ln⁡(x2+9)+C\displaystyle = \nf{\frac12}\ln(\iu{x^2+9}) + C
A squared bottomThe same u\iu{u} gives u−2\iu{u}^{-2}, not 1u\frac{1}{\iu{u}}, so we use the power rule instead of a natural log.
∫x(x2+9)2 dx\displaystyle \int \frac{\dv{x}}{(\iu{x^2+9})^2}\,dx =12∫u−2 du\displaystyle = \nf{\frac12}\int \iu{u}^{-2}\,\dv{du} =−12(x2+9)+C\displaystyle = -\frac{1}{2(\iu{x^2+9})} + C
Write tan⁡x\tan x as a fractionThe derivative of cos⁡x\iu{\cos x} is −sin⁡x\dv{-\sin x}, the negative of the top, so u=cos⁡x\iu{u} = \iu{\cos x}. This time cos⁡x\iu{\cos x} can be negative, so the bars stay.
∫sin⁡xcos⁡x dx\displaystyle \int \frac{\dv{\sin x}}{\iu{\cos x}}\,dx =−∫duu\displaystyle = \nf{-}\int \frac{\dv{du}}{\iu{u}} =−ln⁡∣cos⁡x∣+C\displaystyle = \nf{-}\ln|\iu{\cos x}| + C
−ln⁡∣cos⁡x∣\displaystyle \nf{-}\ln|\iu{\cos x}| =ln⁡∣1cos⁡x∣\displaystyle = \ln\Big|\frac{1}{\iu{\cos x}}\Big| =ln⁡∣sec⁡x∣\displaystyle = \ln|\sec x|
5

When an xx is left over

With ∫cos⁡(x2) dx\int \cos(\iu{x^2})\,dx, an x\lo{x} left over after substituting was a dead end. In ∫xx+1 dx\int x\sqrt{\iu{x+1}}\,dx, the natural choice u=x+1\iu{u} = \iu{x + 1} leaves an x\lo{x} out front too. This time we can write it in u\iu{u}.

Evaluate ∫xx+1 dx\int x\sqrt{x+1}\,dx
∫xx+1 dx\displaystyle \int x\sqrt{\iu{x+1}}\,dx =  ?\displaystyle = \;?
Text solution
An x\lo{x} is left overWith u=x+1\iu{u} = \iu{x + 1}, du=dx\dv{du} = dx, and nothing cancels the x\lo{x}.
∫xx+1 dx\displaystyle \int x\sqrt{\iu{x+1}}\,dx =∫xu du\displaystyle = \int \lo{x}\sqrt{\iu{u}}\,\dv{du}
Write x\lo{x} in u\iu{u}Solving u=x+1\iu{u} = \iu{x + 1} gives x=u−1\lo{x} = \lo{u - 1}, and multiplying out gives powers of u\iu{u}.
(u−1)u\displaystyle (\lo{u-1})\sqrt{\iu{u}} =u32−u12\displaystyle = \iu{u}^{\frac32} - \iu{u}^{\frac12}
Power rule, then put xx back
∫(u32−u12) du\displaystyle \int \big(\iu{u}^{\frac32} - \iu{u}^{\frac12}\big)\,\dv{du} =25(x+1)52−23(x+1)32+C\displaystyle = \frac25(\iu{x+1})^{\frac52} - \frac23(\iu{x+1})^{\frac32} + C
6

Changing the bounds for a definite integral

In ∫012x(x2+1)3 dx\int_0^1 \dv{2x}(\iu{x^2+1})^3\,dx, the substitution is u=x2+1\iu{u} = \iu{x^2 + 1}, as before. What's new is the bounds. 00 and 11 are values of xx, so once the integral is in u\iu{u}, we plug each of them into u=x2+1\iu{u} = \iu{x^2 + 1} to get bounds in u\iu{u}.

u=x2+1\iu{u} = \iu{x^2 + 1}du=2x dx\dv{du} = \dv{2x}\,dxx=0  →  u=1x = 0 \;\to\; \iu{u = 1}x=1  →  u=2x = 1 \;\to\; \iu{u = 2}
Evaluate ∫012x(x2+1)3 dx\int_0^1 2x(x^2+1)^3\,dx
∫012x(x2+1)3 dx\displaystyle \int_0^1 \dv{2x}(\iu{x^2+1})^3\,dx =  ?\displaystyle = \;?
Text solution
Evaluate in u\iu{u}As xx goes from 00 to 11, u\iu{u} goes from 1\iu{1} to 2\iu{2}, and we never have to put xx back.
∫12u3 du\displaystyle \int_{\iu{1}}^{\iu{2}} \iu{u}^3\,\dv{du} =[u44]12\displaystyle = \Big[\frac{\iu{u}^4}{4}\Big]_{\iu{1}}^{\iu{2}} =164−14\displaystyle = \frac{16}{4} - \frac14 =154\displaystyle = \frac{15}{4}
Keeping 00 and 11 is wrongThey're values of xx, not u\iu{u}, so this gives the wrong number.
∫01u3 du\displaystyle \int_0^1 \iu{u}^3\,\dv{du} =14\displaystyle = \frac14
Or put xx back firstBack in xx, the original bounds are the right ones.
[(x2+1)44]01\displaystyle \Big[\frac{(\iu{x^2+1})^4}{4}\Big]_0^1 =164−14\displaystyle = \frac{16}{4} - \frac14 =154\displaystyle = \frac{15}{4}

Why must the bounds change when the variable changes?

The same integral in a new variable
7

Inverse tangents and inverse sines

With u=x2+9\iu{u} = \iu{x^2 + 9}, the x\dv{x} on top of xx2+9\frac{\dv{x}}{\iu{x^2+9}} was part of du\dv{du}, and that gave a natural log. But if the top is just 11, nothing cancels the 2x\lo{2x} in dx=du2xdx = \frac{\dv{du}}{\lo{2x}}. Instead, we use the derivative of arctan⁡u\arctan \iu{u}, and factor the 99 out of the bottom so it looks like 1+u21 + \iu{u}^2.

dduarctan⁡u=11+u2∫du1+u2=arctan⁡u+C\displaystyle \begin{aligned}\frac{d}{du}\arctan \iu{u} &= \frac{1}{1+\iu{u}^2}\\[6pt] \int \frac{\dv{du}}{1+\iu{u}^2} &= \arctan \iu{u} + C\end{aligned}
x2+9\displaystyle x^2 + 9 =9(1+x29)\displaystyle = 9\Big(1 + \frac{x^2}{9}\Big) =9(1+(x3)2)\displaystyle = 9\Big(1 + \Big(\iu{\frac{x}{3}}\Big)^2\Big)

The same factoring works for inverse sine, with a 11 under the square root instead of a 44.

dduarcsin⁡u=11−u2∫du1−u2=arcsin⁡u+C\displaystyle \begin{aligned}\frac{d}{du}\arcsin \iu{u} &= \frac{1}{\sqrt{1-\iu{u}^2}}\\[6pt] \int \frac{\dv{du}}{\sqrt{1-\iu{u}^2}} &= \arcsin \iu{u} + C\end{aligned}
4−x2\displaystyle \sqrt{4-x^2} =4(1−x24)\displaystyle = \sqrt{4\Big(1 - \frac{x^2}{4}\Big)} =21−(x2)2\displaystyle = 2\sqrt{1 - \Big(\iu{\frac{x}{2}}\Big)^2}
Evaluate ∫dxx2+9\int \frac{dx}{x^2+9}, ∫x+3x2+9 dx\int \frac{x+3}{x^2+9}\,dx, and ∫dx4−x2\int \frac{dx}{\sqrt{4-x^2}}
∫dxx2+9\displaystyle \int \frac{dx}{x^2+9} =  ?\displaystyle = \;?
∫x+3x2+9 dx\displaystyle \int \frac{x+3}{x^2+9}\,dx =  ?\displaystyle = \;?
∫dx4−x2\displaystyle \int \frac{dx}{\sqrt{4-x^2}} =  ?\displaystyle = \;?
Text solution
A number on top gives an inverse tangentWith u=x3\iu{u} = \iu{\frac{x}{3}}, dx=3 dudx = \dv{3}\,\dv{du}, and that 3\dv{3} times the 19\nf{\frac19} from the bottom is 13\nf{\frac13}.
∫dxx2+9\displaystyle \int \frac{dx}{x^2+9} =19∫3 du1+u2\displaystyle = \nf{\frac19}\int \frac{\dv{3}\,\dv{du}}{1+\iu{u}^2} =13arctan⁡x3+C\displaystyle = \nf{\frac13}\arctan\iu{\frac{x}{3}} + C
Both on top: split the fractionu=x2+9\iu{u} = \iu{x^2 + 9} on the whole fraction leaves x+32x\lo{\frac{x+3}{2x}}. Split it, and each piece is one we've done.
∫xx2+9 dx+3∫dxx2+9\displaystyle \int \frac{\dv{x}}{\iu{x^2+9}}\,dx + 3\int \frac{dx}{x^2+9} =12ln⁡(x2+9)+arctan⁡x3+C\displaystyle = \nf{\frac12}\ln(\iu{x^2+9}) + \arctan\iu{\frac{x}{3}} + C
A square root gives an inverse sineWith u=x2\iu{u} = \iu{\frac{x}{2}}, dx=2 dudx = \dv{2}\,\dv{du}, and the 2\dv{2} cancels the 22 on the bottom.
∫dx4−x2\displaystyle \int \frac{dx}{\sqrt{4-x^2}} =∫2 du21−u2\displaystyle = \int \frac{\dv{\cancel{2}}\,\dv{du}}{\cancel{2}\sqrt{1-\iu{u}^2}} =arcsin⁡x2+C\displaystyle = \arcsin\iu{\frac{x}{2}} + C

Summary

Choosing uu as the inside function
u=x2\iu{u} = \iu{x^2}du=2x dx\dv{du} = \dv{2x}\,dxdx=du2xdx = \frac{\dv{du}}{\dv{2x}}
∫2xcos⁡(x2) dx=∫cos⁡u⋅2x⋅du2x=∫cos⁡u du\displaystyle \begin{aligned}&\int \dv{2x}\cos(\iu{x^2})\,dx\\[3pt] &= \int \cos \iu{u}\cdot \dv{\cancel{2x}}\cdot\frac{\dv{du}}{\dv{\cancel{2x}}}\\[3pt] &= \int \cos \iu{u}\,\dv{du}\end{aligned}

Set u\iu{u} equal to the inside function. When its derivative appears as an extra factor, replacing dxdx with duu′\frac{\dv{du}}{\dv{u'}} cancels that factor and leaves a basic integral in u\iu{u}.

Missing constant factor versus missing xx
∫xcos⁡(x2) dx\displaystyle \int \dv{x}\cos(\iu{x^2})\,dx =12∫cos⁡u du\displaystyle = \nf{\frac12}\int \cos \iu{u}\,\dv{du}
∫cos⁡(x2) dx\displaystyle \int \cos(\iu{x^2})\,dx =∫cos⁡u2u du\displaystyle = \int \frac{\cos \iu{u}}{\lo{2\sqrt{\iu{u}}}}\,\dv{du}

A missing constant is no problem, so missing a 22 just leaves 12\nf{\frac12} outside the integral. But if an xx is missing, replacing dxdx leaves an x\lo{x} with nothing to cancel it, and we can't pull a variable factor outside the integral.

Linear inside functions
∫cos⁡(3x+5) dx=13sin⁡(3x+5)+C\displaystyle \begin{aligned}&\int \cos(\iu{3x+5})\,dx\\[3pt] &= \nf{\frac13}\sin(\iu{3x+5}) + C\end{aligned}

When the inside is ax+b\iu{ax + b}, its derivative is just the number a\dv{a}. So dx=duadx = \frac{\dv{du}}{\dv{a}}, and we divide by a\dv{a} when we integrate, no matter what the outside function is.

When uu is the bottom
∫xx2+9 dx=12ln⁡(x2+9)+C\displaystyle \begin{aligned}&\int \frac{\dv{x}}{\iu{x^2+9}}\,dx\\[3pt] &= \nf{\frac12}\ln(\iu{x^2+9}) + C\end{aligned}
∫x(x2+9)2 dx=−12(x2+9)+C\displaystyle \begin{aligned}&\int \frac{\dv{x}}{(\iu{x^2+9})^2}\,dx\\[3pt] &= -\frac{1}{2(\iu{x^2+9})} + C\end{aligned}
∫tan⁡x dx=∫sin⁡xcos⁡x dx=−ln⁡∣cos⁡x∣+C\displaystyle \begin{aligned}&\int \tan x\,dx = \int \frac{\dv{\sin x}}{\iu{\cos x}}\,dx\\[3pt] &= \nf{-}\ln|\iu{\cos x}| + C\end{aligned}

When the top is a constant multiple of the derivative of the bottom, let u\iu{u} be the bottom. If the bottom is to the first power, integrating duu\frac{\dv{du}}{\iu{u}} gives a natural log. If the bottom is raised to a power like 22, write it as u−2\iu{u}^{-2} and use the power rule. For tan⁡x\tan x, write it as sin⁡xcos⁡x\frac{\dv{\sin x}}{\iu{\cos x}} and set u=cos⁡x\iu{u} = \iu{\cos x}.

Writing a leftover xx in uu
u=x+1\iu{u} = \iu{x + 1}x=u−1\lo{x} = \lo{u - 1}
∫xx+1 dx\displaystyle \int x\sqrt{\iu{x+1}}\,dx =∫(u−1)u du\displaystyle = \int (\lo{u-1})\sqrt{\iu{u}}\,\dv{du}

If an x\lo{x} is left over after substituting, solve the substitution equation for x\lo{x} and replace that x\lo{x} with its formula in u\iu{u}. If multiplying out gives separate powers of u\iu{u}, finish the integral in u\iu{u}.

New bounds for a definite integral
u=x2+1\iu{u} = \iu{x^2 + 1}x=0  →  u=1x = 0 \;\to\; \iu{u = 1}x=1  →  u=2x = 1 \;\to\; \iu{u = 2}
∫012x(x2+1)3 dx\displaystyle \int_0^1 \dv{2x}(\iu{x^2+1})^3\,dx =∫12u3 du\displaystyle = \int_{\iu{1}}^{\iu{2}} \iu{u}^3\,\dv{du}

An integral in u\iu{u} needs bounds in u\iu{u}. Plug each xx-bound into the formula for u\iu{u} to get the new bounds, then evaluate directly in u\iu{u}. If you keep the original bounds in xx, replace u\iu{u} with its formula in xx before evaluating.

Deciding between a logarithm, an inverse tangent, and an inverse sine
∫xx2+9 dx\displaystyle \int \frac{\dv{x}}{\iu{x^2+9}}\,dx
=12ln⁡(x2+9)+C\displaystyle = \nf{\frac12}\ln(\iu{x^2+9}) + C
∫dxx2+9\displaystyle \int \frac{dx}{x^2+9}
=13arctan⁡x3+C\displaystyle = \nf{\frac13}\arctan\iu{\frac{x}{3}} + C
∫dx4−x2\displaystyle \int \frac{dx}{\sqrt{4-x^2}}
=arcsin⁡x2+C\displaystyle = \arcsin\iu{\frac{x}{2}} + C

For any integral with x2+a2x^2 + a^2 in the bottom, start by checking the top. If the top is a constant times x\dv{x}, let u=x2+a2\iu{u} = \iu{x^2 + a^2} to get a natural log. If the top is just a number, factor out a2a^2 and let u=xa\iu{u} = \iu{\frac{x}{a}} to get an inverse tangent. If the denominator is a2−x2\sqrt{a^2 - x^2} and the top is a constant, let u=xa\iu{u} = \iu{\frac{x}{a}} to get an inverse sine.

8

Practice

Give exact answers. Indefinite integrals need +C+ C.

1
Evaluate ∫xe−x2 dx\displaystyle\int x e^{-x^2}\,dx.

The derivative of −x2-x^2 has an xx in it. If u=−x2u = -x^2, what is dudu?

If you got 12e−x2+C\frac12 e^{-x^2} + C Check the sign of dudu. The derivative of −x2-x^2 is −2x-2x, not 2x2x.

The exponent is −x2\iu{-x^2}, and its derivative has an x\dv{x} that cancels the x\dv{x} out front.
u=−x2\iu{u} = \iu{-x^2}du=−2x dx\dv{du} = \dv{{-}2x}\,dxdx=−du2xdx = \dv{{-}\frac{du}{2x}}
Substitute u\iu{u} and dxdx, then integrate eue^{\iu{u}} and put xx back.
∫xe−x2 dx\displaystyle \int \dv{x} e^{\iu{-x^2}}\,dx =∫x eu⋅(−du2x)\displaystyle = \int \dv{\cancel{x}}\, e^{\iu{u}}\cdot\Big(\dv{{-}\frac{du}{2\cancel{x}}}\Big) =−12∫eu du\displaystyle = \nf{-\frac12}\int e^{\iu{u}}\,\dv{du} =−12eu+C\displaystyle = \nf{-\frac12} e^{\iu{u}} + C =−12e−x2+C\displaystyle = \nf{-\frac12} e^{\iu{-x^2}} + C
2
Evaluate ∫sin⁡xx dx\displaystyle\int \frac{\sin\sqrt{x}}{\sqrt{x}}\,dx.

What's the derivative of x\sqrt{x}?

If you got −12cos⁡x+C-\frac12\cos\sqrt{x} + C Check how you solved for dxdx. Multiplying both sides of du=dx2xdu = \frac{dx}{2\sqrt{x}} by 2x2\sqrt{x} puts the 22 on top, so dx=2x dudx = 2\sqrt{x}\,du.

The inside of the sine is x\iu{\sqrt{x}}, and its derivative has a x\dv{\sqrt{x}} in the denominator.
u=x\iu{u} = \iu{\sqrt{x}}du=dx2x\dv{du} = \frac{dx}{\dv{2\sqrt{x}}}dx=2x dudx = \dv{2\sqrt{x}}\,\dv{du}
Substitute u\iu{u} and dxdx, cancel the x\dv{\sqrt{x}}, and integrate.
∫sin⁡xx dx\displaystyle \int \frac{\sin\iu{\sqrt{x}}}{\dv{\sqrt{x}}}\,dx =∫sin⁡ux⋅2x du\displaystyle = \int \frac{\sin \iu{u}}{\dv{\cancel{\sqrt{x}}}}\cdot \dv{2\cancel{\sqrt{x}}}\,\dv{du} =2∫sin⁡u du\displaystyle = \nf{2}\int \sin \iu{u}\,\dv{du} =−2cos⁡u+C\displaystyle = -\nf{2}\cos \iu{u} + C =−2cos⁡x+C\displaystyle = -\nf{2}\cos\iu{\sqrt{x}} + C
3
Evaluate ∫cos⁡3x sin⁡43x dx\displaystyle\int \cos 3x\,\sin^4 3x\,dx.

sin⁡43x\sin^4 3x means (sin⁡3x)4(\sin 3x)^4. What is the inside function?

What's the derivative of sin⁡3x\sin 3x?

If you got sin⁡53x5+C\frac{\sin^5 3x}{5} + C Check the derivative of sin⁡3x\sin 3x. The chain rule gives an extra factor of 33.

Choose the substitutionThe power has sin⁡3x\iu{\sin 3x} inside, and its derivative has cos⁡3x\dv{\cos 3x}.
sin⁡43x\displaystyle \sin^4 3x =(sin⁡3x)4\displaystyle = (\iu{\sin 3x})^4
u=sin⁡3x\iu{u} = \iu{\sin 3x}du=3cos⁡3x dx\dv{du} = \dv{3\cos 3x}\,dxdx=du3cos⁡3xdx = \frac{\dv{du}}{\dv{3\cos 3x}}
Substitute u\iu{u} and dxdx, then use the power rule and put xx back.
∫cos⁡3x (sin⁡3x)4 dx\displaystyle \int \dv{\cos 3x}\,(\iu{\sin 3x})^4\,dx =∫cos⁡3x⋅u4⋅du3cos⁡3x\displaystyle = \int \dv{\cancel{\cos 3x}}\cdot \iu{u}^4\cdot\frac{\dv{du}}{\dv{3\cancel{\cos 3x}}} =13∫u4 du\displaystyle = \nf{\frac13}\int \iu{u}^4\,\dv{du} =u515+C\displaystyle = \frac{\iu{u}^5}{15} + C =sin⁡53x15+C\displaystyle = \frac{\sin^5 3x}{15} + C
4
Evaluate ∫x+1x2+2x+7 dx\displaystyle\int \frac{x+1}{x^2+2x+7}\,dx.

What's the derivative of the denominator, x2+2x+7x^2 + 2x + 7?

If you got ln⁡(x2+2x+7)+C\ln(x^2+2x+7) + C Check the constant from dudu. The derivative of x2+2x+7x^2 + 2x + 7 is 2(x+1)2(x + 1), not x+1x + 1.

The derivative of the bottom is 2x+2=2(x+1)\dv{2x + 2} = \dv{2(x + 1)}, which is twice the top.
u=x2+2x+7\iu{u} = \iu{x^2 + 2x + 7}du=(2x+2) dx=2(x+1) dx\dv{du} = \dv{(2x+2)}\,dx = \dv{2(x+1)}\,dxdx=du2(x+1)dx = \frac{\dv{du}}{\dv{2(x+1)}}
Substitute u\iu{u} and dxdx, cancel the x+1\dv{x + 1}, and integrate 1u\frac{1}{\iu{u}}.
∫x+1x2+2x+7 dx\displaystyle \int \frac{\dv{x+1}}{\iu{x^2+2x+7}}\,dx =∫x+1u⋅du2(x+1)\displaystyle = \int \frac{\dv{\cancel{x+1}}}{\iu{u}}\cdot\frac{\dv{du}}{\dv{2\cancel{(x+1)}}} =12∫duu\displaystyle = \nf{\frac12}\int \frac{\dv{du}}{\iu{u}} =12ln⁡∣u∣+C\displaystyle = \nf{\frac12}\ln|\iu{u}| + C
Complete the square on x2+2x+7\iu{x^2 + 2x + 7} to see that it's always positive, so we can drop the absolute value bars.
x2+2x+7\displaystyle \iu{x^2 + 2x + 7} =(x+1)2+6>0  →  12ln⁡(x2+2x+7)+C\displaystyle = (x+1)^2 + 6 > 0 \;\to\; \nf{\frac12}\ln(\iu{x^2+2x+7}) + C
5
Evaluate ∫x3x2+1 dx\displaystyle\int x^3\sqrt{x^2+1}\,dx.

If u=x2+1u = x^2 + 1 and dx=du2xdx = \frac{du}{2x}, what's left after dividing x3x^3 by 2x2x?

Go back to u=x2+1u = x^2 + 1. How can you write the leftover x2x^2 in terms of uu?

If you got x23(x2+1)32+C\frac{x^2}{3}(x^2+1)^{\frac32} + C Check the leftover x2x^2. It's not a constant, so it can't be pulled outside the integral. Write it in terms of uu before integrating.

Set up the substitutionThe inside of the square root is x2+1\iu{x^2 + 1}, so let u=x2+1\iu{u} = \iu{x^2 + 1}.
u=x2+1\iu{u} = \iu{x^2 + 1}du=2x dx\dv{du} = \dv{2x}\,dxdx=du2xdx = \frac{\dv{du}}{\dv{2x}}
∫x3x2+1 dx\displaystyle \int x^3\sqrt{\iu{x^2+1}}\,dx =∫x3u⋅du2x\displaystyle = \int x^3\sqrt{\iu{u}}\cdot\frac{\dv{du}}{\dv{2x}} =12∫x2u du\displaystyle = \nf{\frac12}\int \lo{x^2}\sqrt{\iu{u}}\,\dv{du}
Replace the leftover x2x^2We still have an x2\lo{x^2}, so solve u=x2+1\iu{u} = \iu{x^2 + 1} for x2\lo{x^2} and distribute u\sqrt{\iu{u}}.
x2=u−1\lo{x^2} = \lo{u - 1}
12∫(u−1)u du\displaystyle \nf{\frac12}\int (\lo{u-1})\sqrt{\iu{u}}\,\dv{du} =12∫(u32−u12) du\displaystyle = \nf{\frac12}\int \big(\iu{u}^{\frac32} - \iu{u}^{\frac12}\big)\,\dv{du}
Now integrate each power with the power rule, then put x2+1\iu{x^2 + 1} back in for u\iu{u}.
12(25u52−23u32)+C\displaystyle \nf{\frac12}\Big(\frac25 \iu{u}^{\frac52} - \frac23 \iu{u}^{\frac32}\Big) + C =15(x2+1)52−13(x2+1)32+C\displaystyle = \frac15(\iu{x^2+1})^{\frac52} - \frac13(\iu{x^2+1})^{\frac32} + C
6
Using the substitution u=x2−1u = x^2 - 1, which integral is equal to ∫12x(x2−1)3 dx\displaystyle\int_1^2 x(x^2-1)^3\,dx?

When x=1x = 1, what is uu? When x=2x = 2, what is uu?

If you got (B) Check the bounds. The numbers 11 and 22 are values of xx, so convert them to values of uu.

If you got (C) Check x dxx\,dx in terms of dudu. Since du=2x dxdu = 2x\,dx, we have x dx=12 dux\,dx = \frac12\,du, not 2 du2\,du.

If you got (D) Check the factor from du=2x dxdu = 2x\,dx. Solving for x dxx\,dx leaves a factor of 12\frac12.

Find du\dv{du}, and solve for x dx\dv{x}\,dx.
u=x2−1\iu{u} = \iu{x^2 - 1}du=2x dx\dv{du} = \dv{2x}\,dxx dx=12 du\dv{x}\,dx = \frac12\,\dv{du}
Plug the xx-bounds into u=x2−1\iu{u} = \iu{x^2 - 1} to get the new bounds in u\iu{u}.
x=1  →  u=0x = 1 \;\to\; \iu{u = 0}x=2  →  u=3x = 2 \;\to\; \iu{u = 3}
Substitute the new bounds, u3\iu{u}^3, and 12 du\nf{\frac12}\,\dv{du}.
∫12x(x2−1)3 dx\displaystyle \int_1^2 \dv{x}(\iu{x^2-1})^3\,dx =12∫03u3 du(A)\displaystyle = \nf{\frac12}\int_{\iu{0}}^{\iu{3}} \iu{u}^3\,\dv{du} \quad \text{(A)}
7
Evaluate ∫0π3tan⁡x dx\displaystyle\int_0^{\frac{\pi}{3}} \tan x\,dx.

Write tan⁡x\tan x as sin⁡xcos⁡x\frac{\sin x}{\cos x}. What should uu be?

If u=cos⁡xu = \cos x, what is uu when x=π3x = \frac{\pi}{3}?

Write tan⁡x\tan x as sin⁡xcos⁡x\frac{\dv{\sin x}}{\iu{\cos x}}, and let u\iu{u} be the denominator.
tan⁡x\displaystyle \tan x =sin⁡xcos⁡x\displaystyle = \frac{\dv{\sin x}}{\iu{\cos x}}
u=cos⁡x\iu{u} = \iu{\cos x}du=−sin⁡x dx\dv{du} = \dv{{-}\sin x}\,dxdx=−dusin⁡xdx = \dv{{-}\frac{du}{\sin x}}
Change the boundsPlug the xx-bounds into u=cos⁡x\iu{u} = \iu{\cos x}. The upper bound is smaller than the lower bound, but keep them in that order.
x=0  →  u=cos⁡0=1x = 0 \;\to\; \iu{u = \cos 0 = 1}x=π3  →  u=cos⁡π3=12x = \frac{\pi}{3} \;\to\; \iu{u = \cos\frac{\pi}{3} = \frac12}
Integrate −1u\nf{-}\frac{1}{\iu{u}} and evaluate from 1\iu{1} to 12\iu{\frac12}.
∫0π3tan⁡x dx\displaystyle \int_0^{\frac{\pi}{3}} \tan x\,dx =−∫112duu\displaystyle = \nf{-}\int_{\iu{1}}^{\iu{\frac12}} \frac{\dv{du}}{\iu{u}} =−[ln⁡u]112\displaystyle = \nf{-}\Big[\ln \iu{u}\Big]_{\iu{1}}^{\iu{\frac12}} =−(ln⁡12−ln⁡1)\displaystyle = -\Big(\ln\frac12 - \ln 1\Big) =ln⁡2\displaystyle = \ln 2
For 0<x<π30 < x < \frac{\pi}{3}, tan⁡x\tan x is positive, so the positive result ln⁡2\ln 2 makes sense.
tan⁡x>0 for 0<x<π3,ln⁡2>0\displaystyle \tan x > 0 \text{ for } 0 < x < \frac{\pi}{3}, \qquad \ln 2 > 0
8
Evaluate ∫ex1+e2x dx\displaystyle\int \frac{e^x}{1+e^{2x}}\,dx.

Since e2x=(ex)2e^{2x} = (e^x)^2, what substitution turns the denominator into 1+u21 + u^2?

If you got 12ln⁡(1+e2x)+C\frac12\ln(1+e^{2x}) + C Check the derivative of 1+e2x1 + e^{2x}. It's 2e2x2e^{2x}, but the numerator only has exe^x.

The denominator is 1+(ex)21 + (\iu{e^x})^2, and the derivative of ex\iu{e^x} is in the numerator, so let u=ex\iu{u} = \iu{e^x}.
e2x\displaystyle e^{2x} =(ex)2\displaystyle = (\iu{e^x})^2
u=ex\iu{u} = \iu{e^x}du=ex dx\dv{du} = \dv{e^x}\,dxdx=duexdx = \frac{\dv{du}}{\dv{e^x}}
Substitute u\iu{u} and dxdx, cancel ex\dv{e^x}, integrate to arctan⁡u\arctan \iu{u}, and put xx back.
∫ex1+e2x dx\displaystyle \int \frac{\dv{e^x}}{1+e^{2x}}\,dx =∫ex1+u2⋅duex\displaystyle = \int \frac{\dv{\cancel{e^x}}}{1+\iu{u}^2}\cdot\frac{\dv{du}}{\dv{\cancel{e^x}}} =∫du1+u2\displaystyle = \int \frac{\dv{du}}{1+\iu{u}^2} =arctan⁡u+C\displaystyle = \arctan \iu{u} + C =arctan⁡(ex)+C\displaystyle = \arctan(\iu{e^x}) + C
9
Evaluate ∫dx9−4x2\displaystyle\int \frac{dx}{\sqrt{9-4x^2}}.

Factor 99 out of 9−4x29 - 4x^2 to get 9(1−?2)9(1 - ?^2).

If u=2x3u = \frac{2x}{3}, what is dxdx in terms of dudu?

If you got arcsin⁡2x3+C\arcsin\frac{2x}{3} + C Check the constants. Factoring out 99 under the square root gives a factor of 13\frac13 in the integral, and dx=32 dudx = \frac32\,du gives 32\frac32. Their product is 12\frac12.

Factor out 9 under the square rootFactor out 99 so the expression under the square root becomes 11 minus a square.
9−4x2\displaystyle 9 - 4x^2 =9(1−4x29)\displaystyle = 9\Big(1 - \frac{4x^2}{9}\Big) =9(1−(2x3)2)\displaystyle = 9\Big(1 - \Big(\iu{\frac{2x}{3}}\Big)^2\Big)
9−4x2\displaystyle \sqrt{9-4x^2} =31−(2x3)2\displaystyle = 3\sqrt{1 - \Big(\iu{\frac{2x}{3}}\Big)^2}
Choose u\iu{u} so the square is u2\iu{u}^2, and solve for dxdx.
u=2x3\iu{u} = \iu{\frac{2x}{3}}du=23 dx\dv{du} = \dv{\frac23}\,dxdx=32 dudx = \dv{\frac32}\,\dv{du}
Substitute u\iu{u} and dxdx, simplify the constants, integrate to arcsin⁡u\arcsin \iu{u}, and put xx back.
∫dx9−4x2\displaystyle \int \frac{dx}{\sqrt{9-4x^2}} =∫32 du31−u2\displaystyle = \int \frac{\dv{\frac32}\,\dv{du}}{3\sqrt{1-\iu{u}^2}} =12∫du1−u2\displaystyle = \nf{\frac12}\int \frac{\dv{du}}{\sqrt{1-\iu{u}^2}} =12arcsin⁡u+C\displaystyle = \nf{\frac12}\arcsin \iu{u} + C =12arcsin⁡2x3+C\displaystyle = \nf{\frac12}\arcsin\iu{\frac{2x}{3}} + C
10
The function ff is differentiable, and the table gives some of its values. x024f(x)5917f′(x)136\begin{array}{c|ccc} x & 0 & 2 & 4 \\ \hline f(x) & 5 & 9 & 17 \\ f'(x) & 1 & 3 & 6 \end{array} Find ∫02f′(2x) dx\displaystyle\int_0^2 f'(2x)\,dx. (Challenge)

The inside of f′f' is 2x2x. If u=2xu = 2x, what is dxdx?

When x=2x = 2, what is the upper bound in uu? Then apply the Fundamental Theorem of Calculus.

Let u\iu{u} be the inside of f′f', and solve for dxdx.
u=2x\iu{u} = \iu{2x}du=2 dx\dv{du} = \dv{2}\,dxdx=12 dudx = \frac12\,\dv{du}
Convert the xx-bounds to uu-bounds by multiplying each by 22.
x=0  →  u=0x = 0 \;\to\; \iu{u = 0}x=2  →  u=4x = 2 \;\to\; \iu{u = 4}
Use the Fundamental TheoremIntegrate f′(u)f'(\iu{u}) to get f(u)f(\iu{u}), and read the values from the table.
∫02f′(2x) dx\displaystyle \int_0^2 f'(\iu{2x})\,dx =12∫04f′(u) du\displaystyle = \nf{\frac12}\int_{\iu{0}}^{\iu{4}} f'(\iu{u})\,\dv{du} =12[f(4)−f(0)]\displaystyle = \nf{\frac12}\big[f(\iu{4}) - f(\iu{0})\big] =12(17−5)\displaystyle = \nf{\frac12}(17 - 5) =6\displaystyle = 6