Suppose I have a sequence of operators $\partial_x$, $\partial_x^2$,..., $\partial_x^n$. I want to define an operator which is a composition of these $D_x^{(n)}=\partial_x\circ\partial_x^2\circ\cdot\cdot\cdot\circ \partial_x^n$
Something like Diffn[f,x,n]
.
The $D_x^{(n)}$ should take a function, a variable x (differentiation with respect to x) and n.
The operator which I want is a bit more complicated but it will be just an extension of this. I tried
Apply[Composition, Array[Sin &, n]][x]
It is based on an example on the mathematica website where one may put sin function and it gives a composition of n such functions, but I am a bit confused how to use derivative operator here and put an index for the order of the derivative. (since operators and functions are mathematically different entities)
There is another example on the mathematica website for the derivatives but I can't specify the order of differentiation by an index.