Class 12 Maths, Worked in Full Past papersGet updates
Chapter 8 · Application of Integrals

Example 4: Area bounded by y=cos⁡xy = \cos x from x=0x = 0 to x=2πx = 2\pi

ExamplesArea when the curve crosses the axis · Miscellaneous Examples
The question

Find the area bounded by the curve y=cos⁡xy = \cos x between x=0x = 0 and x=2πx = 2\pi⁠.

Exam answer

(figure) In [0,2π][0, 2\pi]⁠, y=cos⁡xy = \cos x meets the xx-axis at x=π2x = \frac{\pi}{2} and x=3π2x = \frac{3\pi}{2}⁠.

cos⁡x≥0\cos x \ge 0 on [0,π2]\left[0, \frac{\pi}{2}\right] and [3π2,2π]\left[\frac{3\pi}{2}, 2\pi\right]⁠; cos⁡x≤0\cos x \le 0 on [π2,3π2]\left[\frac{\pi}{2}, \frac{3\pi}{2}\right]⁠.

Area=∫0π/2cos⁡x dx+∣∫π/23π/2cos⁡x dx∣+∫3π/22πcos⁡x dx=[sin⁡x]0π/2+∣[sin⁡x]π/23π/2∣+[sin⁡x]3π/22π=(1−0)+∣−1−1∣+(0−(−1))=1+2+1\begin{aligned} \text{Area} &= \int_0^{\pi/2}\cos x\,dx \\ &\quad + \left|\int_{\pi/2}^{3\pi/2}\cos x\,dx\right| \\ &\quad + \int_{3\pi/2}^{2\pi}\cos x\,dx \\ &= \Big[\sin x\Big]_0^{\pi/2} + \Big|\Big[\sin x\Big]_{\pi/2}^{3\pi/2}\Big| \\ &\quad + \Big[\sin x\Big]_{3\pi/2}^{2\pi} \\ &= (1 - 0) + |{-1} - 1| \\ &\quad + \big(0 - (-1)\big) \\ &= 1 + 2 + 1 \end{aligned}

∴\therefore Required area =4= 4 sq. units.

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

The one idea this problem is built on

Between 0 and 2π2\pi the cosine curve is above the xx-axis, then below, then above again. A single integral from 0 to 2π2\pi is 0, because the part below the axis cancels the parts above. For the area we split at the crossings π2\frac{\pi}{2} and 3π2\frac{3\pi}{2}⁠, take the size of each part, and add: 1+2+1=41 + 2 + 1 = 4⁠.

Given, to find, and the plan
Given
The curve y=cos⁡xy = \cos x⁠, the xx-axis, and the lines x=0x = 0⁠, x=2πx = 2\pi⁠.
To find
The area of the region between the curve and the xx-axis from x=0x = 0 to x=2πx = 2\pi⁠.
Plan
(1) Find where cos⁡x=0\cos x = 0 and the sign of cos⁡x\cos x on each piece; sketch. (2) Split the area into three parts. (3) Integrate cos⁡x\cos x⁠. (4) Evaluate each part. (5) Add. (6) Check with the symmetry of the graph.

Basics you need

1Area as a sum of strips

Where y≥0y \ge 0⁠, the area under the curve from aa to bb is ∫aby dx\int_a^b y\,dx (Section 8.2). Basics: area as a sum of strips

2Below the axis, take the absolute value

Where y≤0y \le 0⁠, the integral is negative and the area is its absolute value (Remark, Section 8.2). Basics: area below the axis

3Values of sine and cosine

cos⁡x=0\cos x = 0 at x=π2,3π2x = \frac{\pi}{2}, \frac{3\pi}{2} in [0,2π][0, 2\pi]⁠; sin⁡0=0\sin 0 = 0⁠, sin⁡π2=1\sin\frac{\pi}{2} = 1⁠, sin⁡3π2=−1\sin\frac{3\pi}{2} = -1⁠, sin⁡2π=0\sin 2\pi = 0⁠.

4The integral of cos⁡x\cos x

∫cos⁡x dx=sin⁡x+C\int\cos x\,dx = \sin x + C (formula (ii), Section 7.2), then ∫ab=F(b)−F(a)\int_a^b = F(b) - F(a) (Theorem 2, Section 7.8.3). Basics: a definite integral is a number

Solution

  1. Find where the curve crosses the axis, and sketch

    In [0,2π][0, 2\pi]⁠, cos⁡x=0\cos x = 0 exactly at x=π2x = \frac{\pi}{2} and x=3π2x = \frac{3\pi}{2}⁠. The sign of cos⁡x\cos x⁠:

    cos⁡x≥0\cos x \ge 0 on [0,π2]\left[0, \frac{\pi}{2}\right] (first quadrant angles), cos⁡x≤0\cos x \le 0 on [π2,3π2]\left[\frac{\pi}{2}, \frac{3\pi}{2}\right] (second and third quadrants), and cos⁡x≥0\cos x \ge 0 on [3π2,2π]\left[\frac{3\pi}{2}, 2\pi\right] (fourth quadrant).

    Key points: A(0,1)A(0, 1)⁠, B(π2,0)B\left(\frac{\pi}{2}, 0\right)⁠, C(π,−1)C(\pi, -1)⁠, D(3π2,0)D\left(\frac{3\pi}{2}, 0\right)⁠, E(2π,1)E(2\pi, 1)⁠, F(2π,0)F(2\pi, 0)⁠.

    X X′ Y Y′ A(0, 1) B C(π, −1) D E(2π, 1) F O π/2 π 3π/2 2π 1 2 1 y = cos x
    y=cos⁡xy = \cos x on [0,2π][0, 2\pi]⁠, drawn with equal scales. OABOOABO and DEFDDEFD (blue) are above the axis, BCDBBCDB (rose) below it; their areas are 1, 2 and 1.
    The region consists of three pieces, OABOOABO⁠, BCDBBCDB and DEFDDEFD⁠, and the middle one lies below the xx-axis. The crossings π2\frac{\pi}{2} and 3π2\frac{3\pi}{2} are where we must split.
    On the unit circle, cos⁡x\cos x is the xx-coordinate: positive in the first and fourth quadrants, negative in the second and third.
  2. Split the area into three parts

    Area=area OABO+area BCDB+area DEFD=∫0π/2cos⁡x dx+∣∫π/23π/2cos⁡x dx∣+∫3π/22πcos⁡x dx.\begin{aligned} \text{Area} &= \text{area } OABO + \text{area } BCDB \\ &\quad + \text{area } DEFD \\ &= \int_0^{\pi/2}\cos x\,dx \\ &\quad + \left|\int_{\pi/2}^{3\pi/2}\cos x\,dx\right| \\ &\quad + \int_{3\pi/2}^{2\pi}\cos x\,dx. \end{aligned}
    On the first and last pieces cos⁡x≥0\cos x \ge 0⁠, so the integrals are the areas. On the middle piece cos⁡x≤0\cos x \le 0⁠, so the integral is negative and its absolute value is the area.
    Remark, Section 8.2: below the axis, take the absolute value. Lesson: below the axis, take the absolute value
  3. Integrate cos⁡x\cos x

    An antiderivative of cos⁡x\cos x is F(x)=sin⁡xF(x) = \sin x⁠, since ddxsin⁡x=cos⁡x\frac{d}{dx}\sin x = \cos x⁠.

    cos⁡x\cos x is continuous on all of [0,2π][0, 2\pi]⁠, so Theorem 2 applies on each piece.
    Formula (ii), Section 7.2: ∫cos⁡x dx=sin⁡x+C\int\cos x\,dx = \sin x + C⁠. Basics: a definite integral is a number
  4. Evaluate each part

    ∫0π/2cos⁡x dx=sin⁡π2−sin⁡0=1−0=1,∫π/23π/2cos⁡x dx=sin⁡3π2−sin⁡π2=−1−1=−2,∫3π/22πcos⁡x dx=sin⁡2π−sin⁡3π2=0−(−1)=1.\begin{aligned} \int_0^{\pi/2}\cos x\,dx &= \sin\frac{\pi}{2} - \sin 0 \\ &= 1 - 0 = 1, \\ \int_{\pi/2}^{3\pi/2}\cos x\,dx &= \sin\frac{3\pi}{2} - \sin\frac{\pi}{2} \\ &= -1 - 1 = -2, \\ \int_{3\pi/2}^{2\pi}\cos x\,dx &= \sin 2\pi - \sin\frac{3\pi}{2} \\ &= 0 - (-1) = 1. \end{aligned}
    The middle value is negative, as it must be for a piece below the axis; its area is ∣−2∣=2|-2| = 2⁠. The other two are positive and are areas as they stand.
    sin⁡3π2=sin⁡(π+π2)=−sin⁡π2=−1\sin\frac{3\pi}{2} = \sin\left(\pi + \frac{\pi}{2}\right) = -\sin\frac{\pi}{2} = -1⁠.
  5. Add the areas

    Area=1+∣−2∣+1=1+2+1=4 sq. units.\begin{aligned} \text{Area} &= 1 + |-2| + 1 \\ &= 1 + 2 + 1 = 4 \text{ sq. units}. \end{aligned}
    Every piece of an area counts as positive. The plain integral ∫02πcos⁡x dx=sin⁡2π−sin⁡0=0\int_0^{2\pi}\cos x\,dx = \sin 2\pi - \sin 0 = 0 adds 1−2+11 - 2 + 1 and is not the area.
    Split at every crossing, then add the sizes. Lesson: when the curve dips below the axis, Examples 3–4
  6. Check with the shape of the graph

    The graph from 0 to 2π2\pi is made of four congruent quarter-waves: from 0 to π2\frac{\pi}{2}⁠, π2\frac{\pi}{2} to π\pi⁠, π\pi to 3π2\frac{3\pi}{2}⁠, and 3π2\frac{3\pi}{2} to 2π2\pi⁠. Each has area ∫0π/2cos⁡x dx=1\int_0^{\pi/2}\cos x\,dx = 1⁠, so the total is 4×1=44 \times 1 = 4⁠.

    For 0≤u≤π20 \le u \le \frac{\pi}{2}⁠: ∣cos⁡(π−u)∣=∣cos⁡(π+u)∣=∣cos⁡(2π−u)∣=cos⁡u|\cos(\pi - u)| = |\cos(\pi + u)| = |\cos(2\pi - u)| = \cos u⁠, because cos⁡(π∓u)=−cos⁡u\cos(\pi \mp u) = -\cos u and cos⁡(2π−u)=cos⁡u\cos(2\pi - u) = \cos u⁠. So the strips of each later quarter-wave have the same lengths as those of the first one (in reverse order for x=π−ux = \pi - u and x=2π−ux = 2\pi - u⁠), and the areas are equal. This matches BCDBBCDB having area 2: two quarter-waves.
    Strips of equal lengths over intervals of equal width add up to equal areas.
Result

The area bounded by y=cos⁡xy = \cos x and the xx-axis between x=0x = 0 and x=2πx = 2\pi is 1+2+1=41 + 2 + 1 = 4 sq. units. This is the textbook's answer.

Check it with numbers

A numerical integration of ∣cos⁡x∣|\cos x| over [0,2π][0, 2\pi] gives 4.00000000. Of the plain cos⁡x\cos x it gives 0.00000000, the cancelled value. A size check: every vertical strip of the region has length ∣cos⁡x∣≤1|\cos x| \le 1⁠, so the area is at most 1×2π≈6.283185311 \times 2\pi \approx 6.28318531⁠; the area 4 is less than that.

Common mistakes
  1. One integral from 0 to 2π2\pi⁠. It gives 0, because the part below the axis cancels the parts above.
  2. Splitting only at π\pi⁠. cos⁡x\cos x changes sign at π2\frac{\pi}{2} and 3π2\frac{3\pi}{2}⁠, not at π\pi⁠; splitting at π\pi still mixes positive and negative parts.
  3. Writing ∫cos⁡x dx=−sin⁡x\int\cos x\,dx = -\sin x⁠. The derivative of sin⁡x\sin x is cos⁡x\cos x⁠, so the antiderivative of cos⁡x\cos x is +sin⁡x+\sin x⁠.
What to take away
  1. Solve y=0y = 0 inside the interval first; every crossing is a split point.
  2. Area == sum of the sizes of the pieces; the plain integral is "above minus below".
  3. One quarter-wave of sin⁡\sin or cos⁡\cos has area 1; a full wave has area 4.

Every fact used, and where it comes from

FactUsed inSource
Zeros and signs of cos⁡x\cos x on [0,2π][0, 2\pi]Step 1Trigonometric functions (Class XI)
Area below the axis is the absolute valueSteps 2, 5Remark, Section 8.2; Example 4, Fig 8.10 (Lesson)
∫cos⁡x dx=sin⁡x+C\int\cos x\,dx = \sin x + CStep 3Formula (ii), Section 7.2
∫abf(x) dx=F(b)−F(a)\int_a^b f(x)\,dx = F(b) - F(a)Step 4Theorem 2, Section 7.8.3 (Basics)
cos⁡(π∓x)=−cos⁡x\cos(\pi \mp x) = -\cos x⁠, cos⁡(2π−x)=cos⁡x\cos(2\pi - x) = \cos xStep 6Trigonometric functions (Class XI)
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 →