We know antiderivatives like ∫xndx,∫cosxdx, and ∫exdx. But in ∫2xcos(x2)dx, we have 2x multiplied by cos(x2), and we don't have a product rule for integrals. Notice, though, that x2 is inside the cosine and its derivative, 2x, is multiplying it. That's exactly what the chain rule gives us when we differentiate sin(x2).
dxdsin(x2)∫2xcos(x2)dx=cos(x2)⋅2x=sin(x2)+C
We won't always spot the antiderivative like that, so let's turn it into a method, called u-substitution.
Find ∫2xcos(x2)dx
∫2xcos(x2)dx=?
Text solution
Let u be the insideTo write the whole integral in u, we also replace dx.
u=x2
du=2xdx
dx=2xdu
The 2x cancelsThe 2x already in the integral cancels the 2x in dx, and no x is left.
∫cosu⋅2x⋅2xdu=∫cosudu=sin(x2)+C
2
When a constant factor is missing
Earlier we found ∫2xcos(x2)dx=sin(x2)+C. But what if the 2 is missing, or the whole 2x? And what happens when the inside is linear, like 3x+5?
Find ∫xcos(x2)dx, compare it with ∫cos(x2)dx, and integrate functions with 3x+5 inside
∫xcos(x2)dx=?
∫cos(x2)dx=?
∫cos(3x+5)dx=?
Text solution
The 2 is missingWith u=x2, the x still cancels. What's left is 21, a constant we can pull outside the integral.
∫xcosu⋅2xdu=21∫cosudu=21sin(x2)+C
The x is missingNow nothing cancels the x in dx=2xdu. Writing it as u (for positive x) gives a factor that changes with u, so it can't come outside.
∫cos(x2)dx=∫2ucosudu
In fact, cos(x2) has no antiderivative made of powers, sine, cosine, ex, or lnx, so no choice of u finishes it.
A linear insideWith u=3x+5,dx=3du has no x in it, so we just divide by 3.
∫cos(3x+5)dx=31∫cosudu=31sin(3x+5)+C
Multiplying by 3 instead would be wrong: the chain rule would bring out another 3, and the derivative would be 9cos(3x+5).
Because dx=3du, any function with 3x+5 on the inside gives a factor of 31.
So far, u has been the expression inside parentheses. But an integral doesn't always have parentheses written out. In ∫sin4xcosxdx, the sin4x means (sinx)4, so the inside of the power is sinx, and its derivative is the other factor.
sin4xcosx=(sinx)4⋅cosx
The same idea works for ∫x(lnx)2dx, where the inside of the square is lnx.
Evaluate ∫sin4xcosxdx and ∫x(lnx)2dx
∫sin4xcosxdx=?
∫x(lnx)2dx=?
Text solution
Let u=sinxThen dx=cosxdu, and the cosx cancels.
∫(sinx)4cosxdx=∫u4du=5sin5x+C
Why not u=cosx?Then dx=−sinxdu, and only one sinx cancels. The sin3x left over keeps an x in the integral.
∫sin4xcosxdx=−∫sin3x⋅udu
Let u=lnxIts derivative is x1, and dividing by x is multiplying by x1. So dx=xdu, and the x cancels.
∫x(lnx)2dx=∫u2du=3(lnx)3+C
Which choice of u simplifies the whole integral?
Check the derivative factor
4
When the bottom gives a logarithm
In ∫x2+9xdx, there's no power on the bottom, so there's no inside of a power to choose. But the derivative of x2+9 is 2x, and the top is x, so let's try making u the whole bottom. Then we'll need the rule for integrating x1, which works the same way with u.
∫x1dx=ln∣x∣+C
We'll also see what changes when the bottom is squared, and find ∫tanxdx by writing tanx as a fraction.
Integrate x2+9x,(x2+9)2x, and tanx
∫x2+9xdx=?
∫(x2+9)2xdx=?
∫tanxdx=?
Text solution
Let u be the bottomWith u=x2+9 and dx=2xdu, the x cancels. Since x2+9 is always positive, we don't need absolute value bars.
∫x2+9xdx=21∫udu=21ln(x2+9)+C
A squared bottomThe same u gives u−2, not u1, so we use the power rule instead of a natural log.
∫(x2+9)2xdx=21∫u−2du=−2(x2+9)1+C
Write tanx as a fractionThe derivative of cosx is −sinx, the negative of the top, so u=cosx. This time cosx can be negative, so the bars stay.
∫cosxsinxdx=−∫udu=−ln∣cosx∣+C
−ln∣cosx∣=lncosx1=ln∣secx∣
5
When an x is left over
With ∫cos(x2)dx, an x left over after substituting was a dead end. In ∫xx+1dx, the natural choice u=x+1 leaves an x out front too. This time we can write it in u.
Evaluate ∫xx+1dx
∫xx+1dx=?
Text solution
An x is left overWith u=x+1,du=dx, and nothing cancels the x.
∫xx+1dx=∫xudu
Write x in uSolving u=x+1 gives x=u−1, and multiplying out gives powers of u.
(u−1)u=u23−u21
Power rule, then put x back
∫(u23−u21)du=52(x+1)25−32(x+1)23+C
6
Changing the bounds for a definite integral
In ∫012x(x2+1)3dx, the substitution is u=x2+1, as before. What's new is the bounds. 0 and 1 are values of x, so once the integral is in u, we plug each of them into u=x2+1 to get bounds in u.
u=x2+1du=2xdxx=0→u=1x=1→u=2
Evaluate ∫012x(x2+1)3dx
∫012x(x2+1)3dx=?
Text solution
Evaluate in uAs x goes from 0 to 1,u goes from 1 to 2, and we never have to put x back.
∫12u3du=[4u4]12=416−41=415
Keeping 0 and 1 is wrongThey're values of x, not u, so this gives the wrong number.
∫01u3du=41
Or put x back firstBack in x, the original bounds are the right ones.
[4(x2+1)4]01=416−41=415
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, the x on top of x2+9x was part of du, and that gave a natural log. But if the top is just 1, nothing cancels the 2x in dx=2xdu. Instead, we use the derivative of arctanu, and factor the 9 out of the bottom so it looks like 1+u2.
dudarctanu∫1+u2du=1+u21=arctanu+C
x2+9=9(1+9x2)=9(1+(3x)2)
The same factoring works for inverse sine, with a 1 under the square root instead of a 4.
dudarcsinu∫1−u2du=1−u21=arcsinu+C
4−x2=4(1−4x2)=21−(2x)2
Evaluate ∫x2+9dx,∫x2+9x+3dx, and ∫4−x2dx
∫x2+9dx=?
∫x2+9x+3dx=?
∫4−x2dx=?
Text solution
A number on top gives an inverse tangentWith u=3x,dx=3du, and that 3 times the 91 from the bottom is 31.
∫x2+9dx=91∫1+u23du=31arctan3x+C
Both on top: split the fractionu=x2+9 on the whole fraction leaves 2xx+3. Split it, and each piece is one we've done.
∫x2+9xdx+3∫x2+9dx=21ln(x2+9)+arctan3x+C
A square root gives an inverse sineWith u=2x,dx=2du, and the 2 cancels the 2 on the bottom.
∫4−x2dx=∫21−u22du=arcsin2x+C
Summary
Choosing u as the inside function
u=x2du=2xdxdx=2xdu
∫2xcos(x2)dx=∫cosu⋅2x⋅2xdu=∫cosudu
Set u equal to the inside function. When its derivative appears as an extra factor, replacing dx with u′du cancels that factor and leaves a basic integral in u.
Missing constant factor versus missing x
∫xcos(x2)dx=21∫cosudu
∫cos(x2)dx=∫2ucosudu
A missing constant is no problem, so missing a 2 just leaves 21 outside the integral. But if an x is missing, replacing dx leaves an x with nothing to cancel it, and we can't pull a variable factor outside the integral.
Linear inside functions
∫cos(3x+5)dx=31sin(3x+5)+C
When the inside is ax+b, its derivative is just the number a. So dx=adu, and we divide by a when we integrate, no matter what the outside function is.
When u is the bottom
∫x2+9xdx=21ln(x2+9)+C
∫(x2+9)2xdx=−2(x2+9)1+C
∫tanxdx=∫cosxsinxdx=−ln∣cosx∣+C
When the top is a constant multiple of the derivative of the bottom, let u be the bottom. If the bottom is to the first power, integrating udu gives a natural log. If the bottom is raised to a power like 2, write it as u−2 and use the power rule. For tanx, write it as cosxsinx and set u=cosx.
Writing a leftover x in u
u=x+1x=u−1
∫xx+1dx=∫(u−1)udu
If an x is left over after substituting, solve the substitution equation for x and replace that x with its formula in u. If multiplying out gives separate powers of u, finish the integral in u.
New bounds for a definite integral
u=x2+1x=0→u=1x=1→u=2
∫012x(x2+1)3dx=∫12u3du
An integral in u needs bounds in u. Plug each x-bound into the formula for u to get the new bounds, then evaluate directly in u. If you keep the original bounds in x, replace u with its formula in x before evaluating.
Deciding between a logarithm, an inverse tangent, and an inverse sine
∫x2+9xdx
=21ln(x2+9)+C
∫x2+9dx
=31arctan3x+C
∫4−x2dx
=arcsin2x+C
For any integral with x2+a2 in the bottom, start by checking the top. If the top is a constant times x, let u=x2+a2 to get a natural log. If the top is just a number, factor out a2 and let u=ax to get an inverse tangent. If the denominator is a2−x2 and the top is a constant, let u=ax to get an inverse sine.
8
Practice
Give exact answers. Indefinite integrals need +C.
1
Evaluate ∫xe−x2dx.
The derivative of −x2 has an x in it. If u=−x2, what is du?
If you got 21e−x2+C Check the sign of du. The derivative of −x2 is −2x, not 2x.
The exponent is −x2, and its derivative has an x that cancels the x out front.
u=−x2du=−2xdxdx=−2xdu
Substitute u and dx, then integrate eu and put x back.
Complete the square on x2+2x+7 to see that it's always positive, so we can drop the absolute value bars.
x2+2x+7=(x+1)2+6>0→21ln(x2+2x+7)+C
5
Evaluate ∫x3x2+1dx.
If u=x2+1 and dx=2xdu, what's left after dividing x3 by 2x?
Go back to u=x2+1. How can you write the leftover x2 in terms of u?
If you got 3x2(x2+1)23+C Check the leftover x2. It's not a constant, so it can't be pulled outside the integral. Write it in terms of u before integrating.
Set up the substitutionThe inside of the square root is x2+1, so let u=x2+1.
u=x2+1du=2xdxdx=2xdu
∫x3x2+1dx=∫x3u⋅2xdu=21∫x2udu
Replace the leftover x2We still have an x2, so solve u=x2+1 for x2 and distribute u.
x2=u−1
21∫(u−1)udu=21∫(u23−u21)du
Now integrate each power with the power rule, then put x2+1 back in for u.
If you got arcsin32x+C Check the constants. Factoring out 9 under the square root gives a factor of 31 in the integral, and dx=23du gives 23. Their product is 21.
Factor out 9 under the square rootFactor out 9 so the expression under the square root becomes 1 minus a square.
9−4x2=9(1−94x2)=9(1−(32x)2)
9−4x2=31−(32x)2
Choose u so the square is u2, and solve for dx.
u=32xdu=32dxdx=23du
Substitute u and dx, simplify the constants, integrate to arcsinu, and put x back.
The function f is differentiable, and the table gives some of its values. xf(x)f′(x)0512934176 Find ∫02f′(2x)dx. (Challenge)
The inside of f′ is 2x. If u=2x, what is dx?
When x=2, what is the upper bound in u? Then apply the Fundamental Theorem of Calculus.
If you got 12 Check the factor from dx. Since du=2dx, we have dx=21du.If you got 2 Check the bounds. The numbers 0 and 2 are values of x, so convert them to u using u=2x.If you got 4 That would be ∫02f′(x)dx. The inside here is 2x, not x.
Let u be the inside of f′, and solve for dx.
u=2xdu=2dxdx=21du
Convert the x-bounds to u-bounds by multiplying each by 2.
x=0→u=0x=2→u=4
Use the Fundamental TheoremIntegrate f′(u) to get f(u), and read the values from the table.