As part of a bigger proof, I am trying to prove the inequality:
$$\frac{ab}{a^2 + b^2}< \frac{1}{2}$$
Is the following proving method correct?
$$\frac{ab}{(a^2)+(b^2)} <\frac{1}{2}$$ $$2ab < (a^2 + b^2)$$ $$0 <(a-b)^2$$ $a \neq b$ thus $a - b \neq 0$ and every number squared is not negative thus $(a-b)^2$ is positive thus bigger than zero
My concern with this proof is that I am not sure if I am allowed to do operations on both sides before inequality is proven.
As Nelver's answer highlights, you've technically proven the converse of what we want (i.e. the opposite implication). That said, this is something that is done a lot of the time by many people and in some sense, it's a more natural approach, but you have to be careful about how you write it up. One thing you can do is to say that all of the steps you've taken are reversible.
The other way to write this, which is more common, is to use equivalences (if and only ifs). So you could write \begin{align*} \frac{ab}{a^2+b^2}<\frac{1}{2} \iff 2ab<a^2+b^2 \iff 0<(a-b)^2 \end{align*} which is true since $a\neq b$. The $\iff$ is saying that the statement holds if and only if the statement on the right holds.