"Show that the equation $\displaystyle sin^2x + 3 sin\ x\ cos\ x = 2$ can be written as a quadratic equation in $\displaystyle tan\ x$."

I can't see any way to get a quadratic equation with no other trig functions than $\displaystyle tan\ x$. I tried dividing throughout by $\displaystyle cos\ x$ etc. to generate $\displaystyle tan\ x$, but always ended up with a leftover sin or cos somewhere.

Could anyone give me some hints?