I am asked to prove that the following function is one-to-one.

I understand that the proof template for this is:

Suppose f(x) = f(y) ... then x = y.

So, is this sufficient?

Suppose . Then . Square both sides, and we have that . Therefore, is one-to-one.