PhysicsScore

Linear ODEs, first and second order

  • CSIR NET
  • GATE
  • UP Assistant Professor
  • UP GDC Mains

4 minute read · Updated 2026-11-15

Picking up from

In Group theory: SU(2), O(3), we saw that groups organize reversible transformations and their composition. How do we determine a quantity when its rate of change is specified?

In one line

Linear ordinary differential equations relate a function of one variable to its derivatives without multiplying unknown quantities together.

The idea, explained

An ordinary differential equation contains derivatives with respect to one independent variable. It is linear when the unknown function and its derivatives appear only to the first power with coefficients independent of that unknown. The order is the highest derivative present. A homogeneous equation has zero forcing, so sums of solutions remain solutions. With forcing, add one particular solution to the general homogeneous solution. Initial or boundary conditions select the constants and turn a family of functions into the physically relevant answer.

Linearity lets us separate the equation’s internal response from its response to forcing. The homogeneous solutions contain the arbitrary constants, while one particular solution accounts for the source. Adding two particular solutions is not generally a new solution of the same forced equation, because it doubles the forcing. For constant coefficients, an exponential is useful because each differentiation only multiplies it by its exponent. Distinct roots give distinct exponentials; a repeated root requires a second independent solution with an extra factor of the independent variable.

Core ideas

  • A first-order linear equation has one integration constant; a regular second-order equation has two.
  • An integrating factor converts a first-order linear equation into an exact product derivative.
  • For constant-coefficient homogeneous equations, an exponential trial reduces differentiation to a polynomial equation.
  • Repeated characteristic roots require a polynomial factor multiplying one exponential solution.
  • Apply initial or boundary conditions after forming the full solution, and check that the proposed conditions are compatible.
  • Before using the integrating-factor formula, divide the equation by the coefficient of the first derivative on an interval where that coefficient does not vanish. This puts it into the required standard form.
  • For a second-order constant-coefficient equation, complex-conjugate roots can be combined into real sine and cosine solutions when the original coefficients and desired solution are real.

Key formulas

Integrating factor for a first-order linear ODE

y′+p(x)y=q(x),μ(x)=e∫p(x) dx,(μy)′=μqy'+p(x)y=q(x),\qquad \mu(x)=e^{\int p(x)\,dx},\qquad (\mu y)'=\mu q

p and q are known functions; μ\mu is the integrating factor for solving this first-order equation.

Characteristic equation for a constant-coefficient second-order ODE

ay′′+by′+cy=0,ar2+br+c=0ay''+by'+cy=0,\qquad ar^2+br+c=0

For constant a, b and c, roots r determine exponential solutions; a must be nonzero for second order.

Classify the order, linearity and coefficient dependence before choosing a method. After solving, differentiate your answer and substitute it back into the differential equation. Then check every supplied condition separately. This distinguishes an algebraically valid solution family from the particular member selected by the initial or boundary data.

Quick worked example

Solve y′+2y=0y'+2y=0 with y(0)=3y(0)=3. The integrating factor is e2xe^{2x}, so e2xy=Ce^{2x}y=C. The condition gives C=3C=3 and hence y=3e−2xy=3e^{-2x}.

Where this leads

Continue to Hermite, Bessel, Laguerre and Legendre functions/equations/polynomials, because important boundary-value equations generate named families of special functions.

Related: Vector algebra and vector calculus — vectors and spatial derivatives.

Related: Variational principle, Hamilton's principle, calculus of variations, Euler-Lagrange equation — the variational equations are differential equations requiring initial or boundary data.

Practice this topic

Practice this topic

22 questions in Assistant Professor · Physics · Physics. Sign in and practice access may be required.

Other exam sections