How to Solve a Linear Second Order Differential Equation

2nd Order Linear Differential
Equation Solver

y''(t) + ay'(t) + by(t) = 0

a =      b =

y(0) =      y'(0) =

y(t) = 0t + 0

Differential equations have many applications to physics and engineering. A second order linear differential equation has the form

y''(t) + ay'(t) + by(t) = 0,

where a and b are constants. If the equation has initial conditions y(0) = c and y'(0) = d, then the equation is called an "initial value problem" and it can be solved completely. That is, you can find an explicit equation for y(t).

The form of the equation depends on solution to the associated quadratic equation

z2 + az + b = 0

and there are three possible cases. You can use the method outlined below to solve these kinds of equations, or use the differential equation solver on the left.

Case I: a2 - 4b > 0

When a2 - 4b > 0, the equation has the form

y(t) = k1ept + k2eqt,

where p = -0.5a + 0.5sqrt(a2 - 4b) and q = -0.5a - 0.5sqrt(a2 - 4b). The constants k1 and k2 depend on the initial conditions of the equation. When you plug in the initial conditions into y(t) and y'(t), it creates a system of two linear equations in the variables k1 and k2. Thus you can find the complete solution.

If one of p or q is zero, the solution equation simplifies to y(t) = k1ept + k2.

Case II: a2 - 4b = 0

When a2 - 4b = 0, the equation has the form

y(t) = k1ept + k2tept,

where p = -0.5a. As before, the values of the constants k1 and k2 can be determined from the initial conditions.

Case III: a2 - 4b < 0

When a2 - 4b < 0, the equation has the form

y(t) = ept(k1sin(rt) + k2cos(rt)),

where p = -0.5a and r = 0.5sqrt(4b - a2).

Degenerate Case

If both a and b equal zero, the differential equation solution has the form

y(t) = k1t + k2.

© Had2Know 2010

How to Solve a Second Order Euler Differential Equation

How to Solve a Second Order Linear Recursive Equation

Volume, Surface Area, and Diagonal of a Rectangular Box

Cubic Equation Solver

How to Calculate the Intersection of Two Lines

How to Compute Geometric Mean Return