Substitute variable in differential equation
I have
m = function('m')(r)
V = function('V')(r)
phi = m(r)/r
V = 4*pi*r^3/3
divG = (diff(phi,r,2)+2/r*diff(phi,r)).full_simplify()
which describes a spherical symmetric source term of a field, nice. Now I want to get this as a function of volume, not of radius and tried:
a=divG.subs(r=V(r))
But it gets me nowhere - It should also substitute the differentials - How to solve this?