I have a Heaviside smooth function that defined as $$H_{\epsilon}=\frac {1}{2} [1+\frac {2}{\pi} \arctan(\frac {x}{\epsilon})]$$

I want to use polynominal to approximate the Heaviside function. Could you suggest to me a solution? Thanks
UPDATE: This is Bombyx mori result in blue line and my expected result is red line

Here is a solution: $$ \frac{1}{2}+\frac{1}{\pi}(\frac{x}{\epsilon}-\frac{x^3}{3\epsilon^{3}}+\frac{x^{5}}{5\epsilon^5}\cdots) $$