Furthermore, the title of this thread indicates some misunderstanding, and has nothing to do with function products and pertains to function composition only when f is some kind of exponential function.
"f to the g" would be written as follows:
[tex]f^{g(x)}[/tex]