Dear Uncle Colin,

I need to find the area between the graphs of $y=\sin(2x)$ and $y=\cos^2(x)$ in the interval $0 \le x \lt 2\pi$. I’ve found four solutions, but I think that means I need to do five separate integrals! Is there an easier way?

Trigonometric Expressions: Double Integration Of Ugly Sinusoids

Hi, TEDIOUS, and thanks for your message!

There are several clever ways to find the difference between your curves, other than doing five separate integrals. Let’s check the solutions first:

### Solutions

We can rewrite $\cos^2(x)$ as $\frac{1}{2}\left(\cos(2x) + 1\right)$

That means we need to solve $\sin(2x) = \frac{1}{2}\left(\cos(2x)+1\right)$, or $2\sin(2x) - \cos(2x) = 1$.

We can do a little harmonic substitution there and call the left-hand side $\sqrt{5}\sin(2x - \alpha)$, where $\tan(\alpha) = \frac{2}{\sqrt{5}}$

Our solutions satisfy $\sin(2x - \alpha) = \frac{1}{\sqrt{5}}$, which we can work out numerically as about $0.464$, $\piby2$, $3.605$ and $\frac{3}{2}\pi$. (I’m going to call $\beta \approx 0.464$ to save on writing later.

### Symmetry

Take the graph that you’ve clearly sketched, take the bit to the left of $\piby 2$ and move that to the other end so it ends up at $\frac{5}{2}\pi$. Now there are only four regions, and we haven’t changed the area at all.

Also, the area between $\piby2$ and $\pi + \beta$ is the same as that between $\frac{3}{2}\pi$ and $2\pi + \beta$; similarly, the two smaller areas are the same.

So, if we let $f(x) = \frac{1}{2}(2\sin(2x) - \cos(2x) - 1)$, we need to work out $I = \int_{\piby 2}^{\pi+\beta} -f(x) \dx + \int_{\pi+\beta}^{\frac{3}{2}\pi}f(x)\dx$ and double the result.

The indefinite integral of $f(x)$ is $F(x) = -\frac{1}{2}\left(\cos(2x) + \frac{1}{2}\sin(2x) + x\right) + C$, so our final area is $2\left( \left[ F(x) \right]_{\piby2}^{\pi+\beta} + \left[ F(x) \right]_{\pi+\beta}^{\frac{3}{2}\pi}\right)$.

We get something horrible involving $\sqrt{5}$s and $\arctan\left(\frac{1}{2}\right)$s that works out numerically as about 4.9273.

### Wolfram|Alpha

The Wolf tells me the exact answer is $2\left(2 + \arctan\left(\frac{1}{2}\right)\right)$, which suggests there’s a nicer method still! However, I don’t see it. Maybe one of the readers will!

Hope that helps,

- Uncle Colin

* Edited 2020-07-02 to correct a sign error. Thanks to @over_drawn for pointing it out!
{"ft_lang_label":"__label__en","ft_lang_prob":0.7721199,"math_prob":0.99996424,"size":2425,"snap":"2021-43-2021-49","text_gpt3_token_len":821,"char_repetition_ratio":0.11978521,"word_repetition_ratio":0.0,"special_character_ratio":0.348866,"punctuation_ratio":0.09090909,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.999977,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-10-20T04:16:45Z\",\"WARC-Record-ID\":\"<urn:uuid:3b0fd200-4c18-47af-ba61-a09b308f20d6>\",\"Content-Length\":\"10368\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:6fe8946f-21f0-4108-9567-4816e6e1e5e0>\",\"WARC-Concurrent-To\":\"<urn:uuid:a28c2918-9da9-4091-9d08-f96012cb228d>\",\"WARC-IP-Address\":\"23.83.135.74\",\"WARC-Target-URI\":\"https://www.flyingcoloursmaths.co.uk/ask-uncle-colin-the-area-between-two-curves/\",\"WARC-Payload-Digest\":\"sha1:YNFDN3P2LLD34GADHS7AQPU6RW4GUIIE\",\"WARC-Block-Digest\":\"sha1:5FYNGRUO6ZVIGPJPK6D3ASTYIN26ZHU2\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-43/CC-MAIN-2021-43_segments_1634323585302.56_warc_CC-MAIN-20211020024111-20211020054111-00226.warc.gz\"}"}