Chebyshev Sturm-Liouville Problem#
This example solves the Chebyshev differential equation, which is a classic Sturm-Liouville problem:
with Dirichlet boundary conditions: $\(u(-1) = 1, \quad u(1) = 1\)$
The exact solution to this problem is the Chebyshev polynomial of the first kind of degree \(n\), denoted as \(T_n(x)\). For \(n=2\), the solution is \(T_2(x) = 2x^2 - 1\).
Mathematical Background#
Chebyshev’s differential equation is a special case of the Sturm-Liouville problem, which has the general form:
For Chebyshev’s equation, we have:
\(p(x) = 1-x^2\)
\(q(x) = 0\)
\(r(x) = 1\)
\(\lambda = n^2\)
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 = (1-x^2) L - x I G + n^2 I\)
\(L\) is the mimetic Laplacian
\(G\) is the mimetic gradient
\(I\) is the interpolation operator from faces to centers
Boundary conditions are applied using the addScalarBC1D
function.
This example is implemented in:
Results#
The numerical solution closely matches the exact solution, which is the Chebyshev polynomial \(T_2(x) = 2x^2 - 1\).
Chebyshev polynomials are important in numerical analysis and approximation theory because they:
Minimize the maximum error in polynomial approximation
Have roots that are optimal interpolation points (Chebyshev nodes)
Are closely related to the Fourier cosine series