[Paper Review] Least-squares Solutions of Linear Differential Equations
This paper presents a least-squares method for solving nonhomogeneous linear differential equations with nonconstant coefficients by embedding constraints into a constrained expression involving an unknown function g(t), which is approximated via Chebyshev polynomials. The approach achieves five orders of magnitude higher accuracy than MATLAB's ODE45 for initial value problems and effectively distinguishes between no, unique, and infinite solutions in boundary value problems using residual and condition number analysis.
This study shows how to obtain least-squares solutions to initial and boundary value problems to nonhomogeneous linear differential equations with nonconstant coefficients of any order. However, without loss of generality, the approach has been applied to second order differential equations. The proposed method has two steps. The first step consists of writing a constrained expression, introduced in Ref. \cite{Mortari}, that has embedded the differential equation constraints. These expressions are given in term of a new unknown function, $g (t)$, and they satisfy the constraints, no matter what $g (t)$ is. The second step consists of expressing $g (t)$ as a linear combination of $m$ independent known basis functions, $g (t) = \mathbfξ^T \mathbf{h} (t)$. Specifically, Chebyshev orthogonal polynomials of the first kind are adopted for the basis functions. This choice requires rewriting the differential equation and the constraints in term of a new independent variable, $x\in[-1, +1]$. The procedure leads to a set of linear equations in terms of the unknown coefficients vector, $\mathbfξ,$ that is then computed by least-squares. Numerical examples are provided to quantify the solutions accuracy for initial and boundary values problems as well as for a control-type problem, where the state is defined in one point and the costate in another point.
Motivation & Objective
- To develop a non-iterative, least-squares approach for solving linear differential equations with nonconstant coefficients and arbitrary initial or boundary constraints.
- To address the lack of general solution methods for nonhomogeneous linear ODEs when closed-form solutions are unavailable.
- To provide a unified framework that handles both initial and boundary value problems using the same constrained expression formulation.
- To enable accurate solution of problems with known, unknown, no, or infinite solutions by analyzing residual and condition number.
- To lay the foundation for future extensions to nonlinear equations, PDEs, and optimal basis selection.
Proposed method
- The method uses a constrained expression that inherently satisfies the differential equation and boundary/initial conditions by embedding them through special functions βi(t, t̲).
- The unknown solution y(t) is expressed as y(t) = g(t) + Σβi(t, t̲)(y_t̲i^(d̲i) - g_t̲i^(d̲i)), where g(t) is a free function to be approximated.
- The function g(t) is expanded as g(t) = ξᵀh(t), where h(t) is a vector of m orthogonal Chebyshev polynomials of the first kind.
- The differential equation is rewritten in terms of g(t), and the resulting equation is collocated at N points to form a linear system in ξ.
- The coefficient vector ξ is computed via least-squares minimization of the residual over the collocation points.
- The method is applied to second-order equations without loss of generality, but the framework extends to any order.
Experimental results
Research questions
- RQ1Can a non-iterative, least-squares method be developed for linear differential equations with nonconstant coefficients and arbitrary constraints?
- RQ2How can constraints be embedded directly into the solution form to ensure satisfaction regardless of the unknown function?
- RQ3Can Chebyshev polynomials provide a stable and accurate basis for approximating solutions to such equations?
- RQ4How does the method perform in distinguishing between unique, no, or infinite solutions in boundary value problems?
- RQ5What is the accuracy and conditioning behavior of the least-squares solution compared to standard ODE solvers like ODE45?
Key findings
- The least-squares method achieves five orders of magnitude higher accuracy than MATLAB’s ODE45 for initial value problems with known solutions.
- The residual mean and condition number of the least-squares system can reliably distinguish between problems with no solution and those with infinite solutions in boundary value problems.
- The solution error is approximately uniformly distributed across the integration interval, unlike traditional methods where error accumulates over time.
- The method is equally applicable to initial and boundary value problems, providing a unified solution framework.
- The approach is non-iterative and does not require solving for fundamental solutions, making it suitable for equations where closed-form solutions are unavailable.
- The method shows promise for extension to nonlinear equations, partial differential equations, and weighted least-squares formulations, though these remain open research areas.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.