Determining the Potential Function of a Conservative Vector Field