How to find the MacLaurin series of $\frac{1}{1+e^x}$ Mathcad software gives me the answer as: $$ \frac{1}{1+e^x} = \frac{1}{2} -\frac{x}{4} +\frac{x^3}{48} -\frac{x^5}{480} +\cdots$$
I have no idea how it found that and i don't understand. What i did is expand $(1+e^x)^{-1} $ as in the binomial MacLaurin expansion. I want until the $x^4$ term. So what i found is the following:
$$ (1+e^x)^{-1} = 1 - e^x + e^{2x} + e^{3x} + e^{4x}+\cdots\tag1 $$
Then by expanding each $e^{nx}$ term individually:
$$ e^x = 1 + x + \frac{x^2}{2} + \frac{x^3}{6} + \frac{x^4}{24}+\cdots\tag2 $$
$$ e^{2x} = 1 + 2x + 2x^2 + \frac{3x^3}{2} + \frac{2x^4}{3}+\cdots\tag3 $$
$$ e^{3x} = 1 + 3x + \frac{9x^2}{2} + \frac{9x^3}{2} + \frac{27x^4}{8}+\cdots\tag4 $$ 
$$ e^{4x} = 1 + 4x + 8x^2 + \frac{32x^3}{3} + \frac{32x^4}{3}+\cdots\tag5 $$
So substituting $(2),(3),(4),(5)$ into $(1)$ i get:
$$ (1+e^x)^{-1} = 1 +2x+5x^2+ \frac{22x^3}{3} + \frac{95x^4}{12} +\cdots$$
Which isn't the correct result. Am i not allowed to expand this series binomially? I've seen on this site that this is an asymptotic expansion. However, i don't know about these and i haven't been able to find much information on this matter to solve this. If someone could help me understand how to solve it and why my approach isn't correct, i would be VERY grateful. Thanks in advance.

Since you're just looking for the first few terms:
$$f(x)=\frac{1}{1+e^x} \implies f(0)=\frac 12$$
$$f'(x)=\frac{-e^x}{(1+e^x)^2} \implies f'(0)=-\frac 14$$
$$f''(x)=\frac{-e^x}{(1+e^x)^2}+2\frac{e^{2x}}{(1+e^x)^3}\implies f''(0)=0$$
$$f'''(x)=f''(x)+4\frac{e^{2x}}{(1+e^x)^3}-3\times 2\frac{e^x}{(1+e^x)^4}\implies f'''(0)=\frac 18$$
You get:
$$\frac{1}{1+e^x}=\frac 1{2\times 0!} -\frac 1{4\times 1!} x+\frac 1{8\times 3!}x^3+\mathcal O  (x^5)$$
$$\frac{1}{1+e^x}=\frac 1{2} -\frac 1{4} x+\frac 1{48}x^3+ \mathcal O  (x^5)$$
