Suppose I have a generic polynomial:
$$f(x)=a_nx^n+a_{n-1}x^{n-1}+\dots+a_2x^2+a_1x+a_0$$
If I continually differentiate $f(x)$, when will it end up as $f^{(z)}(x)=0$?
For example, given $f(x)=16x^3-x^2-3x+10$:
$$f'(x)=48x^2-2x-3\\f''(x)=96x-2\\f'''(x)=96\\f''''(x)=\color{red}{0}$$
It ends up as $f^{(4)}=0$.
I know that for the sine function this is not the case:
$$f(x)=\sin(x)\\f'(x)=\cos(x)\\f''(x)=-\sin(x)\\f'''(x)=-\cos(x)\\f''''(x)=\sin(x)\\\text{loop!}$$
Edit: This isn't a polynomial. $x$ is not in the base, among other things.
And if I define
$$f(x)=\sin(x)=\frac{e^{-ix}}{2}+\frac{e^{ix}}{2}$$
Edit: Then we have sine still not as a polynomial. When differentiating it, we get:
$$f'(x)=\frac{1}{2}ie^{ix}\left(-1+e^{2ix}\right)\\f''(x)=\frac{1}{2}e^{-ix}\left(1+e^{2ix}\right)\\f'''(x)=-\frac{1}{2}ie^{-ix}\left(-1+e^{2ix}\right)\\f''''(x)=\frac{e^{-ix}}{2}+\frac{e^{ix}}{2}\\\text{loop 2.0}!$$
What is "special" about the sine function that it does not eventually differentiate to $0$?
As I investigated this question, I started with $i$ as a possible culprit:
$$f(x)=10ix\\f'(x)=10i\\f''(x)=0\\\text{nope}$$
$$f(x)=10x^i\\f'(x)=10ix^{-1+i}\\f''(x)=(-10-10i)x^{-2+i}\\f^{(13)}(x)=(2716272000 - 8395946000i)x^{-13+i}\\\text{aha!}$$
I found that using $i$ in the exponent led to a polynomial that did not eventually differentiate to $0$.
When do polynomials eventually differentiate to $f^{(z)}(x)=0$? Is using $i$ in the exponent the only case where it does not?
A finite number of derivatives get to constant zero if and only if the original really is a polynomial. For degree $n,$ the $n+1$ derivative gives zero.
This is also the test, given a sequence of integers, for detecting whether it is given by a polynomial; this is the very simplest application of "finite differences." If I begin with $$ 1, \; 8, \; 27, \; 64, \; 125, \; 216, \; 343, $$ first difference sequence $$ 7, \; 19, \; 37, \; 61, \; 91, \; 127, $$ second differences $$ 12, \; 18, \; 24, \; 30, \; 36, $$ third $$ 6, 6,6,6,6, $$ fourth $$ 0,0,0,0 $$