Is this the correct way to solve question 2 from the “a bit more” section of the review sheet?
Final review potential function
Yes, that’s correct!! Of course, you can always check by computing \nabla f and checking that you do, indeed get \vec{F}.
I am still confused on the whole +c(y) part and how you get f(x,y)
Let’s see what happens if we don’t use the +c(y) part. Starting with the vector field
we’re looking for a function f whose gradient is \vec{F}. That is
Well, if we take the anti-derivative of 2xy^3+1 with respect to x but ignore the constant of intgration, we get
So that’s our candidate for f If we compute the gradient, though, we get
which is just not right since it’s missing the +1 on the second component.
Had we included the +c, we would’ve had
Again, the constant can potentially include a y, since we’ve computed an antiderivative with respect to x and y is constant, as far as x is concerned. When we differentiate that with respect to y, we then see that c'(y) is exactly the 1 that we were missing.