General Solution of a Linear ODE¶
Proposition¶
Let and be continuous on an interval , write , and let
- The solutions of the homogeneous equation on form a vector space of dimension .
- If is a particular solution of , then the set of all solutions of is .
Hence, for any basis of , the general solution of the linear ordinary differential equation (ODE) is
where , and initial conditions determine uniquely.
Interpretation¶
The map is linear, so is its kernel and the solution set of is a shifted copy of that kernel. This is the same structure as for homogeneous and inhomogeneous systems in Math II, and the solution set is an affine subspace, not a subspace, when .
The figure plots the second-order example with . The green solution is the dashed particular solution plus the blue element of . The constants , are fitted to the full sum, which is why starts at with zero slope while starts at . As the homogeneous part decays, approaches .
The proof of part 2 is one line: if then , so . The dimension count in part 1 uses uniqueness of solutions: the map sending a solution to its initial data is a linear bijection.
Common errors: fitting the initial conditions to the homogeneous part before adding (the constants must be fitted to the full sum); and assuming the sum of two particular solutions is again a particular solution (it solves ).
Key Results¶
- solutions of form a basis of if and only if their initial-data vectors are linearly independent for one (equivalently every) .
- For constant coefficients, the roots of the characteristic equation supply such a basis.
- The same structure holds for systems: all solutions of are plus the -dimensional solution space of ; see linear vector ODE.
- For constant , the general solution is , using the matrix exponential.
Beyond the course
Many differential-equations textbooks test this independence with the Wronskian, the determinant of the matrix whose columns are the initial-data vectors at . Math V does not use it: checking the initial-data vectors at one is enough.
Examples¶
Second-order initial value problem. , , . Homogeneous basis from : , . A particular solution is . So . The conditions give and , hence , :
Check: and .
Independence check. At the initial-data vectors of and are and , which are linearly independent, so form a basis of .
First order. : has dimension 1 and , so .
Prerequisites¶
- Particular Solution of an Inhomogeneous Linear ODE
- Characteristic Equation for a Differential Equation
- Linear Dependence and Independence
- Dimension
- Homogeneous and Inhomogeneous Systems
Related Concepts¶
- Basis of Solutions of a Difference Equation
- Linear Vector ODE
- Matrix Exponential
- Stability of Solutions of Higher-Order ODEs
- Affine Subspace
Sources¶
- Math V: Advanced Linear Algebra · Week 4
Aliases: general solution Keywords: superposition principle, x = x_p + x_h, fundamental set of solutions, solution space, Wronskian, homogeneous solution Symbols: element of, integral, real numbers
Last updated: 22 October 2026 19:04
General Solution of a Linear ODEStability of Solutions of Higher-Order ODEsParticular Solution of an Inhomogeneous Linear ODECharacteristic Equation for a Differential EquationLinear Dependence and IndependenceDimensionHomogeneous and Inhomogeneous SystemsBasis of Solutions of a Difference EquationLinear Vector ODEMatrix ExponentialAffine Subspace