I've run into a problem dealing with notation. Say I have two functions:
$f(x)=x+2$
$g(x)=\frac x3$
From basic function composition, we know that $f$ of $g$ is:
$f(g(x))=\frac x3 +2$
However, to find $f$ as a function of $g$, we find that $x=3g(x)$ and substitute:
$f(g(x))=3g(x)+2$
Thus we see that two different ideas share the same notation. Am I making a mistake in the notation of these ideas? If not, then is there some way to differentiate the two? I ran across this problem when dealing with parametric equations and indicating "y(t) as a function of x(t)" as y(x(t)), which could also mean "y of x(t)". Any help would be greatly appreciated.
The difference is that when saying "$f$ as a function of $g$", the variable becomes $g(x)$. You can think of this as making a change of variable $y=g(x)$. The composition of functions is another thing entirely, namely, applying two functions in succession.