Second-Order Linear Differential Equations, Mechanical Vibrations, and Variable Coefficient Methods

Fundamentals of Second-Order Linear Differential Equations

Second-order differential equations play a central role in mathematics and physics because they model physical systems governed by acceleration, such as Newton's second law of motion, my′′(t)=F(t)m y''(t) = F(t). The general form of a second-order linear differential equation is given by:

a2(x)y′′+a1(x)y′+a0(x)y=f(x)a_2(x)y'' + a_1(x)y' + a_0(x)y = f(x)

where a2(x)≠0a_2(x) \neq 0 on the interval of interest. When the forcing function f(x)f(x) is identically zero, the equation is called homogeneous:

a2(x)y′′+a1(x)y′+a0(x)y=0a_2(x)y'' + a_1(x)y' + a_0(x)y = 0

Dividing through by the leading coefficient function a2(x)a_2(x) yields the standard homogeneous form:

y′′+p(x)y′+q(x)y=0y'' + p(x)y' + q(x)y = 0

where p(x)=a1(x)a2(x)p(x) = \frac{a_1(x)}{a_2(x)} and q(x)=a0(x)a2(x)q(x) = \frac{a_0(x)}{a_2(x)}.

While a first-order differential equation such as y′=kyy' = ky requires only a single initial condition y(0)=y0y(0) = y_0 to uniquely determine an arbitrary constant, a second-order linear differential equation requires two initial conditions to determine a unique specific solution:

y(0)=y0y(0) = y_0

y′(0)=v0y'(0) = v_0

Geometrically and physically, these conditions specify the initial position and the initial velocity of the state variable.

The fundamental algebraic structure of the solution space for homogeneous linear differential equations is governed by the Principle of Superposition. Let y1(x)y_1(x) and y2(x)y_2(x) be any two solutions of the homogeneous equation a2(x)y′′+a1(x)y′+a0(x)y=0a_2(x)y'' + a_1(x)y' + a_0(x)y = 0. Then any linear combination:

y(x)=C1y1(x)+C2y2(x)y(x) = C_1 y_1(x) + C_2 y_2(x)

is also a solution of the differential equation for arbitrary constants C1C_1 and C2C_2.

This principle can be verified directly by substitution. Substituting y(x)=C1y1(x)+C2y2(x)y(x) = C_1 y_1(x) + C_2 y_2(x) into the differential operator yields:

a2(x)(C1y1+C2y2)′′+a1(x)(C1y1+C2y2)′+a0(x)(C1y1+C2y2)a_2(x)(C_1 y_1 + C_2 y_2)'' + a_1(x)(C_1 y_1 + C_2 y_2)' + a_0(x)(C_1 y_1 + C_2 y_2)

=C1[a2(x)y1′′+a1(x)y1′+a0(x)y1]+C2[a2(x)y2′′+a1(x)y2′+a0(x)y2]= C_1 [a_2(x)y_1'' + a_1(x)y_1' + a_0(x)y_1] + C_2 [a_2(x)y_2'' + a_1(x)y_2' + a_0(x)y_2]

Because y1y_1 and y2y_2 are solutions, both bracketed expressions equal zero:

=C1(0)+C2(0)=0= C_1(0) + C_2(0) = 0

To construct the general solution to a second-order homogeneous linear equation, the two solutions must be linearly independent. Not every pair of solutions suffices; for instance, the functions exe^x and 2ex2e^x are constant multiples of each other, meaning they span only a one-dimensional solution space. Conversely, for the equation y′′−y=0y'' - y = 0, the two functions y1(x)=exy_1(x) = e^x and y2(x)=e−xy_2(x) = e^{-x} are linearly independent because neither is a scalar multiple of the other. Thus, the general solution of y′′−y=0y'' - y = 0 is:

y(x)=C1ex+C2e−xy(x) = C_1 e^x + C_2 e^{-x}

Homogeneous Equations with Constant Coefficients

When the coefficient functions are real constants, the equation takes the form:

ay′′+by′+cy=0a y'' + b y' + c y = 0

where a≠0a \neq 0, and bb and cc are real constants. Because differentiating exponential functions reproduces the original function scaled by a constant factor, a trial solution of the form y=erxy = e^{rx} is utilized. Differentiating yields y′=rerxy' = r e^{rx} and y′′=r2erxy'' = r^2 e^{rx}. Substituting these derivatives into the differential equation gives:

a(r2erx)+b(rerx)+c(erx)=0a(r^2 e^{rx}) + b(r e^{rx}) + c(e^{rx}) = 0

(ar2+br+c)erx=0(a r^2 + b r + c)e^{rx} = 0

Since erx≠0e^{rx} \neq 0 for all real and complex values of xx, the polynomial expression in parentheses must vanish. This leads to the characteristic equation (also known as the auxiliary equation):

ar2+br+c=0a r^2 + b r + c = 0

The nature of the roots of this quadratic polynomial determines the functional form of the general solution. There are three mutually exclusive cases based on the discriminant Δ=b2−4ac\Delta = b^2 - 4ac.

In Case 1, the discriminant is strictly positive (b2−4ac>0b^2 - 4ac > 0), yielding two distinct real roots r1≠r2r_1 \neq r_2. In this scenario, the two solutions y1(x)=er1xy_1(x) = e^{r_1 x} and y2(x)=er2xy_2(x) = e^{r_2 x} are linearly independent. The general solution is:

y(x)=C1er1x+C2er2xy(x) = C_1 e^{r_1 x} + C_2 e^{r_2 x}

Consider the differential equation y′′−5y′+6y=0y'' - 5y' + 6y = 0. Its characteristic equation is:

r2−5r+6=0r^2 - 5r + 6 = 0

(r−2)(r−3)=0(r - 2)(r - 3) = 0

This gives the distinct real roots r1=2r_1 = 2 and r2=3r_2 = 3. The general solution is:

y(x)=C1e2x+C2e3xy(x) = C_1 e^{2x} + C_2 e^{3x}

To solve the initial value problem with initial conditions y(0)=1y(0) = 1 and y′(0)=0y'(0) = 0, first evaluate y(0)y(0):

y(0)=C1e0+C2e0=C1+C2=1y(0) = C_1 e^0 + C_2 e^0 = C_1 + C_2 = 1

Next, compute the derivative of the general solution:

y′(x)=2C1e2x+3C2e3xy'(x) = 2 C_1 e^{2x} + 3 C_2 e^{3x}

Evaluating the derivative at x=0x = 0 yields:

y′(0)=2C1+3C2=0y'(0) = 2 C_1 + 3 C_2 = 0

From the first equation, C1=1−C2C_1 = 1 - C_2. Substituting this into the velocity equation gives:

2(1−C2)+3C2=02(1 - C_2) + 3 C_2 = 0

2−2C2+3C2=02 - 2 C_2 + 3 C_2 = 0

C2=−2C_2 = -2

C1=1−(−2)=3C_1 = 1 - (-2) = 3

Thus, the specific solution to the initial value problem is:

y(x)=3e2x−2e3xy(x) = 3 e^{2x} - 2 e^{3x}

In Case 2, the discriminant is zero (b2−4ac=0b^2 - 4ac = 0), yielding a single repeated real root r=−b2ar = -\frac{b}{2a}. The exponential guess yields only one independent solution, y1(x)=erxy_1(x) = e^{rx}. A second linearly independent solution is formed by multiplying by xx, giving y2(x)=xerxy_2(x) = x e^{rx}. The general solution is:

y(x)=(C1+C2x)erxy(x) = (C_1 + C_2 x)e^{rx}

Consider the equation y′′+6y′+9y=0y'' + 6y' + 9y = 0 subject to initial conditions y(0)=2y(0) = 2 and y′(0)=−4y'(0) = -4. The characteristic equation is:

r2+6r+9=0r^2 + 6r + 9 = 0

(r+3)2=0(r + 3)^2 = 0

This yields the repeated root r=−3r = -3. The general solution is:

y(x)=(C1+C2x)e−3xy(x) = (C_1 + C_2 x)e^{-3x}

Applying the first initial condition y(0)=2y(0) = 2:

y(0)=(C1+C2(0))e0=C1=2y(0) = (C_1 + C_2(0))e^0 = C_1 = 2

Differentiating the general solution via the product rule:

y′(x)=C2e−3x−3(C1+C2x)e−3xy'(x) = C_2 e^{-3x} - 3(C_1 + C_2 x)e^{-3x}

Applying the second initial condition y′(0)=−4y'(0) = -4:

y′(0)=C2−3C1=−4y'(0) = C_2 - 3 C_1 = -4

C2−3(2)=−4C_2 - 3(2) = -4

C2−6=−4C_2 - 6 = -4

C2=2C_2 = 2

Therefore, the specific solution to the initial value problem is:

y(x)=(2+2x)e−3xy(x) = (2 + 2x)e^{-3x}

In Case 3, the discriminant is strictly negative (b2−4ac<0b^2 - 4ac < 0), yielding complex conjugate roots of the form r=ω±iϵr = \omega \pm i \epsilon, where ϵ≠0\epsilon \neq 0. Using Euler's formula, eiθ=cos⁡(θ)+isin⁡(θ)e^{i \theta} = \cos(\theta) + i \sin(\theta), the complex exponential solutions can be transformed into real-valued basis functions:

e(ω±iϵ)x=eωxe±iϵx=eωx(cos⁡(ϵx)±isin⁡(ϵx))e^{(\omega \pm i \epsilon)x} = e^{\omega x} e^{\pm i \epsilon x} = e^{\omega x}(\cos(\epsilon x) \pm i \sin(\epsilon x))

Taking linear combinations to extract the real and imaginary components yields the general real solution:

y(x)=eωx(C1cos⁡(ϵx)+C2sin⁡(ϵx))y(x) = e^{\omega x}(C_1 \cos(\epsilon x) + C_2 \sin(\epsilon x))

Consider the undamped harmonic oscillator y′′+4y=0y'' + 4y = 0 with y(0)=0y(0) = 0 and y′(0)=6y'(0) = 6. The characteristic equation is:

r2+4=0r^2 + 4 = 0

r=±2ir = \pm 2i

Here, the real part is ω=0\omega = 0 and the imaginary frequency parameter is ϵ=2\epsilon = 2. The general solution is:

y(x)=C1cos⁡(2x)+C2sin⁡(2x)y(x) = C_1 \cos(2x) + C_2 \sin(2x)

Applying the initial position condition y(0)=0y(0) = 0:

y(0)=C1cos⁡(0)+C2sin⁡(0)=C1=0y(0) = C_1 \cos(0) + C_2 \sin(0) = C_1 = 0

Differentiating the remaining term y(x)=C2sin⁡(2x)y(x) = C_2 \sin(2x):

y′(x)=2C2cos⁡(2x)y'(x) = 2 C_2 \cos(2x)

Applying the initial velocity condition y′(0)=6y'(0) = 6:

y′(0)=2C2=6y'(0) = 2 C_2 = 6

C2=3C_2 = 3

Thus, the solution is purely oscillatory with constant amplitude:

y(x)=3sin⁡(2x)y(x) = 3 \sin(2x)

Now consider an equation exhibiting oscillation with decay: y′′+2y′+5y=0y'' + 2y' + 5y = 0. The characteristic equation is:

r2+2r+5=0r^2 + 2r + 5 = 0

r=−2±4−202=−2±−162=−1±2ir = \frac{-2 \pm \sqrt{4 - 20}}{2} = \frac{-2 \pm \sqrt{-16}}{2} = -1 \pm 2i

Here, ω=−1\omega = -1 and ϵ=2\epsilon = 2. The general solution is:

y(x)=e−x(C1cos⁡(2x)+C2sin⁡(2x))y(x) = e^{-x}(C_1 \cos(2x) + C_2 \sin(2x))

Unlike the pure oscillation of y′′+4y=0y'' + 4y = 0, the presence of the negative real part ω=−1\omega = -1 introduces the damping envelope e−xe^{-x}, causing the oscillations to attenuate toward zero as x→∞x \rightarrow \infty.

A quick classification of characteristic roots is illustrated by comparing y′′−9y=0y'' - 9y = 0 and y′′+6y′+9y=0y'' + 6y' + 9y = 0. In the former, r2−9=0  ⟹  r=±3r^2 - 9 = 0 \implies r = \pm 3, which corresponds to Case 1 (two distinct real roots). In the latter, r2+6r+9=(r+3)2=0  ⟹  r=−3r^2 + 6r + 9 = (r + 3)^2 = 0 \implies r = -3, which corresponds to Case 2 (a repeated real root).

Mathematical Modeling of Mass-Spring Systems

Horizontal mass-spring system showing mass displaced from equilibrium position

Consider a body of mass mm (measured in kg\text{kg}) attached to a spring moving horizontally on a surface. Let x(t)x(t) represent the signed displacement of the mass from its static equilibrium position at time tt, where displacement to the right is defined as positive (x>0x > 0) and displacement to the left is negative (x<0x < 0). Static equilibrium corresponds to x=0x = 0.

According to Hooke's Law, when a spring is stretched or compressed, it exerts a restoring force FsF_s proportional to the displacement from equilibrium:

Fs=−kxF_s = -k x

where k>0k > 0 is the spring constant, measured in N/m\text{N/m}. The negative sign indicates that the restoring force always opposes the direction of displacement.

When resistive forces are present, such as viscous fluid drag or mechanical friction, they are modeled to first approximation as proportional to velocity:

Fd=−cx′F_d = -c x'

where c>0c > 0 is the damping coefficient, measured in N⋅s/m\text{N}\cdot\text{s/m}. The negative sign reflects that friction opposes the instantaneous direction of motion.

Let Fext(t)F_{\text{ext}}(t) denote an externally applied driving force measured in Newtons (N\text{N}). By Newton's second law, the equation of motion is mx′′=∑Fm x'' = \sum F:

mx′′=Fs+Fd+Fext(t)m x'' = F_s + F_d + F_{\text{ext}}(t)

mx′′=−kx−cx′+Fext(t)m x'' = -k x - c x' + F_{\text{ext}}(t)

Rearranging gives the second-order linear differential equation governing mechanical vibrations:

mx′′+cx′+kx=Fext(t)m x'' + c x' + k x = F_{\text{ext}}(t)

When no driving force acts on the system (Fext(t)=0F_{\text{ext}}(t) = 0), the motion is classified as free motion:

mx′′+cx′+kx=0m x'' + c x' + k x = 0

Two springs connected in parallel to a mass

When multiple springs are combined, their equivalent stiffness depends on their physical arrangement. For two springs arranged in parallel with spring constants k1k_1 and k2k_2, both springs experience the exact same displacement xx. The net restoring force is the sum of the individual forces:

F=F1+F2=−k1x−k2x=−(k1+k2)xF = F_1 + F_2 = -k_1 x - k_2 x = -(k_1 + k_2)x

Therefore, the effective spring constant for springs in parallel is:

keff=k1+k2k_{\text{eff}} = k_1 + k_2

Two springs connected in series to a mass

For two springs arranged in series, both springs transmit the exact same internal force magnitude FF, while their individual displacements x1x_1 and x2x_2 add to produce the total displacement x=x1+x2x = x_1 + x_2. Since x1=−Fk1x_1 = -\frac{F}{k_1} and x2=−Fk2x_2 = -\frac{F}{k_2}:

x=−F(1k1+1k2)x = -F\left(\frac{1}{k_1} + \frac{1}{k_2}\right)

Solving for the force FF gives:

F=−(1k1+1k2)−1xF = -\left(\frac{1}{k_1} + \frac{1}{k_2}\right)^{-1} x

Thus, the effective spring constant for two springs in series is:

keff=(1k1+1k2)−1=k1k2k1+k2k_{\text{eff}} = \left(\frac{1}{k_1} + \frac{1}{k_2}\right)^{-1} = \frac{k_1 k_2}{k_1 + k_2}

Vertical mass-spring system suspended from a ceiling

In a vertical mass-spring system, gravity acts continuously downward. When a mass mm is attached to an unstretched vertical spring, gravity causes an initial static elongation Δ\Delta until the system reaches static equilibrium, satisfying:

kΔ=mgk \Delta = m g

Let x(t)x(t) represent the additional dynamic displacement measured downward from this static equilibrium position. The total elongation of the spring is x+Δx + \Delta. The net downward force acting on the mass is:

Fnet=mg−k(x+Δ)=mg−kx−kΔF_{\text{net}} = m g - k(x + \Delta) = m g - k x - k \Delta

Because kΔ=mgk \Delta = m g, the gravitational force cancels exactly with the static spring pre-tension:

Fnet=mg−kx−mg=−kxF_{\text{net}} = m g - k x - m g = -k x

Applying Newton's second law shows that the dynamic equation of motion for a vertical spring, when measured from static equilibrium, is identical to that of the horizontal system:

mx′′+cx′+kx=Fext(t)m x'' + c x' + k x = F_{\text{ext}}(t)

Dynamics of Free Undamped Vibrations

When damping is negligible (c=0c = 0) and no external driving force acts (Fext=0F_{\text{ext}} = 0), the governing equation reduces to the undamped free oscillation model:

mx′′+kx=0m x'' + k x = 0

Dividing by the mass mm yields:

x′′+kmx=0x'' + \frac{k}{m} x = 0

The characteristic equation is mr2+k=0m r^2 + k = 0, which gives the purely imaginary roots:

r=±ikmr = \pm i \sqrt{\frac{k}{m}}

The parameter ω0=km\omega_0 = \sqrt{\frac{k}{m}} is defined as the natural angular frequency of the system, measured in rad/s\text{rad/s}. The general solution can be written as a linear combination of trigonometric functions:

x(t)=C1cos⁡(ω0t)+C2sin⁡(ω0t)x(t) = C_1 \cos(\omega_0 t) + C_2 \sin(\omega_0 t)

This linear combination can be expressed as a single phase-shifted cosine wave:

x(t)=Rcos⁡(ω0t−δ)x(t) = R \cos(\omega_0 t - \delta)

Using the cosine angle-difference identity, this expression expands to:

Rcos⁡(ω0t−δ)=Rcos⁡(δ)cos⁡(ω0t)+Rsin⁡(δ)sin⁡(ω0t)R \cos(\omega_0 t - \delta) = R \cos(\delta)\cos(\omega_0 t) + R \sin(\delta)\sin(\omega_0 t)

Matching coefficients with the original form gives:

C1=Rcos⁡(δ)C_1 = R \cos(\delta)

C2=Rsin⁡(δ)C_2 = R \sin(\delta)

Squaring and adding these equations yields the oscillation amplitude RR:

R2=C12+C22R^2 = C_1^2 + C_2^2

R=C12+C22R = \sqrt{C_1^2 + C_2^2}

Dividing the second equation by the first yields the phase angle δ\delta:

tan⁡(δ)=C2C1\tan(\delta) = \frac{C_2}{C_1}

A function u(t)u(t) is periodic if there exists a positive number T>0T > 0 such that u(t+T)=u(t)u(t + T) = u(t) for all tt. The smallest such value TT is the period. For x(t)=Rcos⁡(ω0t−δ)x(t) = R \cos(\omega_0 t - \delta), periodicity requires:

Rcos⁡(ω0(t+T)−δ)=Rcos⁡(ω0t−δ+ω0T)=Rcos⁡(ω0t−δ)R \cos(\omega_0(t + T) - \delta) = R \cos(\omega_0 t - \delta + \omega_0 T) = R \cos(\omega_0 t - \delta)

This equality holds when ω0T=2π\omega_0 T = 2\pi. Consequently, the period TT and natural cyclic frequency ff are:

T=2πω0T = \frac{2\pi}{\omega_0}

f=1T=ω02πf = \frac{1}{T} = \frac{\omega_0}{2\pi}

As a concrete example, consider an object of mass m=2 kgm = 2\,\text{kg} attached to a spring on a frictionless horizontal surface with spring constant k=8 N/mk = 8\,\text{N/m}. The initial displacement is x(0)=0.1 mx(0) = 0.1\,\text{m} and the initial velocity is x′(0)=0.2 m/sx'(0) = 0.2\,\text{m/s}. The governing differential equation is:

2x′′+8x=02 x'' + 8 x = 0

x′′+4x=0x'' + 4 x = 0

The natural angular frequency is:

ω0=km=82=2 rad/s\omega_0 = \sqrt{\frac{k}{m}} = \sqrt{\frac{8}{2}} = 2\,\text{rad/s}

The general solution is:

x(t)=C1cos⁡(2t)+C2sin⁡(2t)x(t) = C_1 \cos(2t) + C_2 \sin(2t)

Applying the initial condition x(0)=0.1 mx(0) = 0.1\,\text{m}:

x(0)=C1=0.1x(0) = C_1 = 0.1

Differentiating to obtain velocity:

x′(t)=−2C1sin⁡(2t)+2C2cos⁡(2t)x'(t) = -2 C_1 \sin(2t) + 2 C_2 \cos(2t)

Applying x′(0)=0.2 m/sx'(0) = 0.2\,\text{m/s}:

x′(0)=2C2=0.2x'(0) = 2 C_2 = 0.2

C2=0.1C_2 = 0.1

Thus, the specific equation of motion is:

x(t)=0.1cos⁡(2t)+0.1sin⁡(2t)x(t) = 0.1 \cos(2t) + 0.1 \sin(2t)

In a second scenario, a 0.1 kg0.1\,\text{kg} mass suspended vertically stretches a spring by 0.15 m0.15\,\text{m} under gravity (g=9.8 m/s2g = 9.8\,\text{m/s}^2). Using static equilibrium kΔ=mgk \Delta = m g:

k=mgΔ=0.1×9.80.15=0.980.15=9815≈6.533 N/mk = \frac{m g}{\Delta} = \frac{0.1 \times 9.8}{0.15} = \frac{0.98}{0.15} = \frac{98}{15} \approx 6.533\,\text{N/m}

If this mass and spring are placed on a frictionless horizontal surface in a vacuum, pulled 0.3 m0.3\,\text{m} to the right, and released with an initial leftward speed of 2 m/s2\,\text{m/s}, the angular frequency is:

ω0=km=98/150.1=98015=1963≈8.083 rad/s\omega_0 = \sqrt{\frac{k}{m}} = \sqrt{\frac{98/15}{0.1}} = \sqrt{\frac{980}{15}} = \sqrt{\frac{196}{3}} \approx 8.083\,\text{rad/s}

Approximating ω0≈8 rad/s\omega_0 \approx 8\,\text{rad/s}, the general solution is:

x(t)=C1cos⁡(8t)+C2sin⁡(8t)x(t) = C_1 \cos(8t) + C_2 \sin(8t)

The initial conditions are x(0)=0.3x(0) = 0.3 and x′(0)=−2x'(0) = -2 (the negative sign indicates leftward velocity). Substituting x(0)x(0)

x(0)=C1=0.3x(0) = C_1 = 0.3

Differentiating gives:

x′(t)=−8C1sin⁡(8t)+8C2cos⁡(8t)x'(t) = -8 C_1 \sin(8t) + 8 C_2 \cos(8t)

x′(0)=8C2=−2x'(0) = 8 C_2 = -2

C2=−0.25C_2 = -0.25

The resulting equation of motion is:

x(t)=0.3cos⁡(8t)−0.25sin⁡(8t)x(t) = 0.3 \cos(8t) - 0.25 \sin(8t)

Free Damped Vibrations and Damping Regimes

When viscous damping is included in free motion (Fext=0F_{\text{ext}} = 0), the equation of motion is:

mx′′+cx′+kx=0m x'' + c x' + k x = 0

with m>0m > 0, c>0c > 0, and k>0k > 0. The characteristic equation is:

mr2+cr+k=0m r^2 + c r + k = 0

Applying the quadratic formula yields the roots:

r=−c±c2−4mk2mr = \frac{-c \pm \sqrt{c^2 - 4mk}}{2m}

The sign of the discriminant Δ=c2−4mk\Delta = c^2 - 4mk defines three distinct physical damping regimes.

Underdamped motion occurs when c2<4mkc^2 < 4mk. In this case, the discriminant is negative, producing complex conjugate roots:

r=−γ±iωdr = -\gamma \pm i \omega_d

where the exponential decay parameter γ\gamma and the damped natural frequency (quasi-frequency) ωd\omega_d are defined as:

γ=c2m\gamma = \frac{c}{2m}

ωd=km−(c2m)2=ω02−γ2\omega_d = \sqrt{\frac{k}{m} - \left(\frac{c}{2m}\right)^2} = \sqrt{\omega_0^2 - \gamma^2}

The general solution is:

x(t)=e−γt(C1cos⁡(ωdt)+C2sin⁡(ωdt))=Re−γtcos⁡(ωdt−δ)x(t) = e^{-\gamma t}(C_1 \cos(\omega_d t) + C_2 \sin(\omega_d t)) = R e^{-\gamma t}\cos(\omega_d t - \delta)

The motion consists of rapid oscillations at frequency ωd\omega_d (which is strictly less than the natural frequency ω0\omega_0) trapped inside an exponentially decaying envelope defined by ±Re−γt\pm R e^{-\gamma t}.

Critical damping occurs when c2=4mkc^2 = 4mk. The discriminant vanishes, yielding a single repeated real root:

r=−c2mr = -\frac{c}{2m}

The general solution is:

x(t)=(C1+C2t)e−c2mtx(t) = (C_1 + C_2 t)e^{-\frac{c}{2m}t}

Under critical damping, the system returns to equilibrium as rapidly as possible without sustained oscillations. The trajectory can pass through equilibrium (x=0x = 0) at most once before decaying asymptotically to zero. Critical damping represents the operational threshold between oscillatory and purely dissipative behavior.

Overdamped motion occurs when c2>4mkc^2 > 4mk. The discriminant is strictly positive, yielding two distinct, negative real roots r1,r2<0r_1, r_2 < 0:

r1=−c+c2−4mk2mr_1 = \frac{-c + \sqrt{c^2 - 4mk}}{2m}

r2=−c−c2−4mk2mr_2 = \frac{-c - \sqrt{c^2 - 4mk}}{2m}

The general solution is a sum of purely decaying exponentials:

x(t)=C1er1t+C2er2tx(t) = C_1 e^{r_1 t} + C_2 e^{r_2 t}

Because the damping force dominates, the mass moves sluggishly back toward equilibrium without oscillating.

To illustrate underdamped motion, consider a system with mass m=1 kgm = 1\,\text{kg}, spring constant k=25 N/mk = 25\,\text{N/m}, and damping coefficient c=6 N⋅s/mc = 6\,\text{N}\cdot\text{s/m}. The initial displacement is x(0)=0.10 mx(0) = 0.10\,\text{m} and the system is released from rest (x′(0)=0 m/sx'(0) = 0\,\text{m/s}). Evaluating the discriminant:

c2−4mk=62−4(1)(25)=36−100=−64<0c^2 - 4mk = 6^2 - 4(1)(25) = 36 - 100 = -64 < 0

Because the discriminant is negative, the system is underdamped. The characteristic roots are:

r=−6±−642(1)=−3±4ir = \frac{-6 \pm \sqrt{-64}}{2(1)} = -3 \pm 4i

Here, γ=3\gamma = 3 and ωd=4 rad/s\omega_d = 4\,\text{rad/s}. The general solution is:

x(t)=e−3t(C1cos⁡(4t)+C2sin⁡(4t))x(t) = e^{-3t}(C_1 \cos(4t) + C_2 \sin(4t))

Applying x(0)=0.10x(0) = 0.10:

x(0)=C1=0.10x(0) = C_1 = 0.10

Differentiating x(t)x(t) via the product rule:

x′(t)=−3e−3t(C1cos⁡(4t)+C2sin⁡(4t))+e−3t(−4C1sin⁡(4t)+4C2cos⁡(4t))x'(t) = -3 e^{-3t}(C_1 \cos(4t) + C_2 \sin(4t)) + e^{-3t}(-4 C_1 \sin(4t) + 4 C_2 \cos(4t))

Evaluating at t=0t = 0:

x′(0)=−3C1+4C2=0x'(0) = -3 C_1 + 4 C_2 = 0

−3(0.10)+4C2=0-3(0.10) + 4 C_2 = 0

4C2=0.34 C_2 = 0.3

C2=0.075C_2 = 0.075

Thus, the specific equation of motion is:

x(t)=e−3t(0.10cos⁡(4t)+0.075sin⁡(4t))x(t) = e^{-3t}(0.10 \cos(4t) + 0.075 \sin(4t))

The influence of changing the damping coefficient can be examined for fixed parameters m=1 kgm = 1\,\text{kg} and k=9 N/mk = 9\,\text{N/m}, with fixed initial conditions x(0)=1x(0) = 1 and x′(0)=0x'(0) = 0. The critical damping value is:

ccrit=4mk=4(1)(9)=6 N⋅s/mc_{\text{crit}} = \sqrt{4mk} = \sqrt{4(1)(9)} = 6\,\text{N}\cdot\text{s/m}

For c=1 N⋅s/mc = 1\,\text{N}\cdot\text{s/m}, c2=1<36c^2 = 1 < 36, so the system is underdamped and oscillates with decaying amplitude. For c=6 N⋅s/mc = 6\,\text{N}\cdot\text{s/m}, c2=36c^2 = 36, so the system is critically damped and achieves the fastest non-oscillatory return to equilibrium. For c=8 N⋅s/mc = 8\,\text{N}\cdot\text{s/m}, c2=64>36c^2 = 64 > 36, so the system is overdamped, resulting in an exponential decay to equilibrium that is slower than in the critically damped case.

Euler-Cauchy Equations

When a second-order linear differential equation has variable coefficients, standard exponential trial functions erxe^{rx} generally fail. However, a significant class of variable-coefficient equations can be solved algebraically: the Euler-Cauchy (or equidimensional) equations. The general homogeneous second-order Euler-Cauchy equation is:

x2y′′+axy′+by=0x^2 y'' + a x y' + b y = 0

for x>0x > 0, where aa and bb are constants. Notice that the power of xx in each coefficient matches the order of the derivative it multiplies: x2y′′x^2 y'', x1y′x^1 y', and x0yx^0 y. Higher-order equations follow this pattern, such as a3x3y′′′+a2x2y′′+a1xy′+a0y=0a_3 x^3 y''' + a_2 x^2 y'' + a_1 x y' + a_0 y = 0.

Because each differentiation of a power function xmx^m lowers the power by one, multiplying by the corresponding power of xx restores the exponent to mm. Thus, a power function trial solution is employed:

y=xmy = x^m

Differentiating gives:

y′=mxm−1y' = m x^{m-1}

y′′=m(m−1)xm−2y'' = m(m - 1)x^{m-2}

Substituting these derivatives into the differential equation gives:

x2[m(m−1)xm−2]+ax[mxm−1]+b[xm]=0x^2 [m(m - 1)x^{m-2}] + a x [m x^{m-1}] + b [x^m] = 0

m(m−1)xm+amxm+bxm=0m(m - 1)x^m + a m x^m + b x^m = 0

[m(m−1)+am+b]xm=0[m(m - 1) + a m + b]x^m = 0

Since x>0x > 0, xm≠0x^m \neq 0, yielding the Euler-Cauchy auxiliary equation:

m(m−1)+am+b=0m(m - 1) + a m + b = 0

m2+(a−1)m+b=0m^2 + (a - 1)m + b = 0

This quadratic equation produces three distinct cases depending on its roots.

In Case 1, the auxiliary equation has two distinct real roots m1≠m2m_1 \neq m_2. The general solution is:

y(x)=C1xm1+C2xm2y(x) = C_1 x^{m_1} + C_2 x^{m_2}

For example, consider the equation x2y′′−2xy′+2y=0x^2 y'' - 2x y' + 2y = 0 for x>0x > 0. Here a=−2a = -2 and b=2b = 2. The auxiliary equation is:

m2+(−2−1)m+2=0m^2 + (-2 - 1)m + 2 = 0

m2−3m+2=0m^2 - 3m + 2 = 0

(m−1)(m−2)=0(m - 1)(m - 2) = 0

This gives distinct roots m1=1m_1 = 1 and m2=2m_2 = 2. The general solution is:

y(x)=C1x+C2x2y(x) = C_1 x + C_2 x^2

To solve the initial value problem with y(1)=3y(1) = 3 and y′(1)=4y'(1) = 4, evaluate y(1)y(1):

y(1)=C1(1)+C2(1)2=C1+C2=3y(1) = C_1(1) + C_2(1)^2 = C_1 + C_2 = 3

Computing the derivative:

y′(x)=C1+2C2xy'(x) = C_1 + 2 C_2 x

Evaluating at x=1x = 1:

y′(1)=C1+2C2=4y'(1) = C_1 + 2 C_2 = 4

Subtracting the first equation from the second:

(C1+2C2)−(C1+C2)=4−3(C_1 + 2 C_2) - (C_1 + C_2) = 4 - 3

C2=1C_2 = 1

C1=3−1=2C_1 = 3 - 1 = 2

Thus, the specific solution is:

y(x)=2x+x2y(x) = 2x + x^2

In Case 2, the auxiliary equation has a repeated real root mm. The power trial solution yields y1(x)=xmy_1(x) = x^m. A second linearly independent solution is y2(x)=xmln⁡(x)y_2(x) = x^m \ln(x). The general solution is:

y(x)=xm(C1+C2ln⁡(x))y(x) = x^m(C_1 + C_2 \ln(x))

Consider the equation x2y′′−3xy′+4y=0x^2 y'' - 3x y' + 4y = 0. Here a=−3a = -3 and b=4b = 4. The auxiliary equation is:

m2+(−3−1)m+4=0m^2 + (-3 - 1)m + 4 = 0

m2−4m+4=0m^2 - 4m + 4 = 0

(m−2)2=0(m - 2)^2 = 0

This gives a double root at m=2m = 2. The general solution is:

y(x)=x2(C1+C2ln⁡(x))y(x) = x^2(C_1 + C_2 \ln(x))

In Case 3, the auxiliary equation has complex conjugate roots m=ω±iϵm = \omega \pm i \epsilon, where ϵ≠0\epsilon \neq 0. Using the identity xm=emln⁡(x)x^m = e^{m \ln(x)}:

xω±iϵ=e(ω±iϵ)ln⁡(x)=eωln⁡(x)e±iϵln⁡(x)=xω[cos⁡(ϵln⁡(x))±isin⁡(ϵln⁡(x))]x^{\omega \pm i \epsilon} = e^{(\omega \pm i \epsilon)\ln(x)} = e^{\omega \ln(x)} e^{\pm i \epsilon \ln(x)} = x^\omega [\cos(\epsilon \ln(x)) \pm i \sin(\epsilon \ln(x))]

Extracting linearly independent real solutions gives:

y(x)=xω[C1cos⁡(ϵln⁡(x))+C2sin⁡(ϵln⁡(x))]y(x) = x^\omega [C_1 \cos(\epsilon \ln(x)) + C_2 \sin(\epsilon \ln(x))]

Consider x2y′′−xy′+5y=0x^2 y'' - x y' + 5y = 0. Here a=−1a = -1 and b=5b = 5. The auxiliary equation is:

m2+(−1−1)m+5=0m^2 + (-1 - 1)m + 5 = 0

m2−2m+5=0m^2 - 2m + 5 = 0

m=2±4−202=1±2im = \frac{2 \pm \sqrt{4 - 20}}{2} = 1 \pm 2i

Here ω=1\omega = 1 and ϵ=2\epsilon = 2. The general solution for x>0x > 0 is:

y(x)=x[C1cos⁡(2ln⁡(x))+C2sin⁡(2ln⁡(x))]y(x) = x [C_1 \cos(2 \ln(x)) + C_2 \sin(2 \ln(x))]

When solving Euler-Cauchy equations on the domain x<0x < 0, the variable xx is replaced by its absolute value ∣x∣|x|, yielding basis terms such as ∣x∣m|x|^m and ln⁡∣x∣\ln|x|.

The Method of Reduction of Order

For a general second-order linear homogeneous differential equation with variable coefficients:

y′′+p(x)y′+q(x)y=0y'' + p(x)y' + q(x)y = 0

knowing one non-zero solution y1(x)y_1(x) allows a second linearly independent solution y2(x)y_2(x) to be determined using the method of reduction of order.

To understand the underlying mechanism, consider the special case where q(x)=0q(x) = 0:

y′′+p(x)y′=0y'' + p(x)y' = 0

Because the dependent variable yy does not appear explicitly, y1(x)=1y_1(x) = 1 is an obvious solution. Substituting w(x)=y′(x)w(x) = y'(x) reduces the second-order equation to a first-order linear differential equation in ww:

w′+p(x)w=0w' + p(x)w = 0

Separating variables yields:

dww=−p(x)dx\frac{dw}{w} = -p(x)dx

ln⁡∣w∣=−∫p(x)dx\ln|w| = -\int p(x)dx

w(x)=w(x0)e−∫p(x)dxw(x) = w(x_0)e^{-\int p(x)dx}

Because w(x)=y′(x)w(x) = y'(x), integrating once more recovers the second solution:

y2(x)=∫w(x)dx=∫w(x0)e−∫p(x)dxdxy_2(x) = \int w(x)dx = \int w(x_0)e^{-\int p(x)dx}dx

For the general case where q(x)≠0q(x) \neq 0, a second solution is sought in the form of a variable multiple of the known solution:

y2(x)=u(x)y1(x)y_2(x) = u(x)y_1(x)

Differentiating using the product rule:

y2′(x)=u′y1+uy1′y_2'(x) = u' y_1 + u y_1'

y2′′(x)=u′′y1+2u′y1′+uy1′′y_2''(x) = u'' y_1 + 2 u' y_1' + u y_1''

Substituting y2y_2, y2′y_2', and y2′′y_2'' into y′′+p(x)y′+q(x)y=0y'' + p(x)y' + q(x)y = 0:

(u′′y1+2u′y1′+uy1′′)+p(x)(u′y1+uy1′)+q(x)(uy1)=0(u'' y_1 + 2 u' y_1' + u y_1'') + p(x)(u' y_1 + u y_1') + q(x)(u y_1) = 0

Regrouping terms by the derivatives of u(x)u(x):

y1u′′+[2y1′+p(x)y1]u′+[y1′′+p(x)y1′+q(x)y1]u=0y_1 u'' + [2 y_1' + p(x)y_1]u' + [y_1'' + p(x)y_1' + q(x)y_1]u = 0

Because y1y_1 is an exact solution of the original differential equation, the coefficient multiplying uu vanishes identically:

y1′′+p(x)y1′+q(x)y1=0y_1'' + p(x)y_1' + q(x)y_1 = 0

This simplifies the equation to:

y1u′′+[2y1′+p(x)y1]u′=0y_1 u'' + [2 y_1' + p(x)y_1]u' = 0

Setting v(x)=u′(x)v(x) = u'(x) reduces this second-order equation for uu into a first-order separable differential equation for vv:

y1v′+[2y1′+p(x)y1]v=0y_1 v' + [2 y_1' + p(x)y_1]v = 0

Dividing through by y1vy_1 v:

v′v+2y1′y1+p(x)=0\frac{v'}{v} + 2\frac{y_1'}{y_1} + p(x) = 0

v′v=−2y1′y1−p(x)\frac{v'}{v} = -2\frac{y_1'}{y_1} - p(x)

Integrating both sides with respect to xx:

ln⁡∣v∣=−2ln⁡∣y1∣−∫p(x)dx=ln⁡(1[y1(x)]2)−∫p(x)dx\ln|v| = -2 \ln|y_1| - \int p(x)dx = \ln\left(\frac{1}{[y_1(x)]^2}\right) - \int p(x)dx

Exponentiating both sides gives:

v(x)=e−∫p(x)dx[y1(x)]2v(x) = \frac{e^{-\int p(x)dx}}{[y_1(x)]^2}

Since u′(x)=v(x)u'(x) = v(x), integrating once more yields u(x)u(x):

u(x)=∫e−∫p(x)dx[y1(x)]2dxu(x) = \int \frac{e^{-\int p(x)dx}}{[y_1(x)]^2}dx

Multiplying by y1(x)y_1(x) gives the reduction of order formula:

y2(x)=y1(x)∫e−∫p(x)dx[y1(x)]2dxy_2(x) = y_1(x) \int \frac{e^{-\int p(x)dx}}{[y_1(x)]^2}dx

This formula provides the theoretical justification for the factor of xx that appears in Case 2 of constant-coefficient equations. For y′′+2y′+y=0y'' + 2y' + y = 0, the characteristic equation has a repeated root r=−1r = -1, giving y1(x)=e−xy_1(x) = e^{-x}. Here, p(x)=2p(x) = 2. Applying the reduction of order formula:

e−∫p(x)dx=e−∫2dx=e−2xe^{-\int p(x)dx} = e^{-\int 2 dx} = e^{-2x}

[y1(x)]2=(e−x)2=e−2x[y_1(x)]^2 = (e^{-x})^2 = e^{-2x}

e−∫p(x)dx[y1(x)]2=e−2xe−2x=1\frac{e^{-\int p(x)dx}}{[y_1(x)]^2} = \frac{e^{-2x}}{e^{-2x}} = 1

Integrating gives:

u(x)=∫1dx=xu(x) = \int 1 dx = x

y2(x)=xy1(x)=xe−xy_2(x) = x y_1(x) = x e^{-x}

This demonstrates that the factor xx arises directly from the quotient of exponential terms in the reduction of order integral.

Now consider the variable-coefficient equation xy′′−(2x+1)y′+(x+1)y=0x y'' - (2x + 1)y' + (x + 1)y = 0 for x>0x > 0, given that y1(x)=exy_1(x) = e^x is a known solution. First, write the differential equation in standard form by dividing by xx:

y′′−2x+1xy′+x+1xy=0y'' - \frac{2x + 1}{x} y' + \frac{x + 1}{x} y = 0

Identify p(x)p(x):

p(x)=−(2+1x)p(x) = -\left(2 + \frac{1}{x}\right)

Evaluate the integrating exponent:

−∫p(x)dx=∫(2+1x)dx=2x+ln⁡(x)-\int p(x)dx = \int \left(2 + \frac{1}{x}\right)dx = 2x + \ln(x)

e−∫p(x)dx=e2x+ln⁡(x)=e2xeln⁡(x)=xe2xe^{-\int p(x)dx} = e^{2x + \ln(x)} = e^{2x} e^{\ln(x)} = x e^{2x}

Next, compute the denominator of the integrand:

[y1(x)]2=(ex)2=e2x[y_1(x)]^2 = (e^x)^2 = e^{2x}

Form the ratio inside the integral:

e−∫p(x)dx[y1(x)]2=xe2xe2x=x\frac{e^{-\int p(x)dx}}{[y_1(x)]^2} = \frac{x e^{2x}}{e^{2x}} = x

Integrate with respect to xx:

u(x)=∫xdx=x22u(x) = \int x dx = \frac{x^2}{2}

Multiplying by y1(x)y_1(x) gives the second solution:

y2(x)=12x2exy_2(x) = \frac{1}{2} x^2 e^x

Because any constant multiple of a solution to a homogeneous linear ODE is also a solution, the constant factor 12\frac{1}{2} can be absorbed, yielding the simpler basis solution y2(x)=x2exy_2(x) = x^2 e^x. The general solution is:

y(x)=C1ex+C2x2exy(x) = C_1 e^x + C_2 x^2 e^x

Linear Independence, the Wronskian, and Abel's Formula

Two functions y1(x)y_1(x) and y2(x)y_2(x) defined on an interval II are linearly independent if the equation:

C1y1(x)+C2y2(x)=0C_1 y_1(x) + C_2 y_2(x) = 0

for all x∈Ix \in I implies that C1=0C_1 = 0 and C2=0C_2 = 0. If there exist constants not both zero such that the equation holds identically on II, the functions are linearly dependent.

For a second-order homogeneous linear equation y′′+p(x)y′+q(x)y=0y'' + p(x)y' + q(x)y = 0 with continuous coefficients p(x)p(x) and q(x)q(x) on II, any two linearly independent solutions y1(x)y_1(x) and y2(x)y_2(x) form a fundamental set of solutions (or fundamental pair). Every solution on II can be uniquely represented as a linear combination of these basis functions:

y(x)=C1y1(x)+C2y2(x)y(x) = C_1 y_1(x) + C_2 y_2(x)

To determine linear independence without relying on ad hoc algebraic manipulation, the Wronskian determinant is used. For two differentiable functions y1y_1 and y2y_2, the Wronskian is defined as:

W(y1,y2)(x)=y1(x)y2′(x)−y1′(x)y2(x)W(y_1, y_2)(x) = y_1(x)y_2'(x) - y_1'(x)y_2(x)

If the Wronskian evaluated at any single point x0∈Ix_0 \in I is non-zero (W(x0)≠0W(x_0) \neq 0), then the functions y1y_1 and y2y_2 are linearly independent on II. For solutions of a homogeneous linear differential equation, if W(x0)=0W(x_0) = 0, the solutions are linearly dependent throughout II.

For the equation y′′+ω2y=0y'' + \omega^2 y = 0 with ω>0\omega > 0, the solutions are y1(x)=cos⁡(ωx)y_1(x) = \cos(\omega x) and y2(x)=sin⁡(ωx)y_2(x) = \sin(\omega x). Computing their derivatives:

y1′(x)=−ωsin⁡(ωx)y_1'(x) = -\omega \sin(\omega x)

y2′(x)=ωcos⁡(ωx)y_2'(x) = \omega \cos(\omega x)

The Wronskian is:

W(cos⁡(ωx),sin⁡(ωx))=cos⁡(ωx)[ωcos⁡(ωx)]−[−ωsin⁡(ωx)]sin⁡(ωx)W(\cos(\omega x), \sin(\omega x)) = \cos(\omega x)[\omega \cos(\omega x)] - [-\omega \sin(\omega x)]\sin(\omega x)

=ωcos⁡2(ωx)+ωsin⁡2(ωx)=ω(cos⁡2(ωx)+sin⁡2(ωx))=ω= \omega \cos^2(\omega x) + \omega \sin^2(\omega x) = \omega(\cos^2(\omega x) + \sin^2(\omega x)) = \omega

Because ω>0\omega > 0, the Wronskian is a non-zero constant (W=ω≠0W = \omega \neq 0) for all xx, confirming that cos⁡(ωx)\cos(\omega x) and sin⁡(ωx)\sin(\omega x) form a fundamental set.

Similarly, for the Euler-Cauchy equation x2y′′−2xy′+2y=0x^2 y'' - 2x y' + 2y = 0 on the interval (0,∞)(0, \infty), the solutions are y1(x)=xy_1(x) = x and y2(x)=x2y_2(x) = x^2. Computing their derivatives gives y1′(x)=1y_1'(x) = 1 and y2′(x)=2xy_2'(x) = 2x. The Wronskian is:

W(x,x2)=x(2x)−(1)(x2)=2x2−x2=x2W(x, x^2) = x(2x) - (1)(x^2) = 2x^2 - x^2 = x^2

Because x2>0x^2 > 0 for all x∈(0,∞)x \in (0, \infty), W(x)≠0W(x) \neq 0, confirming that y1=xy_1 = x and y2=x2y_2 = x^2 form a fundamental pair on (0,∞)(0, \infty).

The behavior of the Wronskian over an interval is governed by Abel's Formula. Let y1y_1 and y2y_2 be solutions of y′′+p(x)y′+q(x)y=0y'' + p(x)y' + q(x)y = 0. Differentiating the Wronskian W=y1y2′−y1′y2W = y_1 y_2' - y_1' y_2 with respect to xx using the product rule:

W′(x)=(y1′y2′+y1y2′′)−(y1′′y2+y1′y2′)=y1y2′′−y1′′y2W'(x) = (y_1' y_2' + y_1 y_2'') - (y_1'' y_2 + y_1' y_2') = y_1 y_2'' - y_1'' y_2

Since y1y_1 and y2y_2 satisfy the differential equation, isolate their second derivatives:

y1′′=−p(x)y1′−q(x)y1y_1'' = -p(x)y_1' - q(x)y_1

y2′′=−p(x)y2′−q(x)y2y_2'' = -p(x)y_2' - q(x)y_2

Substituting these into the expression for W′(x)W'(x):

W′(x)=y1[−p(x)y2′−q(x)y2]−[−p(x)y1′−q(x)y1]y2W'(x) = y_1[-p(x)y_2' - q(x)y_2] - [-p(x)y_1' - q(x)y_1]y_2

W′(x)=−p(x)y1y2′−q(x)y1y2+p(x)y1′y2+q(x)y1y2W'(x) = -p(x)y_1 y_2' - q(x)y_1 y_2 + p(x)y_1' y_2 + q(x)y_1 y_2

The terms involving q(x)q(x) cancel completely:

W′(x)=−p(x)(y1y2′−y1′y2)=−p(x)W(x)W'(x) = -p(x)(y_1 y_2' - y_1' y_2) = -p(x)W(x)

This is a first-order separable differential equation in WW:

dWW=−p(x)dx\frac{dW}{W} = -p(x)dx

Integrating from x0x_0 to xx yields Abel's formula:

ln⁡(W(x)W(x0))=−∫x0xp(s)ds\ln\left(\frac{W(x)}{W(x_0)}\right) = -\int_{x_0}^x p(s)ds

W(x)=W(x0)exp⁡(−∫x0xp(s)ds)W(x) = W(x_0)\exp\left(-\int_{x_0}^x p(s)ds\right)

Because the exponential function is strictly positive for all real exponents, Abel's formula reveals a crucial property: if the Wronskian is non-zero at a single point x0x_0, it is non-zero at every point in the interval II. Conversely, if W(x0)=0W(x_0) = 0, then W(x)W(x) is identically zero throughout II.

When a non-zero driving force is introduced on the right-hand side, the equation becomes non-homogeneous:

a2(x)y′′+a1(x)y′+a0(x)y=f(x)a_2(x)y'' + a_1(x)y' + a_0(x)y = f(x)

Solving such non-homogeneous equations requires finding both the complementary solution to the homogeneous equation and a particular solution corresponding to f(x)f(x).