Blog · Calculus guides · 24 November 2026 · 4 min read
By the Asymptote team. Every answer on this page is checked by the same machine that grades the game.
Trig Integrals: Powers of Sin and Cos & Practice Problems
To integrate a product of powers of sine and cosine, , save one factor of whichever function has an odd power, turn the rest into the other function with and substitute; if both powers are even, lower them with the half-angle identities instead. With an odd power of sine, let ; with an odd power of cosine, let ; with both even, replace by and by . For example, .
Before you scroll
Try one now
Type the answer. Any correct form counts, and it is checked instantly. Stuck? The answer is underneath.
Problem 1
EasyIntegrate:
Stuck? Show the answer
Answer
How to start
Save one and write . Then let .
The formula
One identity, , wearing three hats. The half-angle versions are the same identity after it has been introduced to .
When to use it
Use this on any integral made of nothing but powers of and multiplied together, including the lonely cases where one power is zero, like . If one of the powers is exactly 1, it is plain u-substitution: already has its sitting there. Powers of and use the same save-one-factor idea with a different identity, ; that has its own guide, integrals of sec and tan. And trig substitution is the trip in the other direction: it turns square roots like into exactly the integrals on this page.
How to do it, step by step
- Check the powers. Is the power of odd, the power of odd, or are both even? If both are odd, pick either; the smaller one is less work.
- Odd power: save one factor. Split off a single or from the odd power. It will become the .
- Convert what is left. What remains of the odd power is even, so rewrite it with or . Now everything except the saved factor is in the other function.
- Substitute and integrate a polynomial. With , (mind the minus); with , . Expand, integrate term by term, put back.
- Both even: halve the powers. Use and , expand, and halve again any that appears.
Worked examples
Example 1: An odd power of sine
EasyIntegrate:
The power of sine is odd. Save one and convert the other two:
Let , so , which means :
Put back and you are done. Differentiating the answer gives , which is reassuring.
Answer
Example 2: Odd cosine, even sine
MediumIntegrate:
Cosine has the odd power, so save one and turn into :
Now and , with no minus sign this time:
Saving a sine instead would leave a single with nothing to convert it into. You always save from the odd power.
Answer
Example 3: Both powers even
HarderEvaluate:
No odd power to save from, so lower the power. Square the half-angle identity:
There is still a square, , so use the identity again with in place of : . Collect the constants:
Integrate term by term. Both cosine terms integrate to sines that are zero at 0 and at , so only the constant survives:
Sense check: lives between 0 and 1 and averages , so over a stretch of length the area is .
Answer
Trig integrals practice problems
The easy one was at the top. Here are the harder ones. Type an answer and it is checked instantly by the same checker that grades the game; any correct form counts. Stuck? The answer and the first step are under each one.
Problem 2
MediumIntegrate:
Stuck? Show the answer
Answer
How to start
Sine has the odd power: save one , write , and let , so .
Problem 3
HarderEvaluate:
Stuck? Show the answer
Answer
How to start
Both powers are even. Use to write the integrand as , then apply the half-angle identity.
Want more? Asymptote has 800 related problems, free, with no account.
Common mistakes
- Losing the minus sign with . , so . Drop it and every term of the answer has the wrong sign.
- Saving a factor from the even power. In , saving a leaves a lone and no identity to turn it into cosines. Save from the odd power.
- Writing . The half-angle identities have , not . And : the is the chain rule run backwards.
- Stopping after one half-angle step. produces a that still needs halving. Keep going until no squares are left.
Practice it now
No clock, three strikes
Powers of sine and cosine turn up in Diverge as , mixed in with other beta integrals at difficulty 16 to 19, which is deep in a run. The substitution underneath comes much earlier: u-substitution problems appear in a Sprint from difficulty 5, though not with trig powers.
FAQ
- How do you integrate sin^2 x?
- Use : . In the same way, .
- What if both powers are odd?
- Save a factor from either one. In , saving a and letting gives a smaller polynomial than the other way round, but both are right; the two answers differ by a constant.
- Why is my answer different from the textbook's?
- Trig antiderivatives come in many outfits. and are both antiderivatives of , and they differ by the constant . Differentiate yours: if it gives back the integrand, it is right.
- How do you integrate sin(mx)cos(nx)?
- With a product-to-sum identity: . It turns the product into two plain sines, each of which integrates in one line.
- How do you integrate powers of tan and sec?
- Same idea, different identity: save a (for ) or a (for ), and convert the rest with . The details are in integrals of sec and tan.
- Where can I find trig integrals practice problems?
- Right on this page: the practice problems section has three trig integrals problems, easy, medium and harder, with the answer and the first step under each one, and a box that checks what you type with the same checker that grades Asymptote. The game has 800 related problems after that, free and with no account: try Diverge, which has no clock.
Keep going
U-Substitution: Choosing u, 3 Examples & Practice Problems
U-substitution undoes the chain rule: pick u so du is in the integral, swap, integrate, swap back. 3 worked examples and practice problems with answers.
Integrals of Sec and Tan: Formulas, Proofs & Practice Problems
The integral of tan x is ln|sec x| + C and of sec x is ln|sec x + tan x| + C. Both proofs, powers of tan and sec, and practice problems.
Trig Substitution: Which to Use & Practice Problems
Trig substitution: a²−x² → x = a sin θ, a²+x² → x = a tan θ, x²−a² → x = a sec θ. Converting back with a triangle, 3 examples and practice problems.