How do you integrate 1/(1+e^x) 11+ex using partial fractions?

1 Answer
Apr 18, 2016

int1/(1+e^x)dx = x-ln(1+e^x)+C11+exdx=xln(1+ex)+C

Explanation:

We use substitution to put the problem into a form where we can use partial fractions.

Let u = 1+e^x => du = e^xdxu=1+exdu=exdx. Then:

int1/(1+e^x)dx = inte^x/(e^x(1+e^x)dx11+exdx=exex(1+ex)dx

=int1/(u(u-1)du=1u(u1)du

Decomposing 1/(u(u-1))1u(u1), we find

1/(u(u-1)) = 1/(u-1) - 1/u1u(u1)=1u11u

=> int1/(u(u-1))du = int1/(u-1)du - int1/udu1u(u1)du=1u1du1udu

=ln|u-1|-ln|u|+C=ln|u1|ln|u|+C

=ln|e^x+1-1|-ln|e^x+1|+C=ln|ex+11|ln|ex+1|+C

=ln(e^x)-ln(e^x+1)+C=ln(ex)ln(ex+1)+C

=x-ln(e^x+1)+C=xln(ex+1)+C


Rather than using partial fractions, we can also solve this with a little algebraic manipulation and substitution.

int1/(1+e^x)dx = int(1+e^x-e^x)/(1+e^x)dx11+exdx=1+exex1+exdx

=int(1+e^x)/(1+e^x)dx - int e^x/(1+e^x)dx=1+ex1+exdxex1+exdx

=intdx-inte^x/(1+e^x)dx=dxex1+exdx

=x-inte^x/(1+e^x)dx=xex1+exdx

Focusing on the remaining integral, let u = (1+e^x) => du = e^xdxu=(1+ex)du=exdx

Substituting, we have

inte^x/(1+e^x)dx = int1/uduex1+exdx=1udu

=ln|u|+C=ln|u|+C

=ln(1+e^x)+C=ln(1+ex)+C

Plugging this into the equation above, we can get our result:

int1/(1+e^x)dx = x-ln(1+e^x)+C11+exdx=xln(1+ex)+C