The integral is ∫ex+e−xdx
Multiply both numerator and denominator by ex:
∫ex+e−xdx
=∫ex(ex+e−x)ex⋅dx
Expand the denominator:
=∫ex⋅ex+ex⋅e−xexdx
=∫e2x+1exdx
Let t=ex
Then dxdt=ex
So dt=exdx
Substituting:
∫e2x+1exdx
=∫t2+1dt
Using the standard integral formula:
∫t2+1dt=tan−1(t)+c
Substituting back t=ex:
tan−1(ex)+c