Trigonometric identities that make a substitution… | StemPy Lab
Course 11.1·Lesson 3 of 3
Trigonometric identities that make a substitution possible
Many trigonometric integrals look unfamiliar until an identity rewrites them. Half-angle identities handle sin2x and cos2x
Lesson 3 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
What you will be able to do
integrate sin2x and cos2x with the half-angle identities;
integrate odd powers of sine and cosine by peeling off one factor;
turn a product of a sine and a cosine into a sum, and integrate it.
The idea
An integral such as ∫sin2xdx has no inner function with its derivative beside it, so plain substitution fails. But sin2x can be rewritten as a sum of simple terms. The rewriting is an identity, and the integral is then easy.
Squares of sine and cosine
The double angle formula cos2x=1−2sin2x=2cos2x−1 gives
sin2x=21−cos2x,cos2x=21+cos2x.
So ∫cos2xdx=2x+4sin2x+C. The term 2x appears because the average height of cos2x is 21, and the wavy part has no lasting growth.
A blue wave, the graph of sin squared x for x from 0 to 2 pi, which rises and falls between 0 and 1. A dashed grey horizontal line at height one half shows its average. An orange rising wavy line is the graph of x over 2 minus sin 2x over 4, and it climbs along a straight dotted line of slope one half.
Odd powers: peel off one factor
When the power of sinx is odd, keep one sinx for du, and write the rest with cosx. The same works for an odd power of cosx.
Example. Find ∫sin3xdx.
Write sin3x=sinx(1−cos2x).
Let u=cosx, so du=−sinxdx.
The integral becomes −∫(1−u2)du=−u+3u3+C.
Return to x: −cosx+3cos3x+C.
Example. Find ∫sin2xcos3xdx. The power of cosx is odd.
Write cos3x=cosx(1−sin2x) and let u=sinx, so du=cosxdx.
The integral becomes ∫u2(1−u2)du=3u3−5u5+C.
Return to x: 3sin3x−5sin5x+C.
If both powers are even, use the half-angle identities instead.
Products of sines and cosines
The product formulas come from adding the formulas for sin(A+B) and sin(A−B).
2sinAcosB=sin(A+B)+sin(A−B)
2cosAcosB=cos(A+B)+cos(A−B)
2sinAsinB=cos(A−B)−cos(A+B)
Example. Find ∫sin3xcos2xdx.
Use the first formula: sin3xcos2x=21(sin5x+sinx).
Integrate each term: 21(−5cos5x−cosx)+C.
The answer is −10cos5x−2cosx+C.
Powers of tangent and secant
The identity tan2x=sec2x−1 turns ∫tan2xdx into ∫(sec2x−1)dx=tanx−x+C.
For ∫sec4xdx write sec4x=sec2x(1+tan2x) and let u=tanx. Then du=sec2xdx, and the integral is tanx+3tan3x+C.
A last identity: 1+cosx=2cos22x. So ∫1+cosxdx=∫21sec22xdx=tan2x+C.
Practise with new numbers
Try it in Python
The program first checks the identity for sin2x at three values of x. Then it tests two antiderivatives that came from identities, by comparing slopes.
Common mistakes
Writing sin2x as sin(x2). They are different functions. The square belongs to the value of sinx.
Losing the factor from the angle.∫cos2xdx=2sin2x, not sin2x.
Wrong sign.∫sinxdx=−cosx, and du=−sinxdx when u=cosx.
Using a half-angle identity for an odd power. Peeling off one factor is shorter and safer.
Not checking. Differentiate the answer. A wrong sign or a wrong factor shows up at once.
Remember these
sin2x=21−cos2x and cos2x=21+cos2x.
For an odd power of sinx or cosx, keep one factor for du and use sin2x+cos2x=1.
2sinAcosB=sin(A+B)+sin(A−B) turns a product into a sum.
tan2x=sec2x−1 and sec2x=1+tan2x help with powers of tangent and secant.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.