# How do you solve the following trigonometric equation?

How do you solve the following trigonometric equation? $$\tan x - 1 = -\frac{1}{\sqrt{3}} + \frac{1}{\sqrt{3}} \cot x.$$

-

Perhaps the easiest approach is to let $u=\tan x$ and use the fact that $\cot x=\frac1{\tan x}$ to rewrite it as $$u-1=-\frac1{\sqrt3}+\frac1{\sqrt3u}=\frac{1-u}{\sqrt3u}\;.$$ Now solve for $u$; at that point you'll have $\tan x$, and the rest is plain sailing.
We have $\displaystyle \cot(x) = \frac1{\tan(x)}$. Hence, the equation gives us $\displaystyle \tan(x) - 1 = - \frac1{\sqrt{3}} + \frac1{\sqrt{3}} \frac1{\tan(x)}$. Multiplying by $\tan(x)$, we get that $$\tan^2(x) - \tan(x) = - \frac{\tan(x)}{\sqrt{3}} + \frac1{\sqrt{3}}$$ Setting $\displaystyle m = \tan(x)$, we get the quadratic, $$m^2 + \left( \frac1{\sqrt{3}} - 1\right)m - \frac1{\sqrt{3}} = 0$$ which gives us that $$m = \frac{-\left( \frac1{\sqrt{3}} - 1\right) \pm \sqrt{\left(\frac1{\sqrt{3}} - 1\right)^2 + \frac4{\sqrt{3}}}}{2} = \frac{-\left( \frac1{\sqrt{3}} - 1\right) \pm \left(\frac1{\sqrt{3}} + 1\right)}{2} = -\frac1{\sqrt{3}}, 1$$
$\displaystyle m = 1$ gives us $\displaystyle x = n \pi + \frac{\pi}{4}$ while $\displaystyle m = - \frac1{\sqrt{3}}$ gives us $\displaystyle x = n \pi - \frac{\pi}{6}$ where $n \in \mathbb{Z}$.