The generalized power rule says that if $g(x)$ is a function of $x$ and $y=[g(x)]^{n}$ for any real number $n,$ then
$$\frac{d y}{d x}=n \cdot[g(x)]^{n-1} \cdot g^{\prime}(x)$$
Explain why the generalized power rule is a consequence of the chain rule and the power rule.