I am trying to figure out how to create and manipulate exact differentials (algebraic treatment of Leibniz notation) in SymPy. To be clear, it is well known that
from sympy import *
init_printing()
x, y=symbols('x, y')
f=Function('f')(x, y)
Derivative(f, x)
yields
In the case above, the exact differential is
For a physicist this is especially needed given the kind of abuse we do to the chain rule but also for simple things like V = A \ell
and dV = dA d\ell
, when working with integrals or this classic physics abuse of the Leibniz notation that occurs all the time in thermodynamics.