To integrate ∫sin2xcosxdx, we let u=sinx, and du=cosxdx is already sitting in the integral. But what if there's no cosx to go with dx? Let's start with an integral that has only sines.
Find ∫sin3xdx
∫sin3xdx=?
Text solution
Keep one sinx with dxThere's no cosine, so we split one sine off and pair it with dx. With u=cosx, that pair is −du.
sin3xdx=sin2x⋅sinxdx
sinxdx=−du
Write the other sines in uThe two sines left make sin2x, and sin2x+cos2x=1 turns that into 1−u2, a polynomial.
∫sin3xdx=−∫(1−u2)du=−cosx+3cos3x+C
That worked because once one sine went with dx, the sines left over came as a square, and a square of sine turns into cosines. Now suppose both sine and cosine appear. Which one should give up a factor to go with dx?
Find ∫sin2xcos3xdx
∫sin2xcos3xdx=?
Text solution
Keep one cosx with dxCosine has the odd power, so taking one cosx out leaves cos2x, an even power. With u=sinx, that's 1−u2.
u=sinx
du=cosxdx
cos2x=1−u2
∫u2(1−u2)du=3sin3x−5sin5x+C
Why not keep a sinx?Sine has the even power, so taking one sinx out leaves a single sinx. With u=cosx, where sinx is positive, that's 1−u2: a square root, not a polynomial.
−∫u31−u2du
So the factor we keep with dx comes from the odd power. Try both choices yourself, and see what's left over each time.
What remains after substitution?
If both powers are odd, like in ∫sin3xcos3xdx, either choice works: keep a sinx and set u=cosx, or keep a cosx and set u=sinx. But if both are even, like in ∫sin2xcos2xdx, either choice leaves one factor on its own, and with it a square root. That case needs a different idea, which is next.
∫sin2xcos2xdx
u=sinxcosxdx=du
sin2xcosx⋅cosxdx=u21−u2du
u=cosxsinxdx=−du
sinxcos2x⋅sinxdx=−u21−u2du
2
Even powers of sine and cosine
With ∫sin2xdx, there's no odd power to take a factor from. Instead, we lower the power. Starting from the double-angle identity cos2x=cos2x−sin2x, we can write each square as a first power of cos2x:
cos2x=cos2x−sin2x
cos2x=1−2sin2x
sin2x=21−cos2x
cos2x=2cos2x−1
cos2x=21+cos2x
On a graph, sin2x is a wave centred on y=21, and it's exactly the curve 21−21cos2x.
sin2x=21−21cos2x
Let's use that to find the integral, and the area under one hump.
Find ∫sin2xdx and the area under y=sin2x from x=0 to x=π
Text solution
Lower the powerReplace sin2x with 21−cos2x. Don't drop the 21 in ∫cos2xdx=21sin2x.
∫sin2xdx=21∫(1−cos2x)dx=2x−4sin2x+C
The area from 0 to πOver a full cycle, the cos2x part adds up to 0, so only the 21 is left: 21⋅π.
∫0πsin2xdx=[2x−4sin2x]0π=2π
Higher even powers work the same way, but we may need the identity more than once.
Find ∫cos4xdx
∫cos4xdx=?
Text solution
Square the identityWrite cos4x as (cos2x)2 and lower the inside square.
cos4x=(21+cos2x)2=41(1+2cos2x+cos22x)
Lower again, and double the anglecos22x is a square again. The identity doubles the angle inside, so 2x becomes 4x.
cos22x=21+cos4x
cos4x=83+21cos2x+81cos4x
Integrate term by term
∫cos4xdx=83x+4sin2x+32sin4x+C
3
Products of tangent and secant
Tangent and secant work the same way as sine and cosine. The one change is that each derivative has two factors, so we keep a pair with dx for du. Dividing sin2x+cos2x=1 by cos2x gives the identity that turns the rest into u.
(tanx)′=sec2x
(secx)′=secxtanx
cos2xsin2x+cos2xcos2x=cos2x1
tan2x+1=sec2x
Side by side with sine and cosine, the pieces line up like this:
u=sinx:cosxdx=du
u=tanx:sec2xdx=du
u=cosx:sinxdx=−du
u=secx:secxtanxdx=du
sin2x+cos2x=1
tan2x+1=sec2x
Which pair we keep depends on the powers. Let's see it on two integrals.
Evaluate ∫tan2xsec4xdx and ∫tan3xsec3xdx
∫tan2xsec4xdx=?
∫tan3xsec3xdx=?
Text solution
Secant power even: keep sec2xdxIn ∫tan2xsec4xdx, the secants left after sec2xdx make sec2x=1+u2, with u=tanx.
∫u2(1+u2)du=3tan3x+5tan5x+C
Tangent power odd: keep secxtanxdxIn ∫tan3xsec3xdx, keeping sec2xdx would leave a lone secx, which is 1+u2. So we set u=secx, and the tangents left make tan2x=u2−1.
∫(u2−1)u2du=5sec5x−3sec3x+C
Cotangent and cosecant work the exact same way. Their derivatives just carry a minus sign, so du picks one up too.
(cotx)′=−csc2x
(cscx)′=−cscxcotx
1+cot2x=csc2x
Now try choosing the pair yourself.
Keep a pair with dx
4
Integrating tan2x,tanx, and secx
So far, every integral with tangents and secants had a sec2x or a secxtanx to keep with dx. These three don't, so each one needs its own idea.
Find ∫tan2xdx,∫tanxdx, and ∫secxdx
∫tan2xdx=?
∫tanxdx=?
∫secxdx=?
Text solution
∫tan2xdx: use the identity
∫tan2xdx=∫(sec2x−1)dx=tanx−x+C
∫tanxdx: write it as cosxsinxThe sinxdx on top is −du for u=cosx. Both forms of the answer are correct.
∫cosxsinxdx=−ln∣cosx∣+C=ln∣secx∣+C
The one to remember is ∫secxdx. Its trick is that the derivative of secx+tanx is secx times secx+tanx itself:
Neither pair works for ∫sec3xdx. Keeping sec2xdx leaves a lone secx, and there's no tangent to make secxtanxdx. So we write sec3x as secx⋅sec2x and use integration by parts, with one piece we can integrate and one we can differentiate:
∫sec2xdx=tanx
(secx)′=secxtanx
Find ∫sec3xdx
∫sec3xdx=?
Text solution
Integrate sec2x, differentiate secx
∫sec3xdx=secxtanx−∫secxtan2xdx
The integral comes backUsing tan2x=sec2x−1 brings ∫sec3xdx back with a minus sign, as ∫exsinxdx did. Call it I.
I=secxtanx−I+ln∣secx+tanx∣
Solve for IAdd I to both sides and divide by 2.
∫sec3xdx=21secxtanx+21ln∣secx+tanx∣+C
6
Products with different angles
Last, a product of a sine and a cosine whose angles don't match, like ∫sin3xcos2xdx. If we try u=sin3x, we'd need cos3xdx, but the integral has cos2xdx. So we turn the product into a sum first, with the addition formulas for sine:
Save one factor from the odd power to go with dx as du. That leaves an even power behind, which we can rewrite in terms of the other trig function using sin2x+cos2x=1. If both powers are even, saving a factor leaves a square root, so lower the powers instead.
Lowering even powers
sin2x=21−cos2x
cos2x=21+cos2x
cos22x=21+cos4x
When both powers of sine and cosine are even, use the double-angle identities to replace sin2x or cos2x with a first power of cos2x. If another square appears, like cos22x, use the identity again and double the angle to 4x.
Products of tangent and secant
tan2x+1=sec2x
u=tanx:u=secx:sec2xdx=dusecxtanxdx=du
u=tanx:sec2xdx=duu=secx:secxtanxdx=du
If the power of secant is even, save sec2xdx for du, set u=tanx, and turn any remaining even power of secant into tangents using sec2x=1+tan2x. If the power of tangent is odd and you have at least one secant, save secxtanxdx for du, set u=secx, and turn the remaining even power of tangent into secants using tan2x=sec2x−1. The same pairs work for cotangent and cosecant, with a minus sign in each derivative.
When an integral has no extra factor of sec2x or secxtanx, rewrite it. For tan2x, use tan2x=sec2x−1 to split the integral. For tanx, write it as cosxsinx and let u=cosx. For secx, multiply top and bottom by secx+tanx so the numerator is the derivative of the denominator. For sec3x, integrate by parts with u=secx and dv=sec2xdx. Using tan2x=sec2x−1 brings −∫sec3xdx back on the right side, so add ∫sec3xdx to both sides and divide by 2.
Products with different angles
sin3xcos2x=21(sin5x+sinx)
sin3xcos2x=21(sin5x+sinx)
When the angles in a product don't match, our usual sine and cosine substitutions don't work directly. Add or subtract the angle addition formulas to turn the product into separate sine or cosine terms with one angle each.
7
Practice
Enter exact values, and include +C for antiderivatives.
1
Evaluate ∫02πcos3xdx.
The power of sinx is 0 and the power of cosx is 3. Which power is odd?
If u=sinx, what is u when x=2π?
If you got 2π−24π3 Check the bounds. When you substitute u=sinx, find the new bounds in u instead of keeping the bounds in x.
Choose the substitutionThe power of cosx is odd, so save one factor of cosx for du and turn the remaining cos2x into 1−sin2x.
u=sinx
du=cosxdx
cos2x=1−u2
Change the boundsConvert the x-bounds to u-bounds using u=sinx.
x=0→u=sin0=0
x=2π→u=sin2π=1
IntegrateSubstitute u and integrate from 0 to 1.
∫02πcos2x⋅cosxdx=∫01(1−u2)du=[u−3u3]01=32
2
Evaluate ∫sin3xcos3xdx.
The powers of sinx and cosx are both odd, so which single factor do you want to save for du?
Save one factor of cosxSince both powers are odd, we can save cosxdx for du and write the remaining cos2x in terms of sine.
u=sinx
du=cosxdx
cos2x=1−u2
Integrate with u=sinxSubstitute u=sinx, integrate, and put x back.
∫sin3xcos2x⋅cosxdx=∫u3(1−u2)du=4sin4x−6sin6x+C
Another wayIf you save sinxdx instead, set u=cosx and use sinxdx=−du.
Compare the two answersThe two antiderivatives look different, but using sin2x=1−cos2x shows they only differ by the constant 121, which is part of +C.
4sin4x−6sin6x=121−4cos4x+6cos6x
3
Evaluate ∫sin2xcos2xdx.
Both powers are even. How can you rewrite sinxcosx as a single sine term?
How do you lower the power of sin22x?
If you got 8x−8sin4x+C Check the antiderivative of cos4x. The integral of cos4x is 41sin4x, not sin4x. Times 81, that makes the second term −32sin4x.
Use the double-angle identityBoth powers are even, so combine sinxcosx into 21sin2x and square it.
sinxcosx=21sin2x
sin2xcos2x=41sin22x
Lower the powerUse the half-angle identity on sin22x, doubling the angle from 2x to 4x.
sin22x=21−cos4x
sin2xcos2x=81−cos4x
IntegrateIntegrate each term, remembering to divide by 4 when integrating cos4x.
∫cos4xdx=41sin4x
∫81−cos4xdx=8x−32sin4x+C
4
Evaluate ∫sec4xdx.
The power of secx is even. Which factor can you save to go with dx?
How can you write the remaining sec2x in terms of tanx?
If you got 3tan3x+C Check the identity used for the remaining sec2x. It equals 1+tan2x, not just tan2x.
Save one factor of sec2xThe power of secx is even, so save sec2xdx for du and convert the remaining sec2x into 1+tan2x.
sec4x=sec2x⋅sec2x=(1+tan2x)sec2x
Substitute and integrateLet u=tanx, integrate 1+u2, and put tanx back.
u=tanx
du=sec2xdx
∫(1+u2)du=tanx+3tan3x+C
5
Evaluate ∫tan3xdx.
There is no secant factor. How can you rewrite tan2x using secant?
What is the antiderivative of tanx?
If you got 21tan2x+ln∣secx∣+C Check the sign in front of the integral of tanx. The term is −∫tanxdx, so the minus sign stays in front of ln∣secx∣.
Split into two termsWrite tan3x as tanx⋅tan2x and use tan2x=sec2x−1 to split the integral into two parts.
tan3x=tanx⋅tan2x=tanx(sec2x−1)=tanxsec2x−tanx
Integrate the first partFor tanxsec2x, the derivative of tanx is sec2x, so let u=tanx.
u=tanx
du=sec2xdx
∫tanxsec2xdx=∫udu=21tan2x
Integrate the second partSubtract the integral of tanx, which is ln∣secx∣.
∫tanxdx=ln∣secx∣
∫tan3xdx=21tan2x−ln∣secx∣+C
6
Evaluate ∫tan2xsecxdx.
The power of secant is odd and the power of tangent is even. Can you save sec2xdx or secxtanxdx?
How can you rewrite tan2x in terms of secant?
If you got 21secxtanx+21ln∣secx+tanx∣+C Check the second term. Make sure to subtract ∫secxdx=ln∣secx+tanx∣.
Rewrite in terms of secantReplace tan2x with sec2x−1 to split the integral into known secant integrals.
tan2xsecx=(sec2x−1)secx=sec3x−secx
Recall the two integralsWe know the antiderivatives of both sec3x and secx.
∫sec3xdx=21secxtanx+21ln∣secx+tanx∣
∫secxdx=ln∣secx+tanx∣
Combine the log termsSubtract ln∣secx+tanx∣ from 21ln∣secx+tanx∣.