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

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

Exercise 7.8Fundamental theorem of calculus · Section 7.8
The question

Evaluate the definite integral

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

Let I=∫0π2cos⁡2x dxI = \displaystyle\int_0^{\frac{\pi}{2}}\cos 2x\,dx⁠.

I=[sin⁡2x2]0π2=12sin⁡π−12sin⁡0=0−0\begin{aligned} I &= \left[\frac{\sin 2x}{2}\right]_0^{\frac{\pi}{2}} \\ &= \frac12\sin\pi - \frac12\sin 0 \\ &= 0 - 0 \end{aligned}

∴ I=0\therefore\ I = 0⁠.

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

The one idea this problem is built on

The second fundamental theorem (Theorem 2, Section 7.8.3) gives ∫abf(x) dx=F(b)−F(a)\int_a^b f(x)\,dx = F(b) - F(a) with F(x)=12sin⁡2xF(x) = \frac12\sin 2x⁠. The answer turns out to be 0, and that is not a mistake: a definite integral is a signed area. Here cos⁡2x\cos 2x is positive on the first half of the interval and negative on the second half, and the two pieces cancel exactly.

Given, to find, and the plan
Given
f(x)=cos⁡2xf(x) = \cos 2x on [0,π2]\left[0, \frac{\pi}{2}\right]⁠.
To find
The exact value of ∫0π/2cos⁡2x dx\int_0^{\pi/2}\cos 2x\,dx⁠.
Plan
(1) Continuity. (2) Antiderivative by the substitution u=2xu = 2x⁠, checked by differentiating. (3) F(π2)−F(0)F\left(\frac{\pi}{2}\right) - F(0)⁠. (4) Explain the 0 by splitting at π4\frac{\pi}{4}⁠, where cos⁡2x\cos 2x changes sign.

Basics you need

1Second fundamental theorem

∫abf(x) dx=[F(x)]ab=F(b)−F(a)\int_a^b f(x)\,dx = \big[F(x)\big]_a^b = F(b) - F(a) for ff continuous on [a,b][a, b] and F′=fF' = f⁠. Lesson: definite integrals and the fundamental theorem

2Integral of cos⁡\cos

∫cos⁡u du=sin⁡u+C\int\cos u\,du = \sin u + C (standard formula (ii), Section 7.2). Basics: trigonometric identities for integrals

3Substitution

If u=g(x)u = g(x)⁠, then du=g′(x) dxdu = g'(x)\,dx (Section 7.3.1). Basics: substitution (the chain rule backwards)

4Signed area

Section 7.8.1 describes ∫abf\int_a^b f as the area bounded by the curve, the ordinates x=ax = a⁠, x=bx = b and the x-axis, and its Fig 7.1 assumes f(x)>0f(x) > 0⁠; this reprint does not discuss regions below the axis. Where the graph is below the x-axis, F(b)−F(a)F(b) - F(a) comes out negative (Step 5 shows this), so in general the integral counts area above the axis as positive and area below it as negative. Basics: area as a sum of thin strips

Solution

  1. Check continuity on [0,π2]\left[0, \frac{\pi}{2}\right]

    cos⁡2x\cos 2x is the composition of the continuous functions x↦2xx \mapsto 2x and cos⁡\cos⁠, so it is continuous for every real xx⁠, and in particular on [0,π2]\left[0, \frac{\pi}{2}\right]⁠.

    Theorem 2 needs a continuous integrand on the closed interval (Remark (iv) after Theorem 2).
    Composition of continuous functions: Chapter 5, Theorem 2, Section 5.2.1. Lesson: the fundamental theorem
  2. Antiderivative by the substitution u=2xu = 2x

    Let u=2xu = 2x⁠, so du=2 dxdu = 2\,dx and dx=12 dudx = \frac12\,du⁠:

    ∫cos⁡2x dx=12∫cos⁡u du=12sin⁡u+C=12sin⁡2x+C.\int\cos 2x\,dx = \tfrac12\int\cos u\,du = \tfrac12\sin u + C = \tfrac12\sin 2x + C.

    Take F(x)=12sin⁡2xF(x) = \frac12\sin 2x⁠.

    The inner function 2x2x has the constant derivative 2, so the substitution simply contributes the factor 12\frac12⁠.
    Standard formula (ii), Section 7.2; substitution, Section 7.3.1. Lesson: integration by substitution
  3. Check: differentiate FF back

    Chain rule (outer sin⁡\sin⁠, inner 2x2x⁠):

    F′(x)=12cos⁡2x⋅2=cos⁡2x.F'(x) = \tfrac12\cos 2x\cdot 2 = \cos 2x.
    The 12\frac12 cancels the inner derivative 2, giving exactly the integrand.
    ddxsin⁡u=cos⁡u⋅dudx\frac{d}{dx}\sin u = \cos u\cdot\frac{du}{dx}⁠. Basics: the chain rule
  4. Evaluate F(π2)−F(0)F\left(\frac{\pi}{2}\right) - F(0)

    At x=π2x = \frac{\pi}{2}⁠, 2x=π2x = \pi⁠; at x=0x = 0⁠, 2x=02x = 0⁠:

    ∫0π2cos⁡2x dx=12sin⁡π−12sin⁡0=12⋅0−12⋅0=0.\begin{aligned}\int_0^{\frac{\pi}{2}}\cos 2x\,dx &= \tfrac12\sin\pi - \tfrac12\sin 0 \\ &= \tfrac12\cdot 0 - \tfrac12\cdot 0 = 0.\end{aligned}
    Upper minus lower. Both values of sin⁡\sin are 0, so the integral is 0.
    sin⁡0=sin⁡π=0\sin 0 = \sin\pi = 0⁠. Basics: trigonometric values
  5. Why 0? Split at π4\frac{\pi}{4}

    cos⁡2x=0\cos 2x = 0 when 2x=π22x = \frac{\pi}{2}⁠, that is at x=π4x = \frac{\pi}{4}⁠. For 0≤x<π40 \le x < \frac{\pi}{4}⁠, 2x2x is in [0,π2)\left[0, \frac{\pi}{2}\right) and cos⁡2x>0\cos 2x > 0⁠; for π4<x≤π2\frac{\pi}{4} < x \le \frac{\pi}{2}⁠, 2x2x is in (π2,π]\left(\frac{\pi}{2}, \pi\right] and cos⁡2x<0\cos 2x < 0⁠. Using the same FF on each half:

    ∫0π4cos⁡2x dx=12sin⁡π2−12sin⁡0=12,∫π4π2cos⁡2x dx=12sin⁡π−12sin⁡π2=−12.\begin{aligned}\int_0^{\frac{\pi}{4}}\cos 2x\,dx &= \tfrac12\sin\tfrac{\pi}{2} - \tfrac12\sin 0 = \tfrac12, \\ \int_{\frac{\pi}{4}}^{\frac{\pi}{2}}\cos 2x\,dx &= \tfrac12\sin\pi - \tfrac12\sin\tfrac{\pi}{2} = -\tfrac12.\end{aligned}

    The sum is 12+(−12)=0\frac12 + \left(-\frac12\right) = 0⁠.

    π/4 π/2 −1 1 x y y = cos 2x +1/2 −1/2
    y=cos⁡2xy = \cos 2x on [0,π2]\left[0, \frac{\pi}{2}\right]⁠. The blue region above the axis has area 12\frac12 and counts +12+\frac12⁠; the rose region below the axis has the same area and counts −12-\frac12⁠. The signed total is 0.
    The two pieces are mirror images: cos⁡(2(π2−x))=cos⁡(π−2x)=−cos⁡2x\cos\left(2\left(\frac{\pi}{2} - x\right)\right) = \cos(\pi - 2x) = -\cos 2x⁠, so the graph on the second half is the first half turned upside down about the point (π4,0)\left(\frac{\pi}{4}, 0\right)⁠. Equal areas, opposite signs. The geometric area enclosed by the curve and the axis is 1, but the integral is 0.
    cos⁡(π−θ)=−cos⁡θ\cos(\pi - \theta) = -\cos\theta⁠. Basics: symmetry and mirror images
Result ∫0π2cos⁡2x dx=0.\int_0^{\frac{\pi}{2}}\cos 2x\,dx = 0.

(Textbook answer: 0, the same.)

Check it with numbers

Numerical integration (thin strips, no antiderivative used) gives 0.50000000.5000000 on [0,π4]\left[0, \frac{\pi}{4}\right]⁠, −0.5000000-0.5000000 on [π4,π2]\left[\frac{\pi}{4}, \frac{\pi}{2}\right]⁠, and 0.00000000.0000000 on the whole interval [0,π2]\left[0, \frac{\pi}{2}\right]⁠.

Common mistakes
  1. Thinking 0 must be wrong. A definite integral is a signed area; positive and negative parts can cancel.
  2. Using sin⁡π2\sin\frac{\pi}{2} at the upper limit. The angle is 2x2x⁠, so at x=π2x = \frac{\pi}{2} it is π\pi⁠, and sin⁡π=0\sin\pi = 0⁠.
  3. Calling 0 "the area". If a question asks for the area between the curve and the axis, add the absolute values: 12+12=1\frac12 + \frac12 = 1⁠.
What to take away
  1. ∫cos⁡kx dx=1ksin⁡kx+C\int\cos kx\,dx = \frac1k\sin kx + C for a constant k≠0k \ne 0⁠.
  2. The definite integral is a signed area: parts below the axis subtract.
  3. When an integral comes out 0, look for a sign change and a symmetry that explain it.

Every fact used, and where it comes from

FactUsed inSource
∫abf=F(b)−F(a)\int_a^b f = F(b) - F(a) for continuous ffSteps 1, 4, 5Theorem 2, Section 7.8.3 (Lesson)
Composition of continuous functions is continuousStep 1Chapter 5, Theorem 2, Section 5.2.1
∫cos⁡u du=sin⁡u+C\int\cos u\,du = \sin u + CStep 2Standard formula (ii), Section 7.2
Substitution u=2xu = 2xStep 2Section 7.3.1 (Lesson)
Chain ruleStep 3Chapter 5, Section 5.3.1 (Basics)
Signed area: Theorem 2 on each half of the intervalStep 5Theorem 2, Section 7.8.3; area meaning, Section 7.8.1 (Basics)
cos⁡(π−θ)=−cos⁡θ\cos(\pi - \theta) = -\cos\thetaStep 5Trigonometric identities (Basics)
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 →