You can use this to help you check your integration when computing a potential. If you need to find a potential for vector field $(M,N)$ of for a differential form $Mdx+Ndy$, then use this.
<sagecell> var('x,y') M=2*x+3*y N=3*x+4*y
C=function('C',x) #This is an arbitray function of x, which shows up when you integrate with respect to y. D=function('D',y) #This is an arbitray function of y, which shows up when you integrate with respect to x.
intMdx=integrate(M,x) +D intNdy=integrate(N,y)+C
table([ ["$\int M dx$",intMdx], ["$\int N dy$",intNdy], ["Do the parts that involve both $x$ and $y$ match?", "If there is a potential, it equals both the expressions above."], ])
</sagecell>
{{page>get_sage}}