I did this integral:

integral(e^x / (1+e^x)^2, x,0,1)

I approached it by expanding denominator and then simplifying. How comes that gives erroneous error.

Ive got e^x / (1+e^x)^2 = e^x + 1/2x - e^-x

then upon integration, taking limits, ive got

e-1/e+1/2