In the question below, I would have to solve for an upper estimate using Weierstrass Approximation Theorem, however I am not familiar with the theorem, how do I go about solving it?
For any $\epsilon\in [0,1]$, find an upper estimate on the integer $n$ such that there exists an approximation of $f(x)=logx$ on $[1,2]$ by a polynomial $P(x)$ of degree $n$ such that $$\sup_{x\in[-1,1]}|P(x)-logx|\leq \epsilon.$$