Find a function f such that F = ∇f, F(x,y)=x2i+y2j

Find a function f such that F = ∇f, F(x,y)=x2i+y2j. C is the arc of the parabola y = 2x^2 from (-1, 2) to (2, 8)