I've asked a previous question about math habits that would give a more organized and less cluttered mind when doing mathematics. I asked it because I feel like I'm not making the most out of my time when doing math problems (there are some really good answers there for those who share my problem). This question is a more specific follow up on that earlier question, specifically about the problem of "trivial mistakes"
Whenever I'm doing derivations on some new problem I'm not experienced with, those derivations always contain certain elementary steps that I've been doing for years. But because I've been doing it for years, it feels like they are so easy, that I'm basically doing them on "auto-pilot".
The problem.
As a result, I'm making the most silly of mistakes sometimes: clumsy mistakes like:
$$\begin{array}{rcll} \text{WRONG: } & e^{f(x)}e^{g(x)}=e^{f(x)g(x)} \\ \text{WRONG: } & f(x)+g(x)=0 \implies f(x)=g(x)\end{array}$$
And earlier today I was solving the general linear first-order ODE: $$\frac{\partial x}{\partial t}+f(t)x(t)+g(t)=0$$
I tried to simplify it by using the chain rule in reverse: $$\frac{\partial (e^{F(t)}x(t))}{\partial t}=f(t)e^{F(t)}x(t)+e^{F(t)}\frac{\partial x}{\partial t}$$ However, in order to substitute this chain rule in the ODE, we have to do something with the $e^{F(t)}$.
In some bizarre mental quirk, I applied both approaches at the same time, by both dividing the chain rule by $e^{F(t)}$, and multiplying the ODE with it when doing the substitution, so that I got to: $$\text{WRONG: } e^{-F(t)}\frac{\partial (e^{F(t)}x(t))}{\partial t}+e^{F(t)}g(t)=0$$
How do we learn to stop making such mistakes?
I don't think the solution is to just "pay more attention", because while that would in principle be good, it is not a very "actionable" principle.
Of course we should always double-check answers, but this is time-inefficient and certainly not fool-proof.
Instead, I'm wondering if there are some specific (mental or practical) habits that people can develop (or that you've already developed) in order to stop making these clumsy unnecessary mistakes?