Why does cancelling by $\sin x$ when solving $4\tan x = 5\sin x$ for $0\leq x < 2\pi $ miss solutions? So the solution to the problem is:
$$4 \tan x = 5 \sin x$$
$$4 \frac{\sin x}{\cos x} = 5 \sin x$$
$$4 \sin x = 5 \sin x \cos x$$
So, either $\sin x = 0$ or $\cos x = 4/5$. I'm fine with the logic of this. But is there some deeper reason why cancelling the $\sin x$ straight away loses solutions?

We can’t cancel terms on both sides without knowing whether it is zero.
Just like solving
$x^2=x \Leftrightarrow  x^2-x=0 \Leftrightarrow x(x-1)=0 \Leftrightarrow x=0 \textrm{ or }x=1, \tag*{} $
we shall miss the solution $x=0.$
Back to our equation, we have
$$
\begin{aligned}
& 4 \tan x=5 \sin x \\
\Leftrightarrow \quad  & \frac{4 \sin x}{\cos x}=5 \sin x \\
\Leftrightarrow \quad& 4 \sin x=5 \sin x \cos x  \\
\Leftrightarrow \quad& \sin x(5 \cos x-4)=0 \\
\Leftrightarrow \quad& \sin x=0 \text { or } 5 \cos x-4=0 \\
\Leftrightarrow \quad& x=n \pi \quad \text { or }\quad  \cos x=\frac{4}{5}\\
\Leftrightarrow  \quad & x=n \pi \quad  \textrm{ or } \quad  2 n \pi \pm \cos ^{-1}\left(\frac{4}{5}\right)
\end{aligned}
$$
where $n\in Z$.
If we cancel $\sin x$ on both sides, we shall miss the solutions $x=n\pi$.
