\documentclass[preview,border=1pt]{standalone}
\usepackage{amsmath,amssymb,amsthm}


\begin{document}
$f(x)g(y)$ is correct; $f\left(x\right)g\left(y\right)$ is not.
\end{document}