IB

View all Questions

Question

Mathematics

How do you find the area enclosed between sine and cosine graphs?

Answer

Mathematics

Expert Answer

Find where the curves meet, use a test point or graph on your G.D.C. to see which one is on top, then integrate top minus bottom between the intersections. If the curves swap order inside the interval, split the integral at the intersection point.

Find the intersections

Take y=sin⁡xy=\sin x and y=cos⁡xy=\cos x, with xx in radians. The curves meet when

sin⁡x=cos⁡x⟹tan⁡x=1⟹x=π4+kπ, k∈Z\sin x=\cos x\quad\Longrightarrow\quad\tan x=1\quad\Longrightarrow\quad x=\frac{\pi}{4}+k\pi,\ k\in\mathbb{Z}

Dividing by cos⁡x\cos x loses no solutions here. Wherever cos⁡x=0\cos x=0, sin⁡x=±1\sin x=\pm1, so the two can't be equal there.

Since the graphs repeat every 2π2\pi, they enclose infinitely many regions of the same size. A question will pick one out with an interval or a diagram. Here, take the region between the consecutive intersections x=π/4x=\pi/4 and x=5π/4x=5\pi/4.

Decide which curve is on top

Pick a test point between the intersections. At x=π/2x=\pi/2, sin⁡x=1\sin x=1 and cos⁡x=0\cos x=0, so sine is higher. There are no other intersections between π/4\pi/4 and 5π/45\pi/4, so sine stays above cosine across the whole region.

Sine and cosine meet at pi over four and five pi over four; the shaded region has sine as its upper boundary.

Sine lies above cosine across the shaded region, even where both values are negative.

So the area is

A=∫π/45π/4(sin⁡x−cos⁡x) dxA=\int_{\pi/4}^{5\pi/4}(\sin x-\cos x)\,dx

Each thin vertical strip has height sin⁡x−cos⁡x\sin x-\cos x and width dxdx, and the integral adds the strips together.

Evaluate and check

An antiderivative of sin⁡x−cos⁡x\sin x-\cos x is −cos⁡x−sin⁡x-\cos x-\sin x, so

A=[−cos⁡x−sin⁡x]π/45π/4=(22+22)−(−22−22)=2−(−2)A=22\begin{aligned}A&=\big[-\cos x-\sin x\big]_{\pi/4}^{5\pi/4}\\ &=\left(\frac{\sqrt2}{2}+\frac{\sqrt2}{2}\right)-\left(-\frac{\sqrt2}{2}-\frac{\sqrt2}{2}\right)\\ &=\sqrt2-(-\sqrt2)\\ A&=\boxed{2\sqrt2}\end{aligned}

That is 2.832.83 units² (3 s.f.). Differentiating −cos⁡x−sin⁡x-\cos x-\sin x gives back sin⁡x−cos⁡x\sin x-\cos x, which confirms the signs. An area must be positive. A negative answer here would mean the curves were subtracted the wrong way round.

When the curves swap inside the interval

On [0,π/2][0,\pi/2], cosine is higher before π/4\pi/4 and sine is higher after it, so the area needs two integrals:

A=∫0π/4(cos⁡x−sin⁡x) dx+∫π/4π/2(sin⁡x−cos⁡x) dx=(2−1)+(2−1)A=22−2\begin{aligned}A&=\int_0^{\pi/4}(\cos x-\sin x)\,dx+\int_{\pi/4}^{\pi/2}(\sin x-\cos x)\,dx\\ &=(\sqrt2-1)+(\sqrt2-1)\\ A&=\boxed{2\sqrt2-2}\end{aligned}

A single integral of sin⁡x−cos⁡x\sin x-\cos x from 00 to π/2\pi/2 gives 00, because the two pieces cancel exactly. Taking the absolute value of that result still gives 00, which is not the area. On a calculator paper, entering ∫0π/2∣sin⁡x−cos⁡x∣ dx\int_0^{\pi/2}\lvert\sin x-\cos x\rvert\,dx into the GDC handles the split for you.

Harder pairs of curves

For y=sin⁡xy=\sin x and y=cos⁡2xy=\cos 2x, rewrite cos⁡2x=1−2sin⁡2x\cos 2x=1-2\sin^2x to get a quadratic in sin⁡x\sin x:

2sin⁡2x+sin⁡x−1=0⟹(2sin⁡x−1)(sin⁡x+1)=02\sin^2x+\sin x-1=0\quad\Longrightarrow\quad(2\sin x-1)(\sin x+1)=0

This gives sin⁡x=12\sin x=\tfrac12 or sin⁡x=−1\sin x=-1. Keep every solution that lies in the given interval, then use test points and strip heights exactly as above.

Try the sine-and-cosine area question in AA HL Mock Exam, Set 1, Paper 1. Find every intersection first, then use a test point to decide which curve to subtract.

Answered by Revision Village IB Expert

Interested in diving deeper into this concept?

Explore More IB Mathematics Resources

Over 80% of IB students globally are experiencing the power of Revision Village