I just found it comical that rpenner and others felt compelled to point out that 1 does not in fact equal 2.
I think it's useful and interesting to point out exactly why fake proofs like the one in the OP don't work. Someone who isn't already familiar with basic logic could learn a lot about it that way.
But in the spirit of trolling:
so now you've broken the square function's inverse??
Like you're probably aware, the square function defined over the reals isn't bijective and thus doesn't have an inverse.
$$-1^2 = 1$$
Actually in mathematics and most programming languages I know, the power operator binds more tightly than the negative sign, so $$-1^2 = -1$$. Problem solved!