How to define the following operator in Mathematica?
$$\hat{\nabla}^4=\left(\frac{\partial^2}{\partial\hat{r}^2}+\frac1{\hat{r}}\frac{\partial}{\partial\hat{r}}\right)^2$$
It should be this:
lap = D[#, {r, 2}] + 1/r D[#, r] &;
lapsquared = lap @* lap;
lapsquared[f[r]] // Simplify
Or using Laplacian
to define lap
lap = Laplacian[#, {r, θ}, "Polar"] &;
@*
AKA Composition
!
$\endgroup$
/*
for RightComposition
.
$\endgroup$
Commented
Mar 24, 2020 at 1:25
A simple answer:
operator[f_] := Nest[(D[#, {r, 2}] + 1/r D[#, r]) &, f, 2]
operator[f[r]]
(Laplacian[u[r], {r,theta}, "Polar"])^2
$\endgroup$Laplacian
rather than directive square. $\endgroup$