Looking at various examples online, some seem concrete, but some seem to not be explained properly.
Can $f(x)$ be substituted with $g(x)$? I know that $x$ cannot be substituted with $f(x)$, but $x$ can be substituted with $y$ or $a$ or $f(y)$ (assuming $y$ is a variable and $a$ is a constant).