While learning the power rule, one thing popped up in my mind which is confusing me. We know what the power rule states :
$$\frac{\mathrm{d}}{\mathrm{d}x}(x^n) = nx^{n-1}$$ where $n$ is a real number.
But instead of $n$, if we have a trig function like $\sin(x)$, will the power rule still apply?
Eg. We have a function $y = x^{\sin(x)}$, and thus by the power rule;
$$\frac{dy}{dx} = sin(x)x^{sin(x)-1}$$.
Is this possible? Please tell me if even the function I wrote above really does exist or not.
I know this may seem a stupid question to many, but please help because I cannot find any explanation to this.

