I am looking at the following question:
Is the set of all polynomials open in $C[-1,1]$?
I am not sure what functions are considered as polynomial.
For example, let $$f(x) = \frac{x}{1+|x|}.$$ Is $f$ a polynomial?
I think the answer is no as polynomial must be of the form $$\sum_{i=0}^n a_ix^i$$ where $n$ is a natural number. Since $f$ is not of the form given, therefore it is not a polynomial.
However, is $g(x) = |x|$ a polynomial? I think it is because $$g(x)=|x| = sgn(x)x$$ where $sgn(x)$ is the sign function of $x.$
To conclude, I post my question below:
How to show that a given function is a polynomial?
You gave the right definition of polynomial: it's $\sum_{k=0}^n{a_k x^k}$, where the $a_k$ are constant. $sgn(x)$ is not a constant, so your $g$ is not a polynomial.