solve $\tan{x} = \tan{3x}$ I'm asked to solve $\tan{x} = \tan{3x}$
Here's my attempt: 
$$\tan{x} = \tan{3x}$$
$$\tan{x} = \tan{(x + 2x)}$$
$$\tan{x} = \frac{\tan{x} + \tan{2x}}{1-\tan{x}\tan{2x}}$$
Recall the identity:
$$\tan{2x} = \frac{2\tan{x}}{1-\tan^2{x}}$$
So then we have:
$$\tan{x} = \frac{\tan{x} + \frac{2\tan{x}}{1-\tan^2{x}}}{1-\tan{x}\frac{2\tan{x}}{1-\tan^2{x}}}$$
$$\tan{x} - \tan^2{(x)} \cdot \frac{2\tan{x}}{1-\tan^2{x}} = \tan{x} + \frac{2\tan{x}}{1-\tan^2{x}}$$
$$-\tan^2{(x)} \cdot \frac{2\tan{x}}{1-\tan^2{x}} = \frac{2\tan{x}}{1-\tan^2{x}}$$
$$-\tan^2{x} \cdot \frac{2\tan{x}}{1-\tan^2{x}} \cdot \frac{1-\tan^2{x}}{2\tan{x}} = 1$$
$$\tan^2{x} = -1$$
This does obviously not compute. Why is my way wrong and how can I go about solving it?

You can't obviously cancel in the last (or one before the last, in fact) step, thus you must have
$$\frac{2\tan x}{1-\tan^2x}=0\iff \tan x=0\iff x=k\pi\;,\;\;k\in\Bbb Z.$$
