Determining the potential function of a conservative vector field

The process is not as complicated as the notation makes it look