Find all the real-number roots of each equation. In each case, give an exact expression for the root and also (where appropriate) a calculator approximation rounded to three decimal places.
(a) $\left(\log _{10} x\right)^{2}=2 \log _{10} x$
(b) $\log _{10}\left(x^{2}\right)=2 \log _{10} x$