algebra of differential operators
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. Thanks!
To be clear, I'm asking about the following operator: 5∏n=1(t∂∂t−n)=(t∂∂t−1)(t∂∂t−2)(t∂∂t−3) =(t∂∂t−1)((t∂∂t+t2∂2∂t2)−5t∂∂t+6) =… I don't want to finish the expansion by hand. I want Sage to do it for me, and then apply the whole mess to the function ztet/z.
If you want the composition of the operators, perhaps the 5 in your last expression is actually a 2 ?