If we apply chain rule to $\frac{d}{dx} (y^4)$, because there's a function within a function.
Why do we only apply the product rule on $\frac{d}{dx} (x^2y)$?
If we apply chain rule to $\frac{d}{dx} (y^4)$, because there's a function within a function.
Why do we only apply the product rule on $\frac{d}{dx} (x^2y)$?
The first function can be with the following functions: $$ f(x) = x^4$$
$$ g(y) = y$$
As:
$$ f( g) = y^4$$
Hence,
$$ \frac{df(g)}{dx} = \frac{df}{dx}|_{g(y)} \cdot \frac{dg(y)}{dx}$$
Then,
$$ \frac{df(g)}{dx} = 4y^3 \cdot \frac{dy}{dx}$$
The other example:
$$ \frac{d}{dx}(x^2 y) = y \frac{d}{dx} x^2 + x^2 \frac{d}{dx} y $$
Since
$$ \frac{d}{dx} y = \frac{dy}{dx}$$
There is no reason to chain rule.