Determine whether or not the vector field is conservative. If it is conservative, find a function f such thatF= ∇f.

F(x, y, z) = 2xy i + (x^2 + 2yz) j + y^2 k

I found the vector field to be conservative but how do I find the function?

The book's answer is x^2 • y + y^2 • z + K