Laguerre Sturm-Liouville Problem#
This example solves the Laguerre differential equation, which is a classic Sturm-Liouville problem:
with Dirichlet boundary conditions: $\( u(0) = L_n(2), \quad u(2) = L_n(2) \)$
The exact solution to this problem is the Laguerre polynomial of degree \(n\), denoted as \(L_n(x)\). For \(n = 4\), the solution is \(L_4(x) = \frac{e^x}{4!} \frac{d^4}{dx^4} (e^{-x}x^4) \).
Mathematical Background#
Laguerre’s differential equation is a special case of the Sturm-Liouville problem, which has the general form:
For Laguerre’s equation, we have:
\(p(x) = xe^{-x}\)
\(q(x) = 0\)
\(r(x) = e^{-x}\)
\(\lambda = n\)
Discretization#
The equation is discretized using mimetic finite difference operators. The spatial derivative operators are constructed with a specified order of accuracy \(k\).
The discrete system is:
where:
\(A = x L + (1 - x) I_{FC} G + n I\)
\(L\) is the mimetic Laplacian
\(G\) is the mimetic gradient
\(I_{FC}\) is the interpolation operator from faces to centers
\(I\) is the identity matrix
Boundary conditions are applied using RobinBC.
This example is implemented in:
Results#
The numerical solution closely matches the exact solution, which is the Laguerre polynomial \(L_4(x) = \frac{e^x}{4!} \frac{d^4}{dx^4} (e^{-x}x^4) \).