let $\theta_{x}$ be the operator : $$\theta_{x}=x\frac{d}{dx}$$
What is the closed form for :
$$\theta_{x}^{n}\left[x\cos(x)\right]$$ $n$ being an positive integer.
let $\theta_{x}$ be the operator : $$\theta_{x}=x\frac{d}{dx}$$
What is the closed form for :
$$\theta_{x}^{n}\left[x\cos(x)\right]$$ $n$ being an positive integer.
Let $\theta:=\theta_x$, $f(x):=x\cos(x)$ and $g(x)=x^2\sin x$. Then
$$\theta(f)=f-g, $$ $$\theta^2(f)=\theta(f)-\theta(g)=f-g-\theta(g), $$ $$\theta^3(f)=\theta(f)-\theta(g)-\theta^2(g)=f-g-\theta(g)-\theta^2(g); $$
in summary
$$\theta^n(f)=f-g-\theta(g)-\dots-\theta^{n-1}(g).$$
You can have the closed form
$$ \sum_{k=0}^{n} {n\brace k} x^k \left(x\cos\left(x+\frac{k\pi}{2}\right)+k\sin\left(x+\frac{k\pi}{2}\right)\right),$$
where ${n\brace k}$ is the Stirling numbers of the second kind. For the $n$th derivative of $x\cos(x)$, see here.
Note: We used the identity
$$ (xD)^n = \sum_{k=0}^{n}{n\brace k} x^k D^k. $$