Area between curves y = sin(x) and y = cos(x) from 0 to π/2

medium CBSE JEE-MAIN JEE Main 2023 3 min read

Question

Find the area enclosed between the curves y=sinxy = \sin x and y=cosxy = \cos x from x=0x = 0 to x=π/2x = \pi/2.

(JEE Main 2023)


Solution — Step by Step

Set sinx=cosx\sin x = \cos x:

tanx=1    x=π4\tan x = 1 \implies x = \frac{\pi}{4}

So the curves cross at x=π/4x = \pi/4 in the interval [0,π/2][0, \pi/2].

On [0,π/4][0, \pi/4]: cosx>sinx\cos x > \sin x (e.g., at x=0x = 0: cos0=1>0=sin0\cos 0 = 1 > 0 = \sin 0)

On [π/4,π/2][\pi/4, \pi/2]: sinx>cosx\sin x > \cos x (e.g., at x=π/2x = \pi/2: sin(π/2)=1>0=cos(π/2)\sin(\pi/2) = 1 > 0 = \cos(\pi/2))

Area=0π/4(cosxsinx)dx+π/4π/2(sinxcosx)dx\text{Area} = \int_0^{\pi/4} (\cos x - \sin x) \, dx + \int_{\pi/4}^{\pi/2} (\sin x - \cos x) \, dx

First integral:

0π/4(cosxsinx)dx=[sinx+cosx]0π/4\int_0^{\pi/4} (\cos x - \sin x) \, dx = [\sin x + \cos x]_0^{\pi/4} =(12+12)(0+1)=21= \left(\frac{1}{\sqrt{2}} + \frac{1}{\sqrt{2}}\right) - (0 + 1) = \sqrt{2} - 1

Second integral:

π/4π/2(sinxcosx)dx=[cosxsinx]π/4π/2\int_{\pi/4}^{\pi/2} (\sin x - \cos x) \, dx = [-\cos x - \sin x]_{\pi/4}^{\pi/2} =(01)(1212)=1+2=21= (0 - 1) - \left(-\frac{1}{\sqrt{2}} - \frac{1}{\sqrt{2}}\right) = -1 + \sqrt{2} = \sqrt{2} - 1

Total area:

Area=(21)+(21)=2(21)0.828\text{Area} = (\sqrt{2} - 1) + (\sqrt{2} - 1) = \boxed{2(\sqrt{2} - 1)} \approx 0.828

Why This Works

The area between two curves is always f(x)g(x)dx\int |f(x) - g(x)| \, dx — we need the absolute value because area is always positive. The practical way to handle the absolute value is to split the interval at the intersection points and determine which function is larger in each subinterval.

Notice the beautiful symmetry here: both subregions have equal area (21\sqrt{2} - 1 each). This happens because sinx\sin x and cosx\cos x are the same function shifted by π/2\pi/2, and our region is symmetric about x=π/4x = \pi/4.


Alternative Method — Single integral with absolute value

Area=0π/2cosxsinxdx\text{Area} = \int_0^{\pi/2} |\cos x - \sin x| \, dx

Since we know the sign change occurs at x=π/4x = \pi/4:

=0π/4(cosxsinx)dx+π/4π/2(sinxcosx)dx= \int_0^{\pi/4} (\cos x - \sin x) \, dx + \int_{\pi/4}^{\pi/2} (\sin x - \cos x) \, dx

This is the same computation, just written more compactly.

For JEE, the answer 2(21)2(\sqrt{2} - 1) is a commonly appearing numerical value in area problems involving trig functions. Also remember: the area between sinx\sin x and cosx\cos x over one full “crossing” (from one intersection to the next) is always 2(21)2(\sqrt{2} - 1). This can save time in MCQs.


Common Mistake

The most frequent error: students compute 0π/2(cosxsinx)dx\int_0^{\pi/2} (\cos x - \sin x) \, dx without splitting at the intersection point. This gives [sinx+cosx]0π/2=(1+0)(0+1)=0[\sin x + \cos x]_0^{\pi/2} = (1 + 0) - (0 + 1) = 0. The zero result should immediately raise a red flag — the area between two curves that cross cannot be zero. The positive and negative parts cancel out. Always split the integral at intersection points.

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →

Try These Next