g the vector field f is conservative find a potential function f of f so that then use the potential function together with the fundamental theorem of line integrals