I'm given this trigonometric equation, $$\tan x+\tan 2x=1-\tan x\tan 2x$$ I rewrote it as $$\dfrac{\tan x+\tan 2x}{1-\tan x\cdot\tan 2x}=1$$ Using the identity, $$\tan (A+B)=\dfrac{\tan A+\tan B}{1-\tan A\cdot\tan B}$$ I simplified my equation as $$\tan (x+2x)=1$$ which implies $$3x=\dfrac{\pi}{4}+n\pi$$ So, $$x=\dfrac{\pi}{12}+n\cdot\dfrac{\pi}{3}$$ Where, $n$ is an integer.
However, when $n=5$, $\tan (2x)$ is undefined. This is causing a problem. WolframAlpha gave solutions which avoids my case. How do I come to the solution which WolframAlpha gives?
i would use that $$\tan(2x)=\frac{2\tan(x)}{1-\tan^2(x)}$$ Then you will get
$$\tan(x)+\frac{2\tan(x)}{1-\tan^2(x)}=1-\frac{2\tan^2(x)}{1-\tan^2(x)}$$
now substitute $\tan(x)=t$