Prove that f(x)=x2 decreases on the interval (,0] and increases on the interval [0,).

Problem: 

Prove that f(x)=x2 decreases on the interval (,0] and increases on the interval [0,).

Answer: 

It is true that f(x)=x2 decreases on the interval (,0] and increases on the interval [0,).