Solve Second Order Differential Equations - Two equal real solutions

Solve second order differential equations with auxiliary equation having 2 equal real solutions. Examples with detailed solutions are included.

Given the auxiliary equation of a second order differential equation \[ k^2 + b k + c = 0 \] Show that if \( b^2 - 4 c = 0 \), in which case the above equation gives two equal real solutions and \( y = x e^{kx} \) is a general solution to the second order differential equation \[ \dfrac{d^2 y}{dx^2} + b \dfrac{dy}{dx} + c y = 0 \]. If \( y = x e^{kx} \), then \[ y' = e^{kx} + k x e^{kx} \] and \[ y'' = 2 k e^{kx} + x k^2 e^{kx} \]. Substitute \( y \), \( y' \) and \( y'' \) obtained above into the differential equation, we obtain \[ 2 k e^{kx} + x k^2 e^{kx} + b (e^{kx} + k x e^{kx}) + c(x e^{kx}) = 0 \]
If \( b^2 - 4 c = 0 \), the auxiliary equation has two equal real equal solutions given by \( k = - \dfrac{b}{2} \).
Substitute \( k \) by \( - \dfrac{b}{2} \) in the above equation, collect like terms and simplify to obtain
\[ e^{kx} \left( - \dfrac{b^2}{4} + c \right) = 0 \].
Since \( b^2 - 4 c = 0 \), the term \( ( - \dfrac{b^2}{4} + c ) \) in the above equation is also equal to zero and hence the suggested solution satisfies the differential equation given above.
In case the auxiliary equation gives two equal real solutions, the solution to the differential equation is given by
\[ y = A e^{kx} + B x e^{kx} \]
Using examples, It will be shown how one can solve differential equations.

Examples with Solutions

Example 1: Solve the second order differential equation given by
\[ \dfrac{d^2 y}{dx^2} + 2 \dfrac{dy}{dx} + y = 0 \]

Solution to Example 1
The auxiliary equation is given by
\[ k^2 + 2 k + 1 = 0 \]
Factor the above quadratic equation and solve for \( k \)
\[ (k + 1)^2 = 0 \]
\( k = - 1 \), two equal real solutions.
The general solution to the given differential equation is given by \[ y = A e^{k x} + B x e^{k x} = A e^{- x} + B x e^{- x} \] where \( A \) and \( B \) are constants.
As an exercise, check that the above solution obtained, satisfies the given differential equation.

Example 2: Solve the second order differential equation given by

\[ \dfrac{d^2 y}{dx^2} - 4 \dfrac{dy}{dx} + 4 y = 0 \]

with the initial conditions \( y(0) = 4 \) and \( y'(0) = 0 \)

Solution to Example 2
The auxiliary equation is given by
\[ k^2 - 4 k + 4 = 0 \] The above quadratic equation has two equal real solutions
\( k = 2 \)
The general solution is given by \[ y = A e^{2 x} + B x e^{2 x} \] where \( A \) and \( B \) are constants and are evaluated using the initial conditions. \( y(0) = 4 \) gives \[ y(0) = A e^0 + 0 = A = 4 \] \( y'(0) = 0 \) gives \[ y'(0) = 2 A e^0 + B ( e^0 + 2 (0) e^0) = 2A + B = 0 \] Solve the system of equations \( A = 4 \) and \( 2 A + B = 0 \) to obtain
\( A = 4 \) and \( B = -8 \)
The solution may be written as \[ y = 4 e^{2 x} - 8 x e^{2 x} \]


More references and Links

Differential Equations
Differential Equations - Runge Kutta Method