Let $f: \mathbb{R}^n \to (0, \infty)$ and $g: \mathbb{R}^n \to \mathbb{R}$ be totally differentiable functions. Prove that $$f(x)^{g(x)}$$ is also totally differentiable.
I wanted to use the chain rule. I let $h:= f^g$. I wanted to write $h$ as a composition, but I'm not sure of what. I think I will need the function $k: \mathbb{R} \to (0, \infty) : x \mapsto x^x$. But how can I write $h$ as a suitable composition of differentiable functions?
What is the domain and codomain of the function $f^g$?