I'm having trouble finding the line integral of this problem. So they give me the gradient vector field $$\nabla f(x,y,z) = 2xyze^{x^2}i + ze^{x^2}j+ye^{x^2}k$$ they say that $f(0,0,0) = 5$ and i want to know what is the value of line integral $f(1,1,2)$
i know that the line integral of a gradient vector field is given by $$\int_{a}^{b} \nabla f(x,y,z)ds = f(c(b)) -f(c(a))$$ But i'm stuck by how to find $f$, can someone explain to me
$$\frac{\partial f}{\partial x}=2xyze^{x^2}\implies f(x,y,z)=\int\frac{\partial f}{\partial x}\,dx= yze^{x^2}+g(y,z)$$ and $$\frac{\partial f}{\partial y}=ze^{x^2} \implies f(x,y,z)=\int\frac{\partial f}{\partial y}\,dy=yze^{x^2}+h(x,z)$$ and $$\frac{\partial f}{\partial z}=ye^{x^2} \implies f(x,y,z)=\int\frac{\partial f}{\partial z}\,dz=yze^{x^2}+m(x,y)$$ So you may take $f(x,y,z)=yze^{x^2}+5$ (choose $g,h,m=5$ to ensure $f(0,0,0)=5$) and then use the formula you know for the line integral.