Integrating $\sin^2 nx$ and $\cos^2 nx$
You cannot integrate $\sin^2 x$ directly using the power rule. But a single double-angle identity rewrites it as a sum of simple terms that integrate instantly. Once you know the two key identities, integrating any $\sin^2 nx$ or $\cos^2 nx$ — including over definite intervals — becomes a two-step routine.
Write down the double-angle identity for $\cos 2\theta$ in terms of $\sin^2 \theta$ and then in terms of $\cos^2 \theta$. From memory — don't look it up yet.
The double-angle formula $\cos 2\theta = 1 - 2\sin^2\theta = 2\cos^2\theta - 1$ can be rearranged to give the two key identities for integration:
Rearranging each form of the double-angle identity:
- From $\cos 2\theta = 1 - 2\sin^2\theta$: solve for $\sin^2\theta$
- From $\cos 2\theta = 2\cos^2\theta - 1$: solve for $\cos^2\theta$
Key facts
- $\sin^2 nx = \dfrac{1-\cos 2nx}{2}$ and $\cos^2 nx = \dfrac{1+\cos 2nx}{2}$
- $\displaystyle\int \sin^2 nx\,dx = \frac{x}{2} - \frac{\sin 2nx}{4n} + C$
- $\displaystyle\int \cos^2 nx\,dx = \frac{x}{2} + \frac{\sin 2nx}{4n} + C$
Concepts
- Why the double-angle identity is needed (power rule does not apply to $\sin^2 x$)
- How the frequency doubles when the identity is applied ($n \to 2n$)
- Why definite integrals of $\sin^2$ and $\cos^2$ over a full period both equal half the period length
Skills
- Apply the double-angle identity to rewrite $\sin^2 nx$ or $\cos^2 nx$ before integrating
- Evaluate indefinite and definite integrals involving $\sin^2 nx$ and $\cos^2 nx$
- Find the exact area under a squared-trig curve over a specified interval
The power rule $\int x^n\,dx = \dfrac{x^{n+1}}{n+1}$ does not apply to $\int \sin^2 x\,dx$ — we cannot "integrate the function and add 1 to the power". Instead, apply the double-angle identity first:
Then integrate term by term:
Where does $4n$ come from? $\int \cos 2nx\,dx = \dfrac{\sin 2nx}{2n}$. Dividing by 2 (from the $\frac{1}{2}$ outside): gives $\dfrac{\sin 2nx}{4n}$.
The power rule $\int x^n\,dx = \dfrac{x^{n+1}}{n+1}$ does not apply to $\int \sin^2 x\,dx$ — we cannot "integrate the function and add 1 to the power". Instead, apply the double-angle identity first:
Pause — copy the identity $\sin^2(nx)=\frac{1-\cos(2nx)}{2}$ and the result $\int\sin^2(nx)\,dx=\frac{x}{2}-\frac{\sin(2nx)}{4n}+C$ into your book.
Quick check: Which identity is used to integrate $\sin^2 3x$?
We just saw that $\int\sin^2(nx)\,dx$ uses the power-reduction identity $\sin^2(nx)=\frac{1-\cos(2nx)}{2}$, giving $\frac{x}{2}-\frac{\sin(2nx)}{4n}+C$. That raises a question: for $\int\cos^2(nx)\,dx$, the analogous identity has a plus sign — does the integration procedure differ, and what is the result? This card answers it → use $\cos^2(nx)=\frac{1+\cos(2nx)}{2}$ to get $\frac{x}{2}+\frac{\sin(2nx)}{4n}+C$; only the sign of the second term changes.
The method is identical, but the identity has a plus sign:
Integrate term by term:
The method is identical, but the identity has a plus sign:
Pause — copy the identity $\cos^2(nx)=\frac{1+\cos(2nx)}{2}$ and the result $\int\cos^2(nx)\,dx=\frac{x}{2}+\frac{\sin(2nx)}{4n}+C$ into your book.
Did you get this? True or false: $\displaystyle\int \cos^2 2x\,dx = \frac{x}{2} + \frac{\sin 4x}{8} + C$.
Worked examples · 3 in a row, reveal as you go
Find $\displaystyle\int \sin^2 3x\,dx$.
Evaluate $\displaystyle\int_0^{\pi/2} \cos^2 x\,dx$.
Find the exact area enclosed between $y = \cos^2 x$ and $y = \sin^2 x$ for $0 \leq x \leq \dfrac{\pi}{4}$.
Fill the gap: $\displaystyle\int \cos^2 x\,dx = \dfrac{x}{2} + $ .
Misconceptions to fix · the 3 traps that cost marks
Did you get this? True or false: $\displaystyle\int \sin^2 x\,dx = \frac{x}{2} - \frac{\sin 2x}{4} + C$.
Activities · practice with the ideas
Find $\displaystyle\int \sin^2 2x\,dx$.
Find $\displaystyle\int \cos^2 3x\,dx$.
Evaluate $\displaystyle\int_0^{\pi} \sin^2 2x\,dx$.
Find the area under $y = \cos^2 x$ from $x = 0$ to $x = \pi$.
Using the identity $\cos^2 x - \sin^2 x = \cos 2x$, evaluate $\displaystyle\int_0^{\pi/4}(\cos^2 x - \sin^2 x)\,dx$.
Odd one out: Three of these results are correct. Which one is WRONG?
At the start you estimated $\displaystyle\int_0^\pi \sin^2 x\,dx$. The exact answer is $\dfrac{\pi}{2} \approx 1.57$.
Since $0 \leq \sin^2 x \leq 1$ on $[0,\pi]$ and the curve is symmetric about $x = \pi/2$, the area is exactly half the rectangle of area $\pi \times 1 = \pi$. This makes geometric sense.
Pick your answer, then rate your confidence — that tells the system what to drill next. Each retry pulls a fresh mix from the bank.
Q1. Find $\displaystyle\int \sin^2 4x\,dx$. (2 marks)
Q2. Evaluate $\displaystyle\int_0^{\pi/6} \cos^2 3x\,dx$. (3 marks)
Q3. Find the exact area enclosed between $y = \sin^2 x$ and $y = \cos^2 x$ for $0 \leq x \leq \dfrac{\pi}{2}$. (3 marks)
Comprehensive answers (click to reveal)
Activity answers:
1. $\sin^2 2x = \frac{1-\cos 4x}{2}$. $\int \sin^2 2x\,dx = \frac{x}{2} - \frac{\sin 4x}{8} + C$.
2. $\cos^2 3x = \frac{1+\cos 6x}{2}$. $\int \cos^2 3x\,dx = \frac{x}{2} + \frac{\sin 6x}{12} + C$.
3. $\int_0^{\pi}\sin^2 2x\,dx = \left[\frac{x}{2}-\frac{\sin 4x}{8}\right]_0^{\pi} = \frac{\pi}{2} - 0 = \frac{\pi}{2}$.
4. Area $= \int_0^{\pi}\cos^2 x\,dx = \left[\frac{x}{2}+\frac{\sin 2x}{4}\right]_0^{\pi} = \frac{\pi}{2} - 0 = \frac{\pi}{2}$.
5. $\int_0^{\pi/4}\cos 2x\,dx = \left[\frac{\sin 2x}{2}\right]_0^{\pi/4} = \frac{\sin(\pi/2)}{2} = \frac{1}{2}$.
Q1 (2 marks): $\sin^2 4x = \frac{1-\cos 8x}{2}$ [1]. $\int \sin^2 4x\,dx = \frac{x}{2} - \frac{\sin 8x}{16} + C$ [1].
Q2 (3 marks): $\cos^2 3x = \frac{1+\cos 6x}{2}$ [1]. Antiderivative: $\frac{x}{2}+\frac{\sin 6x}{12}$ [1]. At $x=\pi/6$: $\frac{\pi}{12}+\frac{\sin\pi}{12} = \frac{\pi}{12}+0 = \frac{\pi}{12}$. At $x=0$: $0$. Answer: $\frac{\pi}{12}$ [1].
Q3 (3 marks): On $[0,\pi/4]$, $\cos^2 x \geq \sin^2 x$; on $[\pi/4,\pi/2]$, $\sin^2 x \geq \cos^2 x$ [1]. By symmetry, each sub-area equals $\frac{1}{2}$ (from worked example). Total area $= 2 \times \frac{1}{2} = 1$ [2].
Five timed questions. Beat the boss to bank a tier — gold (90% + speed), silver (75%), or bronze (50%). Replays welcome.
⚔ Enter the arenaClimb platforms by answering $\sin^2$ and $\cos^2$ integration questions. Lighter alternative to the boss.
Mark lesson as complete
Tick when you've finished the practice and review.