The area between two curves is always ∫∣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 (2−1 each). This happens because sinx and cosx are the same function shifted by π/2, and our region is symmetric about x=π/4.
Alternative Method — Single integral with absolute value
Area=∫0π/2∣cosx−sinx∣dx
Since we know the sign change occurs at x=π/4:
=∫0π/4(cosx−sinx)dx+∫π/4π/2(sinx−cosx)dx
This is the same computation, just written more compactly.
For JEE, the answer 2(2−1) is a commonly appearing numerical value in area problems involving trig functions. Also remember: the area between sinx and cosx over one full “crossing” (from one intersection to the next) is always 2(2−1). This can save time in MCQs.
Common Mistake
The most frequent error: students compute ∫0π/2(cosx−sinx)dx without splitting at the intersection point. This gives [sinx+cosx]0π/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.