F = ∇ƒ
= (∂ƒ/∂x)i + (∂ƒ/∂y)j
= (3x2y)i + (x3+y3)j
Set the corresponding unit vector components equal to each other:
-
(∂ƒ/∂x)i = (3x2y)i
-
(∂ƒ/∂y)j = (x3+y3)j
Focusing on the x-component vectors:
∂ƒ/∂x = 3x2y
∫[∂ƒ/∂x] dx
= ∫3x2y dx
= x3y + h(y) + C
Similarly for the y-component vectors:
∂ƒ/∂y = x3 + y3
∫[∂ƒ/∂y] dy
= ∫x3 + y3 dy
= x3y + ¼y4 + g(x) + C
∫[∂ƒ/∂y] dy
= ∫x3 + y3 dy
= x3y + ¼y4 + g(x) + C
Setting both results equal to each other:
x3y + h(y) + C = x3y + ¼y4 + g(x) + C
g(x) = 0
h(y) = ¼y4
The general solution: