$ \displaystyle \int_c x\,dx+ y\,dy + z\,dz$, where $C$ is the straight line from $(1,0,0)$ to $(0,1,\pi/2)$
Parametric form of line will be:
$$x=1 - t, \quad y= t, \quad z= \frac{\pi t} 2$$
The integral becomes
$$\int_0^1 2t -1 + \frac{\pi^2t} 4 \, dt$$
but the final answer given in my book is $\pi^2/8$ which I am not getting by this. So where am I making the mistake ?