# find the intersection of $y=cosx$ and $y=sin2x$

I need to find the intersection of these two functions $y = \cos x$ and $y=\sin 2x$ in the interval between $0$ and $\pi$, specifically in the point highlighted in red in the picture below:

I tried equating the functions: $$\cos x = \sin 2x \\ \cos x = 2\sin x\cos x \\ 2\sin x = \frac{\cos x}{\cos x} \\ \sin x = \frac{1}{2} \\ \cos x = 1$$ The answer has to be in radians but when I convert the results to radians it doesn't make sense visually at all: $$\sin x = \frac{\pi}{6} \\ \cos x = 0$$

I wonder if my strategy is correct or the way I solved the equation is not correct.

• You had not to simolify by $\cos(x)$. Nov 10, 2016 at 7:36

$$\cos(x)=\sin(2x)$$

$$\Leftrightarrow 2\sin(x)\cos(x)-\cos(x)=0$$

$$\Leftrightarrow \cos(x)(2\sin(x)-1)=0$$

$$\Leftrightarrow \cos(x)=0 ~~~\sin(x)=\frac{1}{2}$$

$$\Leftrightarrow x=\pm\frac{\pi}{2}+2\pi k ~~~ x=\pi-\frac{\pi}{6}+2k\pi$$

where $k \in Z$

Picture of intersections:

• thank you! But in your answer you specify the value of $x$ for $sin(x)$. However I need to find $sin(2x)$. So in this case shouldn't $x_1 = \frac{\pi}{12} \pm {\pi}k$ and $x_2 = \frac{5\pi}{12} \pm {\pi}k$? I mean $x_1$ and $x_2$ for $y=sin(2x)$
– Yos
Nov 10, 2016 at 8:06
• My bad I didn't see your domain restriction. Nov 10, 2016 at 8:09
• ok, so is my calculation of $x_1$ and $x_2$ correct? Also the graph picture you shared is really nice. Is it a free resource?
– Yos
Nov 10, 2016 at 8:17
• yes search up Desmos on google! @Yos Nov 10, 2016 at 21:26

We have

$\cos(x)=\sin(2x) \iff$

$\cos(x)(1-2\sin(x))=0 \iff$

$\cos(x)=0\;$ or $\;\sin(x)=\frac{1}{2} \iff$

$$x=\frac{\pi}{2}+k\pi$$ or

$$x=\frac{\pi}{6}+2k\pi$$ or

$$x=\pi-\frac{\pi}{6}+2k\pi.$$

So, in $[0,\pi]$, the solutions are

$$S=\{\frac{\pi}{6},\frac{\pi}{2},\frac{5\pi}{6}\}.$$

You start of correctly, but I do not know from where you get that $\cos x =1$. From the step $$\cos x = 2 \sin x \cos x$$ you can deduce that either $cos x = 0$ or $2 \sin x = 1$ (these are the only two possibilities for this equation. Can you see this?).

Now you can solve each of these cases. $\cos x = 0$ gives $x = \pi/2 + n \pi$, where $n$ is an integer. The only solution that is in your range is $x = \pi/2$.

The second possibility $\sin x = 1/2$ gives the solution $x = \pi/6 + 2 n \pi$ or $x = 5 \pi /6 + 2n\pi$ (to see this, draw the unit circle). The only solutions that are in your range are $x = \pi /6$ and $x = 5 \pi / 6$.

Hence the solutions are $x = \pi/2 , x= \pi /6$ or $x = 5 \pi /6$.