Second Order Linear Differential Equation

Last Updated : 4 Nov, 2025

The second-order linear differential equation involves the second derivative of a function. It is crucial in many areas of physics and engineering, such as mechanical vibrations, electrical circuits, and heat conduction.

The general form of a second-order linear differential equation is:

a(x)y" + b(x)y" + c(x)y = f(x)

  • Where and b are functions of the independent variable x.

Types of Second-Order Linear Differential Equations

There are two types of second-order linear differential equations: Homogeneous equations and Non-Homogeneous equations.

Homogeneous Equation

A homogeneous equation in the context of differential equations has the general form:

A(x)d2y/dx2 + B(x)dy/dx + C(x)y = 0

  • Where A(x), B(x), and C(x) are functions of the independent variable x.

For simplicity, let's assume that A(x) = A, B(x) = B, and C(x) = C are constant. The equation becomes:

Ay" + By' + Cy = 0

Key Properties of Homogeneous Equations

  • Superposition Principle: If g(x) is a solution of the homogeneous equation, then any constant multiple of g(x).
  • Sum of Solutions: If h(x) and g(x) are both solutions, then h(x) + g(x) is also a solution.

General Solution of homogeneous equation:

To solve the equation Ay" + By' + C = 0 we follow thses steps:

  • Assume a solution of the form y = erx , where r is constant.
  • Substitute into the differential equation: Ar2erx + Brerx+Cerx=0
  • Factor out erx ( which is never zero) : Ar2 + Br + C = 0

Thus, the characterstic equation is: Ar2 + Br + C = 0. We now solve this quadratic equation to find the roots r1​ and r2​.

Case 1: Two Real and Distinct Roots

If the roots of the characteristic equation are real and distinct, say r1 and r2, then the general solution is:

y = c1erx + c2erx

Case 2: Complex conjugate Roots

If the rooots are complex , say r1 = a + bi, where i is imaginary unit, the general solution take the form:

y = eax(c1​cos(bx) + c2​sin(bx))

This result uses Euler's formula eix= cos⁡(x) + isin⁡(x).

Case 3: Repeated Real Roots

If the characteristic equation has repeated real roots, say r1 = r2=r, then the general solution is:

y = (c1 + c2x)erxy

This is because the solution to the repeated root case involves multiplying by x to ensure linear independence.

Non-Homogeneous Second-Order Linear Differential Equations

A non-homogeneous second-order linear differential equation has the form:

A(x)d2y/dx2 + B(x)dy/dx + C(x)y = g(x)

Where g(x) is a non-zero function, and the goal is to find a solution to this equation. The solution consists of two parts:

  1. Complementary Function (C.F.): The solution to the associated homogeneous equation Ay′′+ By′+ Cy = 0.
  2. Particular Integral (P.I.): A particular solution to the non-homogeneous equation.

The general solution is:

y(x) = C.F. + P.I

Finding the Particular Integral (P.I.):

The method of undetermined coefficients is often used to find the particular integral. The form of the P.I. depends on the function g(x). For example:

  • If g(x) is a polynomial, exponential, or sinusoidal function, the form of the P.I. is chosen based on the form of g(x).
  • If g(x) involves terms similar to the solutions of the homogeneous equation, we multiply by an additional factor of x to ensure linear independence.

Example 1: Solve y" + 5y' + 6y = 0

Solution:

Assume y = erx

Putting this in the equation, we finally get:

r2 + 5r + 6 = 0
(r+2)(r+3) = 0
r = (-2) OR r = (-3)

So, r1 = (-2) and r2 = (-3)

Since both are real the general solution will be:

y = c1e(-2x) + c2e(-3x)

Solved Questions on Second Order Linear Differential Equation

Question 1: Solve y" + y' + y = 0

Solution:

Assume y = rrx

and solve for 'r'. Your 'r' will look something like this:

r1 = (-1/2) + i(-\sqrt(3)/2
and r2 = (-1/2) - i-\sqrt(3)/2
So,
a1 = (-1/2)
and a2 = (\sqrt(3)/2)

Hence the general solution will look like this:

y = e(-x/2)(c1cos(x√(3)/2) + c2sin(x√(3)/2))

Question 2: Solve y" + 4y' + 4y = 0

Solution:

Assume y = rrx and solve for 'r'. The 'particular solution will be:

y = ce2x

Assume

y = p(x)e2x

Putting it in the differential equation will give you:

p" = 0 which implies
p'= c2 which again implies
p = c1x + c2

Hence the general solution will be:

y = (c1x + c2)e2x

Question 3: Solve:   y′′− 4y′+ 4y = 0.

Solution:

Assume y = rrx and solve for 'r'. The 'particular solution will be:

r2 − 4r + 4 = 0

(r - 2)2 = 0

Repeated Root r = 2

General solution:

y = ( C1 + C2x)e2x

Question 4: Solve:   y′′+ 2y′+ 5y = 0.

Solution:

Assume y = rrx and solve for 'r'. The 'particular solution will be:

Characteristic:

r2 + 2r + 5 = 0

Discriminant Δ = 4 − 20 = − 16

r =- 2 ± 4i/2 = -1 ± 2i .

So a = - 1, b = 2

General real solution:

y = e-x (C1 cos 2x + C2 sin 2x)

Unsolved Questions on Second Order Linear Differential Equation

Question 1 : Solve the differential equation: y′′ − 6y′ + 9y = 0.

Question 2: Solve the non-homogeneous differential equation: y′′ + 2y′ + y = x2.

Question 3: Solve the differential equation: y′′ + 9y = sin⁡(3x)

Question 4: Solve the differential equation: y′′ + 4y′ + 13y = 0.

Comment