It seems the $k$th derivative of the function $x \mapsto \sin^n x$ can be expressed as $n \ \sin^{n - k} x$ times a polynomial with only even or only odd powers of $\cos x$ (depending on the parity of $k$), with polynomials in $n$ as coefficients, for natural $k$ and integer $n$ and complex $x$.
The highest term is $n^{k-1} \cos^k x$; the ranks of the other polynomial-in-$n$ coefficients for $\cos^{k-2j} x$ seem to be (maximally) $(k-1-j)$.
$$ \frac{\mathrm{d}^0}{\mathrm{d}x^0} \sin^n x = n \ \sin^{n - 0} x \ \left(n^{-1} \cos^0 x\right)\text{ for }n \neq 0 $$ $$ \frac{\mathrm{d}^1}{\mathrm{d}x^1} \sin^n x = n \ \sin^{n - 1} x \ \left(n^0 \cos x\right) $$ $$ \frac{\mathrm{d}^2}{\mathrm{d}x^2} \sin^n x = n \ \sin^{n - 2} x \ \left(n^1 \cos^2 x - 1\right) $$ $$ \frac{\mathrm{d}^3}{\mathrm{d}x^3} \sin^n x = n \ \sin^{n - 3} x \ \left(n^2 \cos^3 x + (-3 n + 2) \cos x\right) $$ $$ \frac{\mathrm{d}^4}{\mathrm{d}x^4} \sin^n x = n \ \sin^{n - 4} x \ \left(n^3 \cos^4 x + (-6 n^2 + 8 n - 4) \cos^2 x + (3 n - 2)\right) $$ $$ \frac{\mathrm{d}^5}{\mathrm{d}x^5} \sin^n x = n \ \sin^{n - 5} x $$ $$ \left(n^4 \cos^5 x + (-10 n^3 + 20 n^2 - 20 n + 8) \cos^3 x + (15 n^2 - 30 n + 16) \cos x\right) $$ $$ \frac{\mathrm{d}^6}{\mathrm{d}x^6} \sin^n x = n \ \sin^{n - 6} x $$ $$\left(n^5 \cos^6 x + (-15 n^4 + 40 n^3 - 60 n^2 + 48 n - 16) \cos^4 x + (45 n^3 - 150 n^2 + 196 n - 88) \cos^2 x + (-15 n^2 + 30 n - 16)\right) $$
Is there a general rule to determine the polynomial-in-$n$ coefficients?
Edit:
The OEIS sequence A133341 seems to determine the second polynomial-in-$n$ coefficients (when one alternates the signs, and discards the italic values):
- 1,
- 2,
- 1, 3,
- 3, 2, 4,
- 6, 8, 4, 5,
- 10, 20, 20, 8, 6,
- 15, 40, 60, 48, 16, 7,
- 21, 70, 140, 168, 112, 32, 8,
- 28, 112, 280, 448, 448, 256, 64, 9,
- 36, 168, 504, 1008, 1344, 1152, 576, 128, 10,
- 45, 240, 840, 2016, 3360, 3840, 2880, 1280, 256, …