7. Differential Equations

Second-order Linear Equations

Second-Order Linear Equations

Introduction: Why these equations matter 🚀

students, many real systems in engineering and science are not described well by simple first-order models. When motion, vibration, electricity, or heat depends on both a quantity and how quickly it is changing, a second-order model is often needed. A second-order linear differential equation is one of the most important tools for describing these systems.

In this lesson, you will learn:

  • what a second-order linear equation is,
  • how to recognize the main terms and notation,
  • how these equations connect to earlier differential equations topics,
  • and how engineers use them to model real situations like springs, circuits, and bridges ⚙️.

The big idea is this: a second-order equation involves a function and its second derivative, and “linear” means the function and its derivatives appear only to the first power and are not multiplied together.

What is a second-order linear differential equation?

A general second-order linear differential equation has the form

$$a_2(x)\,y'' + a_1(x)\,y' + a_0(x)\,y = g(x).$$

Here:

  • $y$ is the unknown function,
  • $y'$ is the first derivative,
  • $y''$ is the second derivative,
  • $a_2(x)$, $a_1(x)$, and $a_0(x)$ are given functions of $x$,
  • and $g(x)$ is the forcing term, or the input.

The equation is called linear because $y$, $y'$, and $y''$ appear linearly. That means they are not raised to powers like $\left(y\right)^2$, and they are not multiplied together like $y\,y'$.

A special and very common case is when the coefficients are constants:

$$a y'' + b y' + c y = g(x),$$

where $a$, $b$, and $c$ are constants and $a \neq 0$.

If $g(x) = 0$, the equation is called homogeneous:

$$a y'' + b y' + c y = 0.$$

If $g(x) \neq 0$, it is called nonhomogeneous.

This distinction matters because homogeneous equations describe the natural behavior of the system, while nonhomogeneous equations include outside influences such as forcing, driving, or external loads.

How to recognize linear versus non-linear equations

students, one of the first skills is identifying whether an equation is linear. This is important because linear equations have powerful solution methods.

An equation is not linear if it contains any of these features:

  • $y^2$, $\left(y'\right)^2$, or $y\,y'$,
  • $\sin\left(y\right)$ or $e^y$,
  • coefficients depending on $y$ instead of just the independent variable.

For example:

  • $y'' + 3y' + 2y = 0$ is linear.
  • $y'' + y\,y' = 0$ is not linear.
  • $y'' + \sin\left(y\right) = 0$ is not linear.

A good way to think about linearity is that the unknown function and its derivatives are treated like building blocks that can be added together, but not multiplied together or placed inside nonlinear functions.

Why second derivatives appear in engineering models

The second derivative often measures acceleration or curvature. This is why second-order equations show up in many physical problems.

For example, in motion along a straight line:

  • $y$ may represent position,
  • $y'$ may represent velocity,
  • $y''$ may represent acceleration.

In a mass-spring system, Newton’s second law can lead to an equation like

$$m y'' + c y' + k y = F(t),$$

where:

  • $m$ is mass,
  • $c$ is damping,
  • $k$ is spring stiffness,
  • $F(t)$ is an external force.

This model appears in vehicle suspensions, building vibrations, and machinery design. The equation tells us how the system moves over time and whether it settles down, keeps oscillating, or is pushed by an outside force.

Homogeneous equations and characteristic equations

When the coefficients are constant, the homogeneous equation

$$a y'' + b y' + c y = 0$$

can often be solved using an exponential trial solution of the form

$$y = e^{r x}.$$

Substituting this into the equation gives the characteristic equation:

$$a r^2 + b r + c = 0.$$

The roots of this algebraic equation tell us the shape of the solution.

Case 1: two distinct real roots

If the roots are $r_1$ and $r_2$ with $r_1 \neq r_2$, then the solution is

$$y = C_1 e^{r_1 x} + C_2 e^{r_2 x}.$$

Case 2: repeated real root

If the characteristic equation has one repeated root $r$, then the solution is

$$y = \left(C_1 + C_2 x\right)e^{r x}.$$

Case 3: complex roots

If the roots are $r = \alpha \pm \beta i$, then the solution is

$$y = e^{\alpha x}\left(C_1 \cos\left(\beta x\right) + C_2 \sin\left(\beta x\right)\right).$$

This form is especially important for oscillating systems. The sine and cosine terms describe repeated motion, while $e^{\alpha x}$ shows whether the motion grows or decays.

Worked example: solving a simple homogeneous equation

Consider

$$y'' - 5y' + 6y = 0.$$

The characteristic equation is

$$r^2 - 5r + 6 = 0.$$

Factor it:

$$\left(r - 2\right)\left(r - 3\right) = 0.$$

So the roots are $r = 2$ and $r = 3$. The solution is

$$y = C_1 e^{2x} + C_2 e^{3x}.$$

This solution shows two independent exponential behaviors combined together. The constants $C_1$ and $C_2$ are chosen when initial conditions are given, such as $y\left(0\right)$ and $y'\left(0\right)$.

For example, if you know the position and velocity at the start, you can use those two conditions to solve for the two constants. That is one major difference from first-order equations: a second-order equation usually needs two initial conditions.

Nonhomogeneous equations and particular solutions

When the equation includes a forcing term,

$$a y'' + b y' + c y = g(x),$$

the full solution has two parts:

$$y = y_c + y_p,$$

where:

  • $y_c$ is the complementary solution, also called the homogeneous solution,
  • $y_p$ is a particular solution that fits the forcing term.

This idea is called the superposition principle. It works because the equation is linear.

For example, consider

$$y'' - y = e^x.$$

The complementary solution comes from

$$r^2 - 1 = 0,$$

so

$$y_c = C_1 e^x + C_2 e^{-x}.$$

To find a particular solution, we must be careful because $e^x$ is already part of $y_c$. A suitable choice is

$$y_p = A x e^x.$$

After substituting and solving for $A$, we get the particular solution. The final answer is then the sum of $y_c$ and $y_p$.

This example shows an important pattern: the forcing term determines the form of the particular solution, but the homogeneous part is still essential.

Connection to real-world systems 🌍

Second-order linear equations are not just abstract math. They appear in many engineering settings:

  • Mechanical systems: mass-spring-damper models describe vibrations and shocks.
  • Electrical circuits: a series $RLC$ circuit may be modeled by a second-order equation for charge $q\left(t\right)$.
  • Structural engineering: buildings and bridges can be modeled to study vibration and resonance.
  • Control systems: designers use these equations to predict stability and response.

For example, a damped spring-mass system might be written as

$$m y'' + c y' + k y = 0.$$

If the damping is strong enough, the motion dies out. If damping is small, oscillations may continue for a while. If the external force is periodic, resonance can occur when the forcing frequency matches the system’s natural tendency to oscillate.

These models help engineers predict whether a system is safe, efficient, and stable.

How this topic fits within Differential Equations

students, second-order linear equations are a major step beyond first-order differential equations. In the earlier parts of Differential Equations, you may study equations such as separable equations or first-order linear equations. Those ideas teach how rates of change can be modeled and solved.

Second-order linear equations extend this by involving a second derivative, which means the system depends on both its current rate of change and how that rate itself changes. This makes the models richer and more realistic.

So within the broader topic of Differential Equations, second-order linear equations are important because they:

  • model more complex systems,
  • introduce new solution methods,
  • connect directly to physics and engineering,
  • and prepare you for more advanced topics such as systems of differential equations and Laplace transforms.

Conclusion âś…

Second-order linear equations are a key part of Engineering Mathematics. They have the general form

$$a_2\left(x\right)y'' + a_1\left(x\right)y' + a_0\left(x\right)y = g\left(x\right),$$

and they describe systems where acceleration, curvature, or oscillation is important. The homogeneous case leads to characteristic equations, while the nonhomogeneous case adds forcing and requires both complementary and particular solutions.

Understanding these equations helps you model real engineering problems and connects smoothly with earlier Differential Equations lessons. If you can recognize the form of the equation, identify whether it is homogeneous, and understand what the derivatives mean physically, you have built a strong foundation for later topics.

Study Notes

  • A second-order linear differential equation contains $y''$ and has the form $a_2\left(x\right)y'' + a_1\left(x\right)y' + a_0\left(x\right)y = g\left(x\right)$.
  • It is linear when $y$, $y'$, and $y''$ appear only to the first power and are not multiplied together.
  • If $g\left(x\right) = 0$, the equation is homogeneous; if $g\left(x\right) \neq 0$, it is nonhomogeneous.
  • Constant-coefficient homogeneous equations can often be solved using the trial solution $y = e^{r x}$.
  • The characteristic equation is $a r^2 + b r + c = 0$ for $a y'' + b y' + c y = 0$.
  • Distinct real roots give $y = C_1 e^{r_1 x} + C_2 e^{r_2 x}$.
  • A repeated root gives $y = \left(C_1 + C_2 x\right)e^{r x}$.
  • Complex roots give $y = e^{\alpha x}\left(C_1 \cos\left(\beta x\right) + C_2 \sin\left(\beta x\right)\right)$.
  • Nonhomogeneous solutions are written as $y = y_c + y_p$.
  • Second-order linear equations model springs, circuits, vibrations, and many other real systems.

Practice Quiz

5 questions to test your understanding

Second-order Linear Equations — Engineering Mathematics | A-Warded