Solve $\dfrac{x+25}{x-5}=\dfrac{2x+75}{2x-15}$
$\Rightarrow \dfrac{(x-5)+30}{x-5}=\dfrac{(2x-15)+90}{2x-15} \ \ \ ...(1)$
$\Rightarrow 1+\dfrac{30}{x-5}=1+\dfrac{90}{2x-15}\ \ \ ...(2)$
$\Rightarrow \dfrac{30}{x-5}=\dfrac{90}{2x-15}\ \ \ ...(3)$
$\Rightarrow 3(2x-15)=9(x-5)\ \ \ ...(4)$
$\Rightarrow 6x-45=9x-45\ \ \ ...(5)$
$\Rightarrow 6x=9x\ \ \ ...(6)$
$\Rightarrow 2x=3x\ \ \ ...(7)$
So the answer becomes $3x-2x=0 \Rightarrow x=0$ which works in the original equation. My question is if I divide $2x=3x$ by $x$, I get $2=3$ which is not valid. Why can't I divide by $x$? Is it because for $x=0$, $\frac{x}{x}$ is not defined and hence it gives $2=3$?
And if that is the case, then why is it in $(1)$, $\frac{x-5}{x-5}=1$ is valid? What if $x=5$, then wouldn't this fraction become undefined as well? I'm confused why in this case the variable $x$ can be divided in the beginning but at $(7)$ it doesn't work. Thanks for helping.