A linear ODE is one where the unknown function and its derivatives appear only to the first power, with no products between them, and the coefficients depend only on the independent variable. The general form for -th order:

The coefficients can be constants or functions of . They cannot depend on or any of its derivatives — that would make the equation nonlinear.

What “linear” means

The ODE is linear in and its derivatives. The function on the right-hand side can be anything — it’s the forcing term or inhomogeneity, and the equation is linear regardless of what looks like.

Examples that are linear:

  • — first-order, constant coefficients.
  • — second-order, variable coefficients.
  • — fourth-order, constant coefficients, homogeneous.

Examples that are not linear:

  • appears to the second power.
  • — product of and its derivative.
  • inside a transcendental function (the pendulum equation).
  • — derivative squared.

Homogeneous vs nonhomogeneous

Two flavors based on whether the right-hand side is zero:

  • Homogeneous: . The equation reduces to .
  • Nonhomogeneous: . The forcing term drives the solution away from zero.

Homogeneous equations have nicer structure. The Superposition principle applies: any linear combination of solutions is itself a solution. Solutions form a vector space.

For a nonhomogeneous equation, the general solution decomposes as

where is the complementary solution (general solution of the homogeneous part) and is any particular solution of the nonhomogeneous equation. See Particular solution and complementary solution.

Why linearity matters

Linear ODEs admit:

  1. Superposition. Solutions add. Any linear combination of homogeneous solutions is a homogeneous solution.
  2. Closed-form solutions for many cases. First-order linear is always solvable via Integrating factor. Second-order linear with constant coefficients is solvable via the Characteristic equation.
  3. Existence and uniqueness with stronger conclusions. For linear ODEs, the Existence and uniqueness theorem guarantees global solutions on the entire interval where the coefficients are continuous, not just locally. The hypotheses are actually weaker than the nonlinear theorem demands — linear needs only continuity of the coefficients , whereas the general nonlinear case requires continuity of and . So linear ODEs ask for less and deliver more: from weaker assumptions you still get a stronger (global, not local) conclusion.
  4. Useful transforms. The Laplace transform turns linear ODEs into algebraic equations.

Nonlinear ODEs lose all of these. There’s no general method; each one is solved by its own tricks (or, often, only numerically).

Solution methods for linear ODEs

By order:

First-order linear: . Use Integrating factor.

Second-order linear, constant coefficients, homogeneous: . Use Characteristic equation.

Second-order linear, constant coefficients, nonhomogeneous: solve the homogeneous part for , then find via Method of undetermined coefficients (when has a nice form) or Method of variation of parameters (general ).

Higher-order or variable coefficients: same general approach but more involved. Method of reduction of order and Laplace transform become important.

For nonlinear ODEs, see Separable equation and Exact equation for the limited cases that can be solved directly.