If we have a vector field described as…
… and it is conservative the following relation holds…
… where is a scalar function which is called potential. In the case you have proposed is…
… so that you can verify that the scalar function…
… satisfies the conditions to be the potential of the field given by you…
Kind regards
P.S. Again i didn't note that fantastic had posted before me... i apologize for that...