I know there's (kind of?) some controversy as to what $g^2(x)$ means — it could be $g(g(x))$, or $(g(x))^2$ or even $g''(x)$. I'm taking a calculus course and assumed that $g^2(x)$ meant $g''(x)$, but it turns out that the solution saw this as $(g(x))^2$.
Here's the problem if it will clarify things:
If $P(x) = g^2(x)$, then $P'(x)$ equals...
(of course, there's a table given with values of g and g' accompanying the problem and answer choices, but I'm not including them here because of copyright.)
So in general, is there any way I can determine which one exactly the problem means when $g^2(x)$ appears?
If it means $g''(x) $, you should write $$g^{(2)}(x) $$
If it is $g(x).g (x) $, you will write $$(g(x))^2$$
so $g^2 (x) $ means $$g (g (x)) $$