I need to calculate the following line integral over the curve C:
$$\int_C e^{\sqrt{x^2+y^2}} ds $$
where $C$ is the circuit bounded by $r = a, \varphi = 0$ and $\varphi = \pi/4$. I tried separating the integral into these three parts and got an answer of $(\pi/4)ae^a$ However, the answer the book gives (the problem is from Demidovich's Problems in Analysis) is
$$(\pi/4)ae^a + 2(e^a - 1)$$
The $e^a - 1$ term comes from evaluating the integral over the bounds of the curve $\varphi = 0$ and $\varphi= \pi/4$. But I thought these would cancel out, and not add up.