If $3\sin x +5\cos x=5$, then prove that $5\sin x-3\cos x=3$ 
If $3\sin x +5\cos x=5$ then prove that $5\sin x-3\cos x=3$

What my teacher did in solution was as follows
$$3\sin x +5\cos x=5 \tag1$$
$$3\sin x =5(1-\cos x) \tag2$$
$$3=\frac{5(1-\cos x)}{\sin x} \tag3$$
$$3=\frac{5\sin x}{(1+\cos x)} \tag4$$
$$5\sin x-3\cos x=3 \tag5$$
However this should not be true when $\sin x=0$, as division by zero is not defined; and also, if $\sin x=0$, then the expression we have to prove evaluates to $-3$. In other words question is incomplete but my teacher denied it.
Am I correct in my reasoning?

If $c=\cos x$ and $s=\sin x$, then you know that$$\left\{\begin{array}{l}3s+5c=5\\c^2+s^2=1.\end{array}\right.$$This system is easy to solve. One of the solutions is $(c,s)=(1,0)$ and the other one is $(c,s)=\left(\frac 8{17},\frac{15}{17}\right)$. In the first case (which is the case that you get when $x=0$), $5s-3c=-3$; in the second case, $5s-3c=3$. So, you are right; some hypothesis is missing. But this also shows that, other than the case in which $x$ is an integer multiple of $2\pi$, the statement is true.
