This is going to seem like a highly obscure question because I've likely missed something fairly obvious. Apologies in advance.
Consider the following equations
$$2k+2mk=k$$ $$k+3mk=mk$$
which must be valid for all real values of $k$.
Now obviously the two equations are equivalent and common sense would say that there is only one value of m that satisfies these equations, namely $m=-\frac{1}{2}$, which can be obtained by combining the two equations using addition or simply solving one equation.
However, if I divide equation 1 by equation 2, or vice versa, I end up with a quadratic which has solutions $m=-\frac{1}{2}, m=1$. Clearly, the latter is incorrect.
Could someone please clarify why these equations (or any equations two equations of the same sort) cannot be divided? Addition is possible because you're doing the same thing to both sides of whichever equation when you combine them. Should division not also work, as the ratios obtained would be equal?
The topic area is linear transformations, but I'm looking for a more general answer.
They are indeed equivalent, so you can ignore the second equation, and focus on just the first one:
$$ 2k+2mk=k \quad\iff\quad 2mk+2k-k=0 \quad\iff\quad (2m+1)k=0 $$
The latter can only hold true for all values of $\,k\,$ iff the LHS is the zero polynomial i.e.$\,2m+1=0\,$.
Because, in general, "conflating" several equations into one is prone to introducing extraneous solutions. Simple example, similar to OP's case, where of course the only actual solution is $\,x=1\,$:
$$ \begin{cases} \begin{align} x &= 1 \\ 2x &= x+1 \end{align} \end{cases} \;\;\implies\;\; x \cdot 2 x = 1 \cdot (x+1) \;\;\implies\;\; 2x^2 - x - 1 = 0 \;\;\implies\;\; x \in \{\color{red}{-\frac{1}{2}}, 1\} $$