If I find the relative rate of change for
$y=x^4$
when $x,y$ are differentiable functions of $t$, I will get
$\frac{\mathrm{d} y }{\mathrm{d} t} = \frac{\mathrm{d} (x^4) }{\mathrm{d} t} =4x^3 \frac{\mathrm{d} x }{\mathrm{d} t}$
I'm confused about the $\frac{\mathrm{d} x }{\mathrm{d} t}$ part.
If, for example, $sin(x)$ is a function of $x$ then finding $\frac{\mathrm{d} (sin(x)) }{\mathrm{d} x}$ equals to $cos(x)\frac{\mathrm{d} x }{\mathrm{d} x}$ which equals to $cos(x)$
And in $y=x^4$ if $x$ is a function of $t$, then why doesn't
$\frac{\mathrm{d} x^4 }{\mathrm{d} t} = 4x^3 \frac{\mathrm{d} t }{\mathrm{d} t} $?
From the chain rule, we have: $$\frac {du}{dt}=\frac {du}{dv} \cdot \frac {dv}{dt}$$ Hence, $$\frac {dy}{dt}=\frac {d(x^4)}{dt}=\frac {d(x^4)}{dx} \cdot \frac {dx}{dt}=4x^3 \frac {dx}{dt}$$
In the case of $\frac {d(\sin x)}{dx}=\cos x$, chain rule need not be applied, and even if it is, will yield the same result since $\frac {dx}{dx}=1$.