TITLE: Reaching upon $9=1$ while solving $x$ for $3\tan{(x-15^{\circ})}=\tan{(x+15^{\circ})}$
QUESTION [6 upvotes]: $x$ for $3\tan{(x-15^{\circ})}=\tan{(x+15^{\circ})}$ 

Substituting $y=x+45^{\circ}$, we get
$$3\tan{(y-60^{\circ})}=\tan{(y-30^{\circ})}$$
$$3\frac{\tan y - \sqrt3}{1+\sqrt3\tan y}=\frac{\tan y - 1/\sqrt3}{1+1/\sqrt3\cdot\tan y}$$ 
$$3(\tan ^2 y-3)=3\tan ^2-1$$ 
$$9=1$$ 
The solution provided by the book $x=n\pi  + \pi/4$ fits, so why did i get $9=1$?

REPLY [4 votes]: Hint:
Set $\tan y=\dfrac1a$
$$\dfrac{3(1-\sqrt3a)}{a+\sqrt3}=\dfrac{\sqrt3-a}{\sqrt3a+1}$$
$$\iff3-a^2=3(1-3a^2)\iff a=0$$