How can I define the operator $\sqrt{m^2-\frac{\partial^2}{\partial x^2}}$, such that it acts on the function $\psi(x)$ as follows: \begin{eqnarray*} \sqrt{m^2-\frac{\partial^2}{\partial x^2}}\psi(x)&=&\left[\sum^{\infty}_{n=0}{\frac{1}{2} \choose n}{(m^2)}^{\frac{1}{2}-n}\left(-\frac{\partial^2}{\partial x^2}\right)^n\right]\psi(x)\\ &=&m\psi(x)-\frac{1}{2m}\frac{\partial^2}{\partial x^2}\psi(x)-\frac{1}{8m^3}\frac{\partial^4}{\partial x^4}\psi(x)+\cdots\,. \end{eqnarray*} Is it possible to define this operator exactly, rather than taking the first few terms of the series expansion as an approximation?
This question originates from quantum field theory. By subtracting the first term (which is irrelevant in the non-relativistic limit) and dropping all higher-order terms, we obtain the non-relativistic Hamiltonian for a free scalar theory in one dimension: $-\frac{1}{2m}\frac{\partial^2}{\partial x^2}\,.$ I want to perform numerical simulations using Mathematica. However, I do not know how to define this operator.
This is my first time asking a question, and if I made any mistakes, I apologize.
op = Sqrt[m^2 - D[#, {x, 2}]] &;
$\endgroup$op = Sum[Binomial[1/2, n] m^(1 - 2 n) (-1)^n D[#, {x, 2 n}], {n, 0, ∞}] &
. Then you use it asop[f[x]]
. In version 14, there is a new functionTruncateSum
, which you can then use to get the first $n$ terms:TruncateSum[op[f[x]],3]
returnsm f[x]-f''[x]/(2 m)-f''''[x]/(8 m^3)
. $\endgroup$