Suppose $f:[-1, 1]\rightarrow\mathbb{R}$ is a polynomial. I am curious what the minimal degree of $f$ can be such that for $0<a<b<1$, $f$ satisfies the following two properties:
1) $\forall x\in[-a, a], ~~~f(x)\in[1-\varepsilon, 1+\varepsilon]$
2) $\forall x\in[-1, -b]\cup[b,1]$, $~~~|f(x)|\leq\varepsilon$
How does the minimal degree depend on $a, b$ and $\varepsilon$?