Let $X(t)=\left ( \pi\cos t, t, e^{\sin t} \right ), 0\leq t\leq \pi $. And let $\textbf{F}(x,y,z)=\left ( 2xy+\frac{-y}{x^2+y^2}, x^2+ze^{yz}+\frac x{x^2+y^2}, ye^{yz} \right )$ be a vector field.
I want to calculate $\int _X\textbf{F}\cdot d\textbf{s}$.
First, I found that $\varphi (x,y,z)=x^2y+e^{yz}+\arctan \frac yx$ is a potential function of $\textbf{F}$. So I had $\int _X\textbf{F}\cdot d\textbf{s}=\int _Xgrad\varphi \cdot d\textbf{s}=\int_{0}^{\pi }grad\varphi (X(t))\cdot X'(t)dt=\int_{0}^{\pi}\frac d{dt}\left ( \varphi (X(t)) \right )dt=\varphi (X(\pi ))-\varphi (X(0))$.
But I figured out that $\varphi$ is not a potential function of $\textbf{F}$ since $\varphi$ is not differentiable at which $x=0$. I know that if $X$ does not pass through $x=0$, then there is no problem with above calculation. However, the given $X$ passes through $(0,\frac{\pi}2,e)$. Calculation by definition of line intgral is too hard for me. What can I do?
There is no problem with differentiability unless both $x$ and $y$ are $0$, which cannot happen for your curve where $x(t)=\pi\cos t$ and $y(t)=t$. If $y$ is $0$, then $t=0$, in which case $x=x(0)\ne 0$. So I think everything's okay.