A question on an assignment was similar to prove: $$2a^2-7ab+2b^2 \geq -3ab.$$ and my proof was: $$2a^2-4ab+2b^2\geq0$$ $$a^2-2ab+b^2\geq0$$ $$(a-b)^2\geq0$$ which is true.
However, my professor marked this as incorrect and the "correct" way to do it was:
Starting from $$(a-b)^2\geq0$$ we have: $$a^2-2ab+b^2\geq0$$ $$2a^2-4ab+2b^2\geq0$$ $$2a^2-7ab+2b^2 \geq -3ab.$$
His point was that if we start with a false statement we can also reduce it to a true statement (like $-5 =5$ we can square for $25 = 25$). I argued however that you can go back and forth between my operations (if and only if, which doesn't work for the $-5 =5$ example). He still didn't give me the marks for it. Which leads me to my questions:
Is my proof equally valid?
Do real mathematicians all write one way or the other when writing in a paper?
Your professor is correct. Whether or not it's clear "what you mean," in my teaching experience this mistake exposes an extremely common misconception about how proofs work. In a proof, you're trying to communicate how a logical conclusion follows from one or more logical premises. A proof is never just a sequence of assertions: it must communicate the logical relationships between those assertions. Whenever we get lazy and just write the assertions, the implicit logical relationship is that each one follows as a logical consequence from the assertions written before it. That's not what you want here, though: the premise needs to be something you know, and the conclusion needs to be what you're trying to show.
So, whenever you're tempted to write one assertion after another, think to yourself: is this assertion logically equivalent to the one before it? Does it imply the one before it? Is it implied by the one before it? The sooner you get in the habit of putting those relationships in writing, the better. As commenters have said, it can be as simple as putting little arrows between your statements that point from logical premise to logical conclusion.
(In "real" mathematical writing, you can write premises before conclusions or conclusions before premises, but it's always clear which is which. It should be that way in your writing, too.)