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

Exercise 7.10 · Q1: ∫0π/2cos⁡2x dx\int_0^{\pi/2}\cos^2x\,dx

Exercise 7.10Properties of definite integrals (P4) · Section 7.10
The question

By using the properties of definite integrals, evaluate the integrals in Exercises 1 to 19.

1. ∫0π2cos⁡2x dx\displaystyle\int_0^{\frac{\pi}{2}}\cos^2 x\,dx

Exam answer Let I=∫0π2cos⁡2x dx…(i)\text{Let } I = \int_0^{\frac{\pi}{2}}\cos^2 x\,dx\quad\ldots(\text{i})

Using ∫0af(x) dx=∫0af(a−x) dx\displaystyle\int_0^a f(x)\,dx = \int_0^a f(a - x)\,dx⁠,

I=∫0π2cos⁡2(π2−x)dx=∫0π2sin⁡2x dx…(ii)\begin{aligned} I &= \int_0^{\frac{\pi}{2}}\cos^2\left(\frac{\pi}{2} - x\right)dx \\ &= \int_0^{\frac{\pi}{2}}\sin^2 x\,dx\quad\ldots(\text{ii}) \end{aligned}

Adding (i) and (ii),

2I=∫0π2(cos⁡2x+sin⁡2x)dx=∫0π21 dx=[x]0π2=π2\begin{aligned} 2I &= \int_0^{\frac{\pi}{2}}\left(\cos^2 x + \sin^2 x\right)dx \\ &= \int_0^{\frac{\pi}{2}}1\,dx = \Big[x\Big]_0^{\frac{\pi}{2}} = \frac{\pi}{2} \end{aligned}

∴ I=π4\therefore\ I = \dfrac{\pi}{4}⁠.

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

The one idea this problem is built on

On [0,π2]\left[0, \frac{\pi}{2}\right]⁠, reading the interval backwards (replacing xx by π2−x\frac{\pi}{2} - x⁠) turns cos⁡\cos into sin⁡\sin⁠. Property P4 says this does not change the integral, so the integral of cos⁡2x\cos^2 x equals the integral of sin⁡2x\sin^2 x⁠. Their sum is the integral of cos⁡2x+sin⁡2x=1\cos^2 x + \sin^2 x = 1⁠, which is just the length of the interval.

Given, to find, and the plan
Given
I=∫0π/2cos⁡2x dxI = \int_0^{\pi/2}\cos^2 x\,dx⁠.
To find
The exact value of II⁠, and its decimal value.
Plan
Check the integrand is continuous; apply P4 with a=π2a = \frac{\pi}{2} to get a second form of II⁠; add the two forms and use sin⁡2x+cos⁡2x=1\sin^2 x + \cos^2 x = 1⁠; solve for II⁠. Then confirm with the double-angle formula.

Basics you need

1Property P4 (Section 7.10)

∫0af(x) dx=∫0af(a−x) dx\int_0^a f(x)\,dx = \int_0^a f(a - x)\,dx⁠. As xx runs from 0 to aa⁠, the point a−xa - x runs over the same interval backwards, so the area is the same. Lesson: properties of definite integrals

2Complementary angles

cos⁡(π2−x)=sin⁡x\cos\left(\frac{\pi}{2} - x\right) = \sin x⁠, and sin⁡2x+cos⁡2x=1\sin^2 x + \cos^2 x = 1 for every xx⁠. Basics: trigonometric identities

3Adding integrals over the same interval

∫abf dx+∫abg dx=∫ab(f+g) dx\int_a^b f\,dx + \int_a^b g\,dx = \int_a^b (f + g)\,dx⁠. Basics: symmetry and mirror images

4The fundamental theorem

If F′=fF' = f and ff is continuous on [a,b][a, b]⁠, then ∫abf(x) dx=F(b)−F(a)\int_a^b f(x)\,dx = F(b) - F(a) (Theorem 2, Section 7.8.3). Lesson: the fundamental theorem

Solution

  1. The integrand is continuous; label the integral (1)

    cos⁡x\cos x is continuous for every real xx⁠, so its square cos⁡2x\cos^2 x is continuous on [0,π2]\left[0, \frac{\pi}{2}\right]⁠. Write

    I=∫0π2cos⁡2x dx(1)I = \int_0^{\frac{\pi}{2}}\cos^2 x\,dx \qquad (1)
    The properties P0 to P7 and Theorem 2 are stated for functions continuous on the closed interval. A continuous integrand means the integral is a definite finite number, so we may later add it to itself and divide by 2.
    A product (here cos⁡x⋅cos⁡x\cos x \cdot \cos x⁠) of continuous functions is continuous.
  2. Apply P4 with a=π2a = \frac{\pi}{2}

    Here f(x)=cos⁡2xf(x) = \cos^2 x and a=π2a = \frac{\pi}{2}⁠. Work out f(a−x)f(a - x)⁠:

    f(π2−x)=cos⁡2(π2−x)=sin⁡2x.f\left(\tfrac{\pi}{2} - x\right) = \cos^2\left(\tfrac{\pi}{2} - x\right) = \sin^2 x .

    So P4 gives

    I=∫0π2sin⁡2x dx(2)I = \int_0^{\frac{\pi}{2}}\sin^2 x\,dx \qquad (2)
    P4 has no special condition: it holds for every function continuous on [0,a][0, a]⁠. The only work is to compute f(a−x)f(a - x) and see that it is simpler or more useful. Here it is the "partner" sin⁡2x\sin^2 x⁠, whose sum with cos⁡2x\cos^2 x is the constant 1. (Proof of P4 in the book: put t=a−xt = a - x⁠, so dt=−dxdt = -dx⁠, and the limits 0 and aa swap.)
    cos⁡(π2−x)=sin⁡x\cos\left(\frac{\pi}{2} - x\right) = \sin x⁠; squaring both sides gives cos⁡2(π2−x)=sin⁡2x\cos^2\left(\frac{\pi}{2} - x\right) = \sin^2 x⁠. Basics: trigonometric identities
  3. Add (1) and (2)

    2I=∫0π2(cos⁡2x+sin⁡2x)dx=∫0π21 dx=[x]0π2=π2.\begin{aligned}2I &= \int_0^{\frac{\pi}{2}}\left(\cos^2 x + \sin^2 x\right)dx \\ &= \int_0^{\frac{\pi}{2}}1\,dx = \big[x\big]_0^{\frac{\pi}{2}} = \frac{\pi}{2}.\end{aligned}
    Both forms are integrals over the same interval, so they can be added under one integral sign. The identity sin⁡2x+cos⁡2x=1\sin^2 x + \cos^2 x = 1 replaces a function we would otherwise have to integrate by a constant, whose integral over an interval is the interval's length.
    ∫1 dx=x+C\int 1\,dx = x + C (the line ∫dx=x+C\int dx = x + C under standard formula (i), Section 7.2), then Theorem 2, Section 7.8.3. Lesson: the fundamental theorem
  4. Solve for II

    I=12⋅π2=π4≈0.7853982.I = \frac{1}{2}\cdot\frac{\pi}{2} = \frac{\pi}{4} \approx 0.7853982 .
    II is a finite number (Step 1), so dividing 2I=π22I = \frac{\pi}{2} by 2 is allowed. The answer is positive, as it must be: cos⁡2x≥0\cos^2 x \ge 0⁠, so the region lies above the axis.
    Dividing both sides of an equation by the same non-zero number keeps it true.
  5. The picture: two mirror images fill a rectangle

    x y π/4 π/2 1/2 1 (π/4, 1/2) y = cos²x dashed: y = sin²x area I
    The blue curve y=cos⁡2xy = \cos^2 x and the dashed gold curve y=sin⁡2xy = \sin^2 x are mirror images in the line x=π4x = \frac{\pi}{4}⁠, so the areas under them are equal (both II⁠). At every xx their heights add to 1, so together the two areas fill the dashed rectangle of area π2×1\frac{\pi}{2} \times 1⁠. Hence 2I=π22I = \frac{\pi}{2}⁠.
    This is P4 seen as a picture: replacing xx by π2−x\frac{\pi}{2} - x reflects a graph in the vertical line through the middle of the interval, and a reflected region has the same area.
    Mirror images have equal areas. Basics: symmetry and mirror images
  6. A second route: the double-angle formula

    Without P4: cos⁡2x=1+cos⁡2x2\cos^2 x = \frac{1 + \cos 2x}{2}⁠, and an antiderivative is x2+sin⁡2x4\frac{x}{2} + \frac{\sin 2x}{4} (check: its derivative is 12+cos⁡2x2\frac12 + \frac{\cos 2x}{2}⁠). So

    I=[x2+sin⁡2x4]0π2=(π4+sin⁡π4)−0=π4.\begin{aligned}I &= \left[\frac{x}{2} + \frac{\sin 2x}{4}\right]_0^{\frac{\pi}{2}} \\ &= \left(\frac{\pi}{4} + \frac{\sin\pi}{4}\right) - 0 = \frac{\pi}{4}.\end{aligned}
    Both methods must agree, which is a strong check on the answer. The exercise asks for the properties, so the P4 route (Steps 2 to 4) is the expected one; it also works for integrands such as those in Questions 2 to 4, which have no simple antiderivative.
    cos⁡2x=2cos⁡2x−1\cos 2x = 2\cos^2 x - 1⁠, so cos⁡2x=1+cos⁡2x2\cos^2 x = \frac{1 + \cos 2x}{2} (Section 7.3.2 uses this identity); sin⁡π=0\sin\pi = 0⁠. Basics: trigonometric identities
Result

∫0π2cos⁡2x dx=π4≈0.7853982\int_0^{\frac{\pi}{2}}\cos^2 x\,dx = \frac{\pi}{4} \approx 0.7853982 (Textbook answer: π4\frac{\pi}{4}⁠. Ours is the same.)

Check it with numbers

A numerical integration of cos⁡2x\cos^2 x over [0,π2]\left[0, \frac{\pi}{2}\right] gives 0.7853982, and π4≈0.7853982\frac{\pi}{4} \approx 0.7853982⁠. It also gives 0.7853982 for sin⁡2x\sin^2 x over the same interval, as P4 says. At the sample point x=0.3x = 0.3⁠: cos⁡20.3≈0.9126678\cos^2 0.3 \approx 0.9126678 and sin⁡20.3≈0.0873322\sin^2 0.3 \approx 0.0873322⁠, which add to 1.

Common mistakes
  1. Writing cos⁡2(π2−x)=cos⁡2x\cos^2\left(\frac{\pi}{2} - x\right) = \cos^2 x⁠. The complementary angle swaps cos⁡\cos and sin⁡\sin⁠; nothing changes only when the function itself is symmetric about π4\frac{\pi}{4}⁠.
  2. Stopping at 2I=π22I = \frac{\pi}{2}⁠. The question asks for II⁠, which is half of it: π4\frac{\pi}{4}⁠.
  3. Using P4 on an interval that does not start at 0. P4 is for ∫0a\int_0^a⁠. For ∫ab\int_a^b use P3, which replaces xx by a+b−xa + b - x⁠.
What to take away
  1. ∫0π/2cos⁡2x dx=∫0π/2sin⁡2x dx=π4\int_0^{\pi/2}\cos^2 x\,dx = \int_0^{\pi/2}\sin^2 x\,dx = \frac{\pi}{4}⁠: each is half of the interval length, because the two add to 1.
  2. P4 with a=π2a = \frac{\pi}{2} swaps sin⁡\sin and cos⁡\cos⁠. Write the integral twice (forms (1) and (2)) and add: the sum is often much simpler than either part.
  3. The same trick evaluates Questions 2 to 4 of this exercise, where no easy antiderivative exists.

Every fact used, and where it comes from

FactUsed inSource
Products of continuous functions are continuousStep 1Chapter 5 (continuity)
P4: ∫0af(x) dx=∫0af(a−x) dx\int_0^a f(x)\,dx = \int_0^a f(a - x)\,dxStep 2Section 7.10 (Lesson)
cos⁡(π2−x)=sin⁡x\cos\left(\frac{\pi}{2} - x\right) = \sin xStep 2Trigonometry (Basics)
sin⁡2x+cos⁡2x=1\sin^2 x + \cos^2 x = 1Step 3Trigonometry (Basics)
∫abf+∫abg=∫ab(f+g)\int_a^b f + \int_a^b g = \int_a^b (f + g)Step 3Linearity of integrals
∫dx=x+C\int dx = x + CStep 3Standard formula (i), Section 7.2
∫abf(x) dx=F(b)−F(a)\int_a^b f(x)\,dx = F(b) - F(a)Steps 3 and 6Theorem 2, Section 7.8.3 (Lesson)
cos⁡2x=1+cos⁡2x2\cos^2 x = \frac{1 + \cos 2x}{2}Step 6Double-angle formula; Section 7.3.2
Mirror images have equal areasStep 5Basics: symmetry; Example 32 uses the same idea
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 →