JustToThePoint English Website Version
JustToThePoint en español

Second-order Linear ODE's with Constant Coefficients

And yet despite the look on my face, you’re still talking and thinking that I care, Anonymous

Recall

Definition. A differential equation is an equation that involves one or more dependent variables, their derivatives with respect to one or more independent variables, and the independent variables themselves, e.g., $\frac{dy}{dx} = 3x +5y, y' + y = 4xcos(2x), \frac{dy}{dx} = x^2y+y, etc.$

It involves (e.g., $\frac{dy}{dx} = 3x +5y$):

Basic linear ODE

In mathematics, a linear ordinary differential equation (ODE) is an equation involving an unknown function and its derivatives, characterized by the property that both the function and its derivatives appear linearly. This means that the unknown function and its derivatives are raised only to the first power. They are never multiplied together, nor are they composed within nonlinear functions (such as $\sin(y)$ or $e^y$). The general form for a first-order linear ODE is: a(x)y’ + b(x)y = c(x).

image info

Second-order Linear Homogeneous ODE’s with Constant Coefficients

In mathematics, a second-order linear homogeneous differential equation ODE with constant coefficients is an equation of the form: ay'' + by' + cy = 0 where:

Alternative definition: a second-order linear homogeneous differential equation (ODE) with constant coefficients is an equation of the form y’’ + Ay’ + By = 0 where A and B are constants.

This equation is characterized by:

This type of differential equation arises frequently in physics and engineering, modeling systems such as mechanical vibrations (mass-spring-damper) and electrical circuits (LRC).

The Principle of General Solution

To solve this ODE, we must find two linearly independent solutions $y_1(t)$ and $y_2(t)$. The fundamental theorem of linear ODEs states that the general solution is a linear combination of these two: $c_1y_1 + c_2y_2$ where c1 and c2 are two arbitrary constants determined by initial conditions.

General Solution Method

To find $y_1(t)$ and $y_2(t)$, we assume a solution of the exponential form: y’’ + Ay’ + By = 0, we assume the solution is of the exponential form $y = e^{rt}$ where r is a constant to be determined. The motivation for this assumption is that exponential functions are proportional to their own derivatives, which fits the structure of the ODE.

Substituting or plugging $y = e^{rt}, y'= re^{rt}$ and $y'' = r^2e^{rt}$ into the differential equation gives: $ar^2e^{rt} + bre^{rt} + ce^{rt} = 0$ or $r^2e^{rt} + Are^{rt} + Be^{rt} = 0$ ⇒[Cancelling the common factor $e^{rt}$ (which is never zero), we obtain the characteristic equation:] $ar^2 + br + c = 0$ or $r^2 + Ar + B = 0$.

This is a simple quadratic equation in r. The form of the general solution to the ODE depends on the nature of the roots of this quadratic equation. The nature of the roots leads to three cases:

  1. Distinct Real Roots
  2. Repeated Real Roots
  3. Complex Conjugate Roots

Cases and Physical Examples: The Mass-Spring-Damper Model

To provide physical intuition for the three algebraic cases of the roots, we will use the foundational example of a mechanical mass-spring-damper system

Consider a mechanical system where a mass m is attached to a spring (with spring constant k) and a damper or dashpot (with damping constant c). The mass moves along a vertical x-axis, and its displacement from the equilibrium position at time t is denoted by x(t). The origin of the x-axis is chosen so that the mass’s equilibrium position corresponds to x = 0.

Forces acting on the mass:

Newton’s Second Law Applied. The total force acting on the mass is the sum of the spring and damping forces. The movement of the mass is governed by Newton’s second law, which can be written as: $ma = mx'' = F_{total} = F_{spring} + F_{damping} = -kx -cx$ where m is the mass and a is the acceleration (Refer to Figure 1 for a visual representation and aid in understanding it)

Damping forces are a special type of force that are used to slow down or stop a motion. A dashpot is a device for cushioning or damping a movement (as of a mechanical part) to avoid shock.

Undamped and Damped Oscillations

This gives the equation of motion: mx’’ + cx’ + kx = 0 ↭[Dividing both sides by m, we get the simplified or standard form:] $x'' + \frac{c}{m}x'+ \frac{k}{m}x = 0$.

This is a second-order linear homogeneous ODE with constant coefficients. It models the oscillatory motion of the mass-spring-damper system. To solve this equation, we need to find two independent solutions.

The corresponding characteristic equation for this physical system is: $mr^2 + cr + k = 0$

The roots are: $r = \frac{-c \pm \sqrt{c^2 - 4mk}}{2m}$. The three cases for the discriminant ($c^2 - 4mk$) define the physical “damping regimes” of the system

Example: Solving y’’ + 4y’ + 3y = 0

Consider the homogeneous linear ODE: y’’ + 4y’ + 3y = 0. This is a second‑order linear ODE with constant coefficients, so the standard method is to solve its characteristic equation.

Step 1: Write the Characteristic Equation. Replace y with $e^{rt}$. The characteristic equation for the differential equation is: r2 + 4r + 3 = 0

Step 2: Solve for the roots. r2 + 4y + 3 = 0↭[Factoring gives] (r + 3)(r + 1) = 0. Thus, the roots are r1 = -3 and r2 = -1. These are real and distinct, which already tells us the qualitative behavior: the solution is a sum of two decaying exponentials.

Step 3: Write the General Solution. For real, distinct roots $r_1$ and $r_2$, the general solution is: $y(t) = c_1e^{-3t} + c_2e^{-t}$

Substituting our roots: y = $c_1e^{-3t} + c_2e^{-t}$

Step 4: Apply Initial Conditions. Suppose we are given the initial condition y(0) = 1, y’(0) = 0.

To determine c1 and c2, we first need to calculate the derivate of y: $y' =-3c_1e^{-3t}- c_2e^{-t} $

Substituting the initial condition t = 0, y(0) = 1: $1 = c_1 + c_2$.

Similarly, substituting y’(0) = 0, $0 = -3c_1 -3c_2$.

Adding both $1 = -2c_1$, so $c_1 = -\frac{1}{2}, c_2 = -3c_1 = \frac{3}{2}$

Step 5: Write the Particular (Final) Solution. The final solution to the differential equation is: $\boxed{y = \frac{-1}{2}e^{-3t} + \frac{3}{2}e^{-t}}$ (Refer to Figure 2 for a visual representation and aid in understanding it). This solution is a weighted combination of two decaying exponentials. The $e^{-t}$ term decays more slowly, so it dominates the long‑term behavior.

Overdamped system

Cases Based on the Roots

Case 1: Real and Distinct Roots (Overdamped System)

When the characteristic equation has two distinct real roots, say $r_1$ and $r_2$, then the general solution is: $\boxed{y = c_1e^{r_1t} + c_2e^{r_2t}}$.

Physical Interpretation (Mechanical/Electrical Systems)

In mechanical or electrical systems, this scenario corresponds to an overdamped system:

Imagine pushing a door through thick mud. It moves back to rest, but sluggishly, and never oscillates. This is exactly what happens in our example: both roots are negative, so both exponentials decay, and the motion is a smooth, non‑oscillatory return to equilibrium.

Case 2. Complex roots (Underdamped System)

A second-order linear homogeneous ODE with constant coefficients has the general form: y′′ + Ay′ +By = 0. To solve this ODE, we assume a solution of the form: y(t) = ert. Substituting or plugging $y = e^{rt}$ into the differential equation gives:

$r^2e^{rt} + Are^{rt} + Be^{rt} = 0$ ⇒[Cancelling the common factor $e^{rt}$ (which is never zero), we obtain the characteristic equation:] $r^2 + Ar + B = 0$.

When the characteristic equation of a second-order linear homogeneous ODE with constant coefficients, y′′ + Ay′ + By = 0 has a negative discriminant ($A^2 - 4B \lt 0$), the roots of the equation are complex conjugates.

These roots take the form r = a ± bi, where a and b are real numbers and $b \ne 0$. This case describes an underdamped system in physics, which is characterized by oscillatory behavior where the amplitude of the oscillations gradually decreases over time.

Mathematical Derivation

We get two complex solutions, one of them is $y_{complex}(t) = e^{(a+bi)t} = e^{at}e^{bt i} =[\text{Using Euler's Formula}] e^{at}(cos(bt)+isin(bt))$.

This is a valid complex solution to our ODE. However, to model real-world physical systems, we seek independent real solutions. A key theorem (which we will prove below) states that the real and imaginary parts of any complex solution are themselves real solutions.

Therefore, we can extract our two independent real solutions from $y_{complex}(t)$:

  1. The Real Part: $e^{at}cos(bt)$
  2. The imaginary part: $e^{at}sin(bt)$

The General Solution

A linear combination of these two independent real solutions gives us the general solution for the complex root case.

The general solution to the second-order linear ODE with complex roots is: $y(t) = e^{at}( c_1\cos(bt) + c_2\sin(bt))$ where:

Polar Representation: Amplitude and Phase

A more physically intuitive way to express this general solution is by using trigonometric identities to combine the sine and cosine terms into a single, phase-shifted oscillation: $\boxed{y(t) = Ce^{at}(cos(bt- Φ))}$ where:

Theorem: Real and Imaginary Parts are Solutions

This is a fundamental theorem that allows us to find real solutions from complex ones.

Theorem. If y(t) = u(t) + iv(t) is a complex solution to a second-order linear homogeneous differential equation y'' + Ay' + By = 0 with real coefficients A and B, then both u(t) and v(t) satisfy the differential equation and are real solutions themselves.

Proof.

  1. By assumption u(t) + iv(t) is a solution to a differential equation y’’ + Ay’ + By = 0, substituting into the differential equation: (u + iv)’’ + A(u + iv)’ + B(u + iv) = 0.
  2. Compute derivatives, remember that the derivative of a sum is the sum of the derivatives, and then group the real and imaginary parts, taking into consideration that A and B are real numbers:(u’’ + Au’ + Bu) + (v’’ + Av’ + Bv)i = 0.
  3. Set Real and Imaginary Parts to Zero: For the entire expression on the left to be zero, both the real and imaginary components must be zero. This directly implies: u’’ + Au’ + Bu = 0, v’’ + Av’ + Bv = 0.
  4. Conclusion. This shows that both u(t) and v(t) satisfy the differential equation. Thus, u(t) and v(t) are real-valued solutions to our original ODE.

Worked Example: Damped Oscillations with Specific Initial Conditions

Let’s solve the specific underdamped system y’’ + 4y’ + 5y = 0, given the initial conditions y(0)= 1 and y′(0) = 0.

Step 1: Formulate the Characteristic Equation. The characteristic equation for the differential equation is: r2 + 4r + 5 = 0.

Step 2. Solve the Characteristic Equatio. r2 + 4r + 5 = 0↭[Using the quadratic formula:] $r = \frac{-4±\sqrt{-4}}{2} = -2±i$. Thus, the roots are: r = -2 ± i. Here, we have a = −2 and b = 1.

Step 3: Write the General Solution. Based on our values of a and b, the general solution is: y = $e^{-2t}(c_1cos(t) + c_2sin(t))$.

Step 4. Apply the initial conditions. Given y(0) = 1, y’(0) = 0.

y(0) = 1 = $e^{0}(c_1cos(0) + c_2sin(0)) = c_1,$ so c1 = 1.

Next, we we differentiate y(t): $y'(t) = \frac{d}{dt}\left[ e^{-2t} \right] \cdot (c_1\cos(t) + c_2\sin(t)) + e^{-2t} \cdot \frac{d}{dt}\left[ c_1\cos(t) + c_2\sin(t) \right]$

$y'(t) = -2e^{-2t}(c_1\cos(t) + c_2\sin(t)) + e^{-2t}(-c_1\sin(t) + c_2\cos(t))$

Use $y'(0) = 0$ and $c_1 = 1$: Plug in $t=0$ and solve for $c_2$:

$0 = -2e^{0}(c_1\cos(0) + c_2\sin(0)) + e^{0}(-c_1\sin(0) + c_2\cos(0))= -2(1 \cdot 1 + c_2 \cdot 0) + 1(-1 \cdot 0 + c_2 \cdot 1)$

$0 = -2c_1 + c_2 = -2(1) + c_2 \implies c_2 = 2$

Step 5: Write the Unique Particular Solution. The unique particular solution is: $y(t)=e^{-2t}(\cos(t) + 2\sin(t))$

This expression can also be written in its polar form, which provides better insight into the amplitude and phase: $\boxed{y(t) = e^{-2t}(\cos(t) + 2\sin(t)) = \sqrt{5}e^{-2t}\cos(t - \phi)}$ where $c = \sqrt{c_1^2+c_2^2} = \sqrt{1^2+2^2} = \sqrt{5}$ and $\phi$ is a phase angle given by $\phi = arctan(\frac{c_2}{c_1}) = tan^{-1}(\frac{2}{1}) \approx 63.43\deg [\text{or (degrees × π) ÷ 180 = radians}] 1.107$ radians (Refer to Figure 3 for a visual representation and aid in understanding it)

Undamped and Damped Oscillations

Physical Interpretation of Underdamped Systems

Our worked example $y(t) = Ce^{at}\cos(bt -\phi)$ with a < 0 corresponds to an underdamped system, where the system oscillates with decreasing amplitude due to damping. The exponential term eat (with a < 0) represents the damping effect, while the trigonometric functions model the oscillatory behavior.

Bibliography

This content is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License and is based on MIT OpenCourseWare.
  1. NPTEL-NOC IITM, Introduction to Galois Theory.
  2. Algebra, Second Edition, by Michael Artin.
  3. LibreTexts, Calculus and Calculus 3e (Apex). Abstract and Geometric Algebra, Abstract Algebra: Theory and Applications (Judson).
  4. Field and Galois Theory, by Patrick Morandi. Springer.
  5. Michael Penn, and MathMajor.
  6. Contemporary Abstract Algebra, Joseph, A. Gallian.
  7. YouTube’s Andrew Misseldine: Calculus. College Algebra and Abstract Algebra.
  8. MIT OpenCourseWare [18.03 Differential Equations, Spring 2006], YouTube by MIT OpenCourseWare.
  9. Calculus Early Transcendentals: Differential & Multi-Variable Calculus for Social Sciences.
Bitcoin donation

JustToThePoint Copyright © 2011 - 2026 Anawim. ALL RIGHTS RESERVED. Bilingual e-books, articles, and videos to help your child and your entire family succeed, develop a healthy lifestyle, and have a lot of fun. Social Issues, Join us.

This website uses cookies to improve your navigation experience.
By continuing, you are consenting to our use of cookies, in accordance with our Cookies Policy and Website Terms and Conditions of use.