Class 12 Maths, Worked in Full Past papersGet updates
Chapter 7 · Integrals

Example 29: ∫−π/4π/4sin⁡2x dx\int_{-\pi/4}^{\pi/4}\sin^2x\,dx

ExamplesProperties of definite integrals · Section 7.10
The question

Evaluate ∫−π4π4sin⁡2x  dx\displaystyle\int_{-\frac{\pi}{4}}^{\frac{\pi}{4}} \sin^2 x\; dx⁠.

Exam answer

Let I=∫−π/4π/4sin⁡2x dxI = \displaystyle\int_{-\pi/4}^{\pi/4}\sin^2 x\,dx⁠.

Let f(x)=sin⁡2xf(x) = \sin^2 x⁠. Then f(−x)=sin⁡2(−x)f(-x) = \sin^2(-x) =sin⁡2x=f(x)= \sin^2 x = f(x)⁠, so ff is even.

Using ∫−aaf(x) dx=2∫0af(x) dx\displaystyle\int_{-a}^{a} f(x)\,dx = 2\int_0^a f(x)\,dx for even ff⁠,

I=2∫0π/4sin⁡2x dxI = 2\int_0^{\pi/4}\sin^2 x\,dx

Using sin⁡2x=1−cos⁡2x2\sin^2 x = \frac{1 - \cos 2x}{2}⁠,

I=2∫0π/41−cos⁡2x2 dx=[x−12sin⁡2x]0π/4=(π4−12sin⁡π2)−0\begin{aligned} I &= 2\int_0^{\pi/4}\frac{1 - \cos 2x}{2}\,dx \\ &= \Big[x - \frac12\sin 2x\Big]_0^{\pi/4} \\ &= \left(\frac{\pi}{4} - \frac12\sin\frac{\pi}{2}\right) - 0 \end{aligned}

∴ I=π4−12\therefore\ I = \dfrac{\pi}{4} - \dfrac12⁠.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

The interval is symmetric about 0 and sin⁡2x\sin^2 x is an even function: its graph is a mirror image across the y-axis. Property P7 (i) says the area on the left equals the area on the right, so ∫−aaf=2∫0af\int_{-a}^{a} f = 2\int_0^a f⁠. The remaining integral is done with the identity sin⁡2x=1−cos⁡2x2\sin^2 x = \frac{1 - \cos 2x}{2}⁠, which replaces a square by something we can integrate directly.

Given, to find, and the plan
Given
f(x)=sin⁡2xf(x) = \sin^2 x on [−π4,π4]\left[-\frac{\pi}{4}, \frac{\pi}{4}\right]⁠.
To find
∫−π/4π/4sin⁡2x dx\int_{-\pi/4}^{\pi/4}\sin^2 x\,dx⁠.
Plan
Show ff is even; apply P7 (i); rewrite sin⁡2x\sin^2 x by the double-angle identity; integrate and evaluate; check without using symmetry.

Basics you need

1Even functions

ff is even when f(−x)=f(x)f(-x) = f(x) for every xx⁠; its graph is symmetric about the y-axis. Basics: symmetry and mirror images

2Property P7 (i)

∫−aaf(x) dx=2∫0af(x) dx\int_{-a}^{a} f(x)\,dx = 2\int_0^a f(x)\,dx if ff is even (Section 7.10). Lesson: properties of definite integrals

3Double-angle identity

cos⁡2x=1−2sin⁡2x\cos 2x = 1 - 2\sin^2 x⁠, so sin⁡2x=1−cos⁡2x2\sin^2 x = \frac{1 - \cos 2x}{2}⁠. Basics: trigonometric identities for integrals

4∫cos⁡2x dx\int\cos 2x\,dx

∫cos⁡2x dx=12sin⁡2x+C\int\cos 2x\,dx = \frac12\sin 2x + C⁠, because ddxsin⁡2x=2cos⁡2x\frac{d}{dx}\sin 2x = 2\cos 2x⁠. Basics: substitution

Solution

  1. sin⁡2x\sin^2 x is an even function

    For every real xx⁠, sin⁡(−x)=−sin⁡x\sin(-x) = -\sin x⁠, so

    f(−x)=sin⁡2(−x)=(−sin⁡x)2=sin⁡2x=f(x).f(-x) = \sin^2(-x) = (-\sin x)^2 = \sin^2 x = f(x).

    Also ff is continuous everywhere, in particular on [−π4,π4]\left[-\frac{\pi}{4}, \frac{\pi}{4}\right]⁠.

    P7 (i) has one condition, f(−x)=f(x)f(-x) = f(x)⁠, and it must hold for all xx in the interval. Squaring removes the sign that the odd function sin⁡\sin introduces.
    sin⁡\sin is odd: sin⁡(−x)=−sin⁡x\sin(-x) = -\sin x⁠. An odd function squared is even. Basics: symmetry
  2. Apply P7 (i) with a=π4a = \frac{\pi}{4}

    ∫−π4π4sin⁡2x dx=2∫0π4sin⁡2x dx.\int_{-\frac{\pi}{4}}^{\frac{\pi}{4}}\sin^2 x\,dx = 2\int_0^{\frac{\pi}{4}}\sin^2 x\,dx.
    The interval [−π4,π4]\left[-\frac{\pi}{4}, \frac{\pi}{4}\right] has the form [−a,a][-a, a] with a=π4a = \frac{\pi}{4}⁠, and ff is even (Step 1), so both conditions of P7 (i) hold. In the figure the gold half (left) is the mirror image of the blue half (right).
    P7 (i), Section 7.10. Its proof splits at 0 by P2 and substitutes t=−xt = -x in the left part. Lesson: properties of definite integrals
  3. Replace sin⁡2x\sin^2 x using the double angle

    2∫0π4sin⁡2x dx=2∫0π41−cos⁡2x2 dx=∫0π4(1−cos⁡2x) dx.2\int_0^{\frac{\pi}{4}}\sin^2 x\,dx = 2\int_0^{\frac{\pi}{4}}\frac{1 - \cos 2x}{2}\,dx = \int_0^{\frac{\pi}{4}}(1 - \cos 2x)\,dx.
    There is no standard formula for ∫sin⁡2x dx\int\sin^2 x\,dx⁠, but there is one for ∫1 dx\int 1\,dx and for ∫cos⁡2x dx\int\cos 2x\,dx⁠. The identity trades the square for a cosine of the double angle, and the 2 in front cancels the 12\frac12⁠.
    From cos⁡2x=1−2sin⁡2x\cos 2x = 1 - 2\sin^2 x⁠: 2sin⁡2x=1−cos⁡2x2\sin^2 x = 1 - \cos 2x (Section 7.3.2 uses the same idea for cos⁡2x\cos^2 x⁠). Basics: trigonometric identities
  4. Integrate and evaluate

    An antiderivative of 1−cos⁡2x1 - \cos 2x is F(x)=x−12sin⁡2xF(x) = x - \frac12\sin 2x⁠. Check: F′(x)=1−12⋅2cos⁡2x=1−cos⁡2xF'(x) = 1 - \frac12\cdot 2\cos 2x = 1 - \cos 2x⁠. Then

    ∫0π4(1−cos⁡2x) dx=[x−12sin⁡2x]0π4=(π4−12sin⁡π2)−0=π4−12.\begin{aligned}\int_0^{\frac{\pi}{4}}(1 - \cos 2x)\,dx &= \left[x - \tfrac12\sin 2x\right]_0^{\frac{\pi}{4}} \\ &= \left(\tfrac{\pi}{4} - \tfrac12\sin\tfrac{\pi}{2}\right) - 0 \\ &= \frac{\pi}{4} - \frac12.\end{aligned}

    In decimals π4−12≈0.2853982\frac{\pi}{4} - \frac12 \approx 0.2853982⁠.

    At the upper limit, 2x=π22x = \frac{\pi}{2} and sin⁡π2=1\sin\frac{\pi}{2} = 1⁠. At the lower limit both terms are 0.
    Theorem 2, Section 7.8.3: F(upper) minus F(lower). Lesson: the fundamental theorem
  5. The picture, and a check without symmetry

    −π/2 −π/4 π/4 π/2 0.5 1 x y y = sin²x the gold and blue halves are mirror images each half (π − 2)/8
    y=sin⁡2xy = \sin^2 x is symmetric about the y-axis. The shaded region from −π4-\frac{\pi}{4} to π4\frac{\pi}{4} consists of two mirror-image halves, each of area π−28≈0.143\frac{\pi - 2}{8} \approx 0.143⁠.

    Without P7, use the antiderivative x2−sin⁡2x4\frac{x}{2} - \frac{\sin 2x}{4} of sin⁡2x\sin^2 x over the whole interval:

    (π8−14)−(−π8+14)=π4−12.\begin{aligned}&\left(\tfrac{\pi}{8} - \tfrac14\right) - \left(-\tfrac{\pi}{8} + \tfrac14\right) \\ &= \tfrac{\pi}{4} - \tfrac12.\end{aligned}
    Both routes must agree. The symmetry route is shorter here, but the direct route confirms that the factor 2 from P7 was handled correctly. (At x=−π4x = -\frac{\pi}{4}⁠, sin⁡2x=sin⁡(−π2)=−1\sin 2x = \sin\left(-\frac{\pi}{2}\right) = -1⁠.)
    ddx(x2−sin⁡2x4)=12−cos⁡2x2=sin⁡2x\frac{d}{dx}\left(\frac{x}{2} - \frac{\sin 2x}{4}\right) = \frac12 - \frac{\cos 2x}{2} = \sin^2 x⁠. Basics: area as a sum of thin strips
Result

∫−π4π4sin⁡2x dx=π4−12≈0.2853982,\int_{-\frac{\pi}{4}}^{\frac{\pi}{4}}\sin^2 x\,dx = \frac{\pi}{4} - \frac12 \approx 0.2853982, the same as the book's answer.

Check it with numbers

A numerical integration of sin⁡2x\sin^2 x over [−π4,π4]\left[-\frac{\pi}{4}, \frac{\pi}{4}\right] gives 0.2853982, and π4−12\frac{\pi}{4} - \frac12 is 0.7853982−0.5=0.28539820.7853982 - 0.5 = 0.2853982⁠. The value is sensible: sin⁡2x\sin^2 x rises from 0 to 12\frac12 on each half, and the interval has length π2≈1.571\frac{\pi}{2} \approx 1.571⁠, so the area must be well below 12×1.571≈0.785\frac12\times 1.571 \approx 0.785⁠.

Common mistakes
  1. Forgetting the factor 2 from P7 (i) (or forgetting that it cancels the 12\frac12 of the identity).
  2. ∫cos⁡2x dx=sin⁡2x\int\cos 2x\,dx = \sin 2x⁠. The chain rule needs a 12\frac12⁠: 12sin⁡2x\frac12\sin 2x⁠.
  3. Using P7 (ii) instead. sin⁡2x\sin^2 x is even, not odd; the answer is not 0 (it is the area of a region above the axis).
  4. Mixing up the identity: sin⁡2x=1−cos⁡2x2\sin^2 x = \frac{1 - \cos 2x}{2}⁠, while cos⁡2x=1+cos⁡2x2\cos^2 x = \frac{1 + \cos 2x}{2}⁠.
What to take away
  1. On a symmetric interval [−a,a][-a, a]⁠, first test whether the integrand is even or odd: P7 halves the work or ends it.
  2. Squares of sine and cosine are integrated through the double-angle identities.
  3. Always check a symmetry shortcut once by a direct computation when you are learning it.

Every fact used, and where it comes from

FactUsed inSource
sin⁡(−x)=−sin⁡x\sin(-x) = -\sin x⁠, so sin⁡2\sin^2 is evenStep 1Trigonometry (Basics)
P7 (i): ∫−aaf=2∫0af\int_{-a}^a f = 2\int_0^a f for even ffStep 2Section 7.10 (Lesson)
sin⁡2x=1−cos⁡2x2\sin^2 x = \frac{1 - \cos 2x}{2}Step 3Double-angle formula (Basics); Section 7.3.2
∫cos⁡2x dx=12sin⁡2x+C\int\cos 2x\,dx = \frac12\sin 2x + CStep 4Standard formula (ii), Section 7.2, with substitution
∫abf=F(b)−F(a)\int_a^b f = F(b) - F(a)Steps 4 and 5Theorem 2, Section 7.8.3 (Lesson)
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →