This question has been asked before, but none of the answers seems to satisfy what I'm asking here ..
So, in class, we introduced set of polynomials as a set of sequences of real numbers, where only finitely many elements of a sequence are non zero. Now, I get it that, for example: $p(x) = x^2 + x + 50$ fits the definition. The sequence in definition is actually a sequence of coefficients of polynomial. So, in my example, $p = (50, 1, 2, 0, 0 ...)$, right ?
But how does $\sin(x)$ not fit the definition ? So my guess is that this set contains all the polynomials, but is larger than that. I suppose that condition that is missing is that polynomial is actually linear combination of elements of given sequence and power functions, in natural order $\dots$ Is that correct, or am I wrong? I might have misunderstood the definition or $\sin(x)$ is polynomial ?
We cannot write $\sin(X)$ as a finite combination of the indeterminate $X$ and coefficients $a_i$. The problem is that you probably know that you can express
$$ \sin(x) = \sum_{} ^{\infty} (-1)^{n+1} \frac{x^{2n+1}}{(2n+1)!}$$ In terms of its Taylor series. This is however an infinite series, furthermore it is actually the limit as $n \to \infty$ of the partial sum of the sequence of polynomial functions. That's a mouthful. Basically we need some more tools to properly express $\sin(x)$ as an "infinite polynomial". Notice that my quotes express that this is not the proper way to talk about it, the proper way to talk about Taylor series is in terms of limits of sequences of functions.
If you were to fit a polynomial of finite degree to $\sin(x)$ we get that this polynomial must, like $\sin(x)$ have infinitely many roots/zeros. We get a contradiction and therefore $\sin(x)$ cannot ever be expressed in terms of a polynomial of finite degree.
Interestingly, just like with Taylor series being infinite we can define so-called formal power series, which are a generalisation of polynomials as you know them, because they encode infinitely long sequences: https://en.wikipedia.org/wiki/Formal_power_series
Notice that we cannot substitute values into formal power series, or as my combinatorics professor calls them, fops.
Also see the definition on wikipedia https://en.wikipedia.org/wiki/Polynomial#Definition
"That is, a polynomial can either be zero or can be written as the sum of a finite number of non-zero terms."