Lesson 6.7 · Integration and Accumulation of Change
Integration by substitution
The basic rules handle ∫cosxdx, but what about ∫xcos(x2)dx? Integrands like this come from the chain rule, and substitution is the technique that runs the chain rule in reverse. It is the most important integration technique in AP Calculus AB.
The chain rule, backward
The chain rule says dxdF(u(x))=F′(u(x))u′(x). Reading that as an antiderivative statement,
∫f(u(x))u′(x)dx=F(u(x))+C,where F′=f.
So look for an integrand that contains a function u(x)together with its derivativeu′(x) as a factor. Then rename u(x) as u and replace u′(x)dx with du:
∫f(u(x))u′(x)dx=∫f(u)du.
u-substitution steps
Choose u: usually the "inside" function, such as the expression inside a power, a root, a trig function or an exponent.
Compute du=u′(x)dx.
Rewrite the entire integral in terms of u and du. No x may be left over. Adjust constant factors if needed.
Integrate with respect to u.
Substitute back to write the answer in terms of x.
Worked example: A power of an inside function
Find ∫2x(x2+3)5dx.
Let u=x2+3. Then du=2xdx, which is exactly the rest of the integrand.
∫2x(x2+3)5dx=∫u5du=6u6+C=6(x2+3)6+C.
Check by differentiating: 66(x2+3)5⋅2x=2x(x2+3)5.
Adjusting for a constant factor
Often the derivative of u is present except for a constant factor. Since constants can move in and out of an integral, you can fix this by solving for the piece you have.
Worked example: Fixing a missing constant
Find ∫xcos(x2)dx.
Let u=x2, so du=2xdx. The integrand has xdx, not 2xdx. Solve: xdx=21du.
∫xcos(x2)dx=∫cosu⋅21du=21sinu+C=21sin(x2)+C.
A common special case is a linear inside function: ∫f(ax+b)dx=a1F(ax+b)+C. For example, ∫e3xdx=31e3x+C and ∫cos(5x)dx=51sin(5x)+C.
Common mistake
You can only adjust for a constant factor. In ∫cos(x2)dx, the needed factor 2x is missing entirely, and you can't pull a variable out of the integral to fix it. Substitution doesn't work there. (That integral has no elementary antiderivative at all.)
Substitution in definite integrals
With a definite integral, the limits a and b are values of x. When you switch to u, you can change the limits to the matching values of u and never go back to x.
Worked example: Changing the limits
Evaluate ∫02x2+1xdx.
Let u=x2+1, so du=2xdx and xdx=21du. Change the limits:
If you'd rather not change the limits, you can find the antiderivative in terms of u, substitute back to x, and then use the original limits. What you can't do is mix them: u-limits with an x-antiderivative, or the reverse, gives a wrong answer.
Algebra first: long division and completing the square
Some integrands need to be rearranged before any rule or substitution applies.
Long division. When a rational function's numerator has degree at least as large as its denominator's, divide first.
Worked example: Divide, then integrate
Find ∫x+1x2+2x+3dx.
Rewrite the numerator: x2+2x+3=(x+1)2+2=(x+1)(x+1)+2. So
x+1x2+2x+3=x+1+x+12.
Integrate each piece (the last one with u=x+1):
∫(x+1+x+12)dx=2x2+x+2ln∣x+1∣+C.
Completing the square. A quadratic denominator with no real roots can be rewritten as (x−h)2+k2, which leads to arctangent. When k=1, the substitution u=x−h gives
∫(x−h)2+11dx=arctan(x−h)+C.
For instance, x2+4x+5=(x+2)2+1, so ∫x2+4x+5dx=arctan(x+2)+C.
Practice
Practice 1
Find the antiderivative F of f(x)=3x2(x3+1)4 that satisfies F(0)=0.
Enter an expression, e.g. 3x^2 - 2x + 1
Practice 2
∫cos(5x)dx=
Practice 3
Evaluate ∫0π/2sin3xcosxdx.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 4
Evaluate ∫01xex2dx. Give an exact answer or a decimal accurate to three places.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 5
Evaluate ∫12x2+12xdx. Give an exact answer or a decimal accurate to three places.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 6
Using the substitution u=2x+1, the integral ∫01(2x+1)3dx is equal to which of the following?
Practice 7
Evaluate ∫25xx−1dx.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 8
Evaluate ∫01x2+2x+21dx. Give an exact answer or a decimal accurate to three places.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.