Okay, there's this simple equation I've been looking into for a while and I don't know why one way of solving it is not correct. See:
$$\sin(2x) + 3\cos(2x) = 0$$
Well, the most obvious would be to rearrange to get:
$$\tan(2x)=-3$$
and get the solutions from there, and this works. The problem comes in when another method is used:
$$\sin(2x) + 3\cos(2x) = 0$$ $$\sin(2x) + \dfrac{3\sin(2x)}{\tan(2x)} = 0$$ $$\sin(2x)\left(1 + \dfrac{3}{\tan(2x)}\right) = 0$$
Resulting in $$\sin(2x) = 0\ or\ \tan(2x)=-3$$
I cannot find anything wrong with this method, except that the solutions that $\sin(2x)$ give are not correct when I tested the results back in the original equation. There's probably something I'm overlooking, but I have to idea what. Could anyone explain? I tried to find an explanation to this on here and on the web but have failed so far.
[Of course, there is also the method of equating $\sin(2x) + 3\cos(2x) = \alpha\sin(x+\mu) = 0$, which confirms the first method, but I really want to know whether there's like an assumption or something I'm ignoring without knowing somewhere in the second method.]
EDIT: Thank you for the answers, but mentioning that dividing by zero is not possible it immediately made me think of something of the like of:
$$2x^2 - 5x = 0$$
If we take $x(2x - 5) = 0$, we get $x = 2.5$ or $x = 0$ which are both correct, but if we go with the 'first method' we get: $$2x^2 = 5x$$ $$2x = 5$$ $$x = 2.5$$ which ignores the existing solution $x = 0$.
reEDIT: Maybe what I'm trying to find is whether there is some way where I can 'see' that using this or that method will not be suitable, so I don't have to go back and reject excess solutions which are not valid?