How can you take the derivative
$$\frac{d}{dx}(y^2)$$
I don't understand how the chain rule applies here. Someone told me that the chain rule applies here because $y$ can be expressed in some type of $x$ expression, but I still don't get it.
So, I do understand how to apply the chain rule, I just don't understand why it applies in this situation.
I checked this video.
Notice that by the Chain Rule you have $g(f(x)) = g'(f(x))f'(x)$. Now assuming $y(x)$ is a function of $x$ we have that
$$\frac{d}{dx} (y^2) = 2y\ \frac{dy}{dx} $$
Take $g(y) = y^2$ and $y = f(x)$.