# Substituting a value of sine function in a trigonometric equation

I am trying to really understand trigonometric equations and I've stumbled upon a rather confusing example. Solve the following equation:

$\sin x= 2|\sin x|+ {\sqrt{3}}\cos x$

First step is to define the absolute $\sin x$: $$|\sin x| = \begin{cases} \sin x & \sin x \in [0, 1]\\ -\sin x & \sin x \in [-1, 0) \end{cases}$$

Let's see what happens in the first case:
$$\sin x \in [0,1] \Rightarrow\, x \in {[2k{\pi}, (2k+1){\pi}]}$$ which means x is in the first or second quadrant.

Bringing everything to the right side:
$$\sin x+{\sqrt{3}}\cos x=0$$

Now we notice terms ${\sqrt{3}}$ with $\cos x$ and $1$ with $\sin x$ and do the following:
\begin{align*} \sin x+{\sqrt{3}}\cos x& =0 \quad /:2\\ \frac{1}{2}\sin x+{\frac{\sqrt{3}}{2}}\cos x& = 0 \end{align*}
Now, the goal is to try and substitute integer terms with trigonometric functions they are solutions to, in order to apply one of the trigonometric identities for solving the problem. Let's aim at the following formula: $\sin(x+y)=\sin x\cos y + \sin y\cos x$ .We have several options:

• $\frac {1}{2}$is value of $\cos$ for either $x=\frac {\pi}{3} + 2k\pi$ OR $x=\frac {5\pi}{3} + 2k\pi$. Of all of these angles, only $x=\frac {\pi}{3}$ falls under our domain.

• ${\frac {\sqrt{3}}{2}}$is value of $\sin$ for either $x=\frac {\pi}{3} + 2k\pi$ OR $x=\frac {2\pi}{3} + 2k\pi$. Out of all of these angles, there are two of them that fall under our domain. $x=\frac {\pi}{3}$ and $x=\frac {2\pi}{3}$.

This is where the problem is. I feel I should consider both of the $\sin$ values and solve two different versions of the equation. The first one is by substituting $\frac {1}{2} = \cos\frac {\pi}{3}$ and $\frac {\sqrt{3}}{2} = \sin\frac {\pi}{3}$, which is easily solved using the identity mentioned above. The second case is when substituting $\frac {\sqrt{3}}{2} = \sin\frac {2\pi}{3}$. This does not conform to any trig. identity. I tried treating $\sin\frac {2\pi}{3}$ as $\sin$ of double angle, but ended up at the beginning. I typed this equation into Symbolab and examined their step-by-step solution. It turns out that at some point they divided the equation with $\cos x$. Even when $\cos x$ is definitely not zero, I was taught dividing a trigonometric equation with anyting other than integers was a risky move very likely to result in a loss of solutions. So, my questions are:

Should you just ignore possible angles that won't make you a simple trigonometric identity?
Can you divide trigonometric equation with some trigonometric function and when?

I hope I explained myself clearly enough. Thank you in advance.

• Type \sin x in math mode to produce $\sin x$. Jun 25, 2015 at 9:08

For simplicity, let's find the solutions in $[0,2\pi)$.

1) If $\sin x\ge0$, we get $\sin x=2\sin x+\sqrt{3}\cos x$, which yields $-\sin x=\sqrt{3}\cos x$.

$\hspace{.2 in}$Dividing by $-\cos x$ gives $\tan x=-\sqrt{3}$, so $x=\pi-\frac{\pi}{3}=\color{red}{\frac{2\pi}{3}}$

$\hspace{.2 in}$(since $\sin x>0, \tan x<0\implies x$ is in Quadrant II, with reference angle $\frac{\pi}{3})$.

2) If $\sin x<0$, we get $\sin x=-2\sin x+\sqrt{3}\cos x$, which yields $3\sin x=\sqrt{3}\cos x$.

$\hspace{.2 in}$Dividing by $3\cos x$ gives $\tan x=\frac{1}{\sqrt{3}}$, so $x=\pi+\frac{\pi}{6}=\color{red}{\frac{7\pi}{6}}$

$\hspace{.2 in}$(since $\sin x<0, \tan x>0\implies x$ is in Quadrant III, with reference angle $\frac{\pi}{6})$.

Hint:

note that if $y=\dfrac{2 \pi}{3}$ than $\cos y = -\dfrac{1}{2}$, so you cannot use $\dfrac{1}{2}\sin x + \dfrac{\sqrt{3}}{2}\cos x=0$.

the function $y = 2|\sin x| + \sqrt 3 \cos x$ is an even $2\pi$-periocic function and is also symmetric about $x = \pi.$ the equation $$\sin x = 2|\sin x| + \sqrt 3 \cos x = \begin{cases} 2\sin x + \sqrt 3 \cos x & \text{ if } 0 \le x \le \pi \\ -2\sin x + \sqrt 3 \cos x & \text{ if } \pi \le x \le 2\pi \\\end{cases}$$ which is equivalent to $$\tan x = \begin{cases} 1/\sqrt 3 & \text{ if } 0 \le x \le \pi \\ \sqrt 3 & \text{ if } \pi \le x \le 2\pi \\\end{cases}$$

there are two roots $x = \pi/6, 5\pi/3$ in the interval $0 \le x \le 2\pi.$

$$|\sin x|=\cdots=\sin\left(x-\dfrac\pi3\right)$$

and $$\sin\left(x-\dfrac\pi3\right)\ge0$$

$$\implies2k\pi\le\left(x-\dfrac\pi3\right)\le(2k+1)\pi\iff2k\pi+\dfrac\pi3\le x\le(2k+1)\pi+\dfrac\pi3$$

Case $\#1:$ If $\sin x\ge0,2k\pi\le x\le(2k+1)\pi$

$\sin x=\sin\left(x-\dfrac\pi3\right)$

$\implies x=n\pi+(-1)^n\left(x-\dfrac\pi3\right)$ where $n$ is any integer

If $n$ is even $=2m$(say)

$x=2m\pi+\left(x-\dfrac\pi3\right)\implies 2m\pi=\dfrac\pi3$ which is impossible

If $n$ is odd $=2m+1$(say)

$x=(2m+1)\pi-\left(x-\dfrac\pi3\right)\iff x=m\pi+\dfrac\pi6$

As $2k\pi\le x\le(2k+1)\pi,x=2r\pi+\dfrac\pi6$ where $r$ is any integer

Case $\#2:$ If $\sin x<0,(2k+1)\pi<x<(2k+2)\pi$

Can be dealt similarly.