How to solve second order linear differential equation

A second order differential equation is an ordinary differential equation (ODE) that involves only the second derivatives of an unknown function with respect to a single independent variable.

Mathematically, second order ODE is represented as:

For example:

Solving second order ODE

Suppose we have the following ODE to solve:

Let:

Hence, our differential equation would become:

We have two solutions now, r=3 and r=2.r=3 \textnormal{ and } r=2. Substituting their values in y:y:

  

To get a more general solution, we need to combine their multiples as follows:

where A and BA \textnormal{ and } B are constants.

Verification

We have y=Ae2x+Be3xy=Ae^{2x}+Be^{3x}. To check our answer, we need to calculate the following values:

Put the above values in the equation we have:

The above equality holds. Hence our solution is correct.

Test yourself

Q

What is the solution(s) for the differential equation d2ydx26y=7dydx\frac{d^2y}{dx^2}-6y = 7\frac{dy}{dx}?

A)

Ae23x+Be2xAe^{\frac{2}{3}x}+Be^{2x}

B)

Ae2x+Be32xAe^{2x}+Be^{\frac{3}{2}x}

C)

Ae2xBe32xAe^{-2x}-Be^{\frac{3}{2}x}

D)

Ae2xBe32xAe^{2x}-Be^{\frac{-3}{2}x}

Note: Learn about how to solve first order linear differential equations.

Free Resources

Copyright ©2025 Educative, Inc. All rights reserved