I'm trying to use Sage to check if an explicit function satisfies a PDE. As an example, I would like to be able to apply the operator ∏5n=1(t∂∂t−n) to ztet/z. What are my options for doing this in Sage?
I found a relevant post on this site, which almost does what I want, but not quite. In the context of that post, I'd like to be able to do something like this:
def Dt(f):
return t*f.derivative(t)
operator = prod([ Dt - n-1 for n in range(5) ])
operator(z*t*exp(t/z))
But of course, this doesn't work. (Because my PDEs can get large, I'm looking for a way to get Sage to expand them for me. I don't want to do it by hand and then input the expanded form.) Thanks!