When does squaring the square root of a function give me the absolute value of the function

47 Views Asked by At

Why does $[\sqrt{f(x)}]^2=f(x) $ , but $\sqrt{g^2(x)}=|g(x)|$ ?