Parametrize the curve.
But what's the function g?
Anyways, since the line integral is independent of the path taken, you're integrating along a curve in a gradient vector field.
And I'm going to go out on a limb and say you meant . This would mean that the vector field is the gradient of the function .
Therefore the line integral is equal to