The question is as follows:
Calculate the length of the graph of the function $f(x)=e^x$ between $x=0$ and $x=1$.
Use this: $\alpha =\int_a^b \sqrt{\left(\frac{\partial f(x)}{\partial x}\right)^2+1} \, dx$
I made a graph to view:
f[x_] := E^x
Plot[f[x], {x, 0, 1}]
α = Integrate[Sqrt[D[f[x], {x}]^2 + 1], {x, 0, 1}]
$-\sqrt{2}+\sqrt{1+e^2}+\tanh ^{-1}\left(\sqrt{2}\right)-\tanh ^{-1}\left(\sqrt{1+e^2}\right)$
N[α]
$2.0035\, +0. i$
But this result I did not understand. Was it not supposed to return a real value?

NIntegrate[]directly.Integrate[Sqrt[Exp[2 x] + 1], {x, 0, 1}] // TrigToExp // FullSimplifyyields a result that does not give a spurious imaginary part after being treated withN[]. – J. M.'s missing motivation Dec 09 '16 at 16:44ArcLength[Exp[x], {x, 0, 1}]. – Carl Woll Dec 31 '16 at 10:34