Preprint
Article

This version is not peer-reviewed.

A Substitution Based Method for Solving Non-Homogeneous Linear Differential Equations

Submitted:

13 April 2026

Posted:

15 April 2026

You are already at the latest version

Abstract
We develop a unified, substitution-based framework for solving non-homogeneous linear ordinary differential equations (ODEs) via the systematic factorization of the associated differential operator. By decomposing higher-order operators into a nested sequence of first-order linear factors, the non-homogeneous problem is resolved through successive integrations using integrating factors. This construction yields explicit integral representations of particular solutions, providing a direct derivation of the convolution kernel and Green’s function without requiring the method of undetermined coefficients, variation of parameters, or Laplace transforms. For second-order equations, we clarify the structural origins of resonance and oscillatory behavior and extend the approach to variable-coefficient settings, specifically Cauchy–Euler equations.
Keywords: 
;  ;  ;  

1. Introduction

To solve higher-order non-homogeneous linear differential equations, the standard analytical frameworks are the Method of Undetermined Coefficients and the more general Variation of Parameters [1,2,3]. These approaches typically require first solving the associated homogeneous equation ( f ( t ) = 0 ) to obtain the complementary solution y h ( t ) , which characterizes the system’s fundamental response. Subsequently, a particular solution y p ( t ) is sought to account for the non-homogeneous forcing function f ( t ) , such that the general solution is given by:
y ( t ) = y h ( t ) + y p ( t )
In this work, an alternative approach based on operator factorization and sequential substitution is presented. By decomposing a higher-order linear operator into a product of first-order factors, the problem is reduced to a system of first-order linear equations. This method provides explicit integral representations for particular solutions without the need for heuristic guessing, Wronskian determinants, or transform methods.

2. The Homogeneous Case with Constant Coefficients

Consider the second-order homogeneous equation y + a y + b y = 0 where a , b R . In operator form, this is expressed as:
( D 2 + a D + b ) y = 0
where D = d d t . The solution space is governed by the roots λ 1 , λ 2 of the characteristic equation λ 2 + a λ + b = 0 .

2.1. Real and Distinct Roots ( λ 1 λ 2 )

Factoring the operator as ( D λ 1 ) ( D λ 2 ) y = 0 and letting u = ( D λ 2 ) y , we obtain:
( D λ 1 ) u = 0 u ( t ) = c 1 e λ 1 t
Substituting back into the definition of u:
y λ 2 y = c 1 e λ 1 t
Applying the integrating factor μ ( t ) = e λ 2 t yields:
d d t e λ 2 t y = c 1 e ( λ 1 λ 2 ) t y ( t ) = C 1 e λ 1 t + C 2 e λ 2 t

2.2. Repeated Real Roots ( λ 1 = λ 2 = λ )

The operator ( D λ ) 2 y = 0 with the substitution u = ( D λ 2 ) y leads to u λ u = 0 , giving u = c 1 e λ t . The subsequent equation y λ y = c 1 e λ t yields:
d d t e λ t y = C 1 y ( t ) = C 1 t e λ t + C 2 e λ t

2.3. Complex Conjugate Roots ( λ = a ± b i )

Factor as ( D ( a + b i ) ) ( D ( a b i ) ) y = 0 and let u = ( D ( a b i ) ) y . Then u = C 1 e ( a + b i ) t where C 1 C . Solving for real y in the complex domain:
y = C 1 2 b i e ( a + b i ) t + C 2 e ( a b i ) t
By enforcing real-valued constraints y = y ¯ leads to C 1 = 2 b i C ¯ 2 and the standard form:
y ( t ) = C 1 e λ 1 t + C ¯ 1 e λ 1 t = e a t ( c 1 cos ( b t ) + c 2 sin ( b t ) )
where c 1 , c 2 R .
Consider y + a ( t ) y + b ( t ) y = 0 . If the operator admits a factorization:
D 2 + a ( t ) D + b ( t ) = ( D α ( t ) ) ( D β ( t ) )
where a ( t ) = ( α + β ) and b ( t ) = α β β , then the solution is found sequentially. Let u = ( D β ( t ) ) y ; then:
u α ( t ) u = 0 u ( t ) = C 1 e α ( t ) d t
Therefore:
y β ( t ) y = u ( t ) y ( t ) = C 1 e β ( t ) d t e ( α ( t ) β ( t ) ) d t d t + C 2 e β ( t ) d t
Example 2.1.
Consider the Cauchy–Euler equation
t 2 y 3 t y + 4 y = 0 , t > 0 .
Observing that t 2 D 2 3 t D + 4 = ( t D 2 ) ( t D 2 ) , the equation becomes
( t D 2 ) ( t D 2 ) y = 0 .
Let u = ( t D 2 ) y , giving t u 2 u = 0 and u = C 1 t 2 by separation of variables. Substituting u = C 1 t 2 into u = ( t D 2 ) y :
y 2 t y = C 1 t , y = C 1 t 2 ln | t | + C 2 t 2 .
Remark. 
The standard form of t 2 y 3 t y + 4 y = 0 is y 3 t y + 4 t 2 y = 0 , which can be represented as
D 2 3 t D + 4 t 2 y = D 1 t D 2 t y .

3. Non-Homogeneous Case with Constant Coefficients

For the non-homogeneous case ( D λ 1 ) ( D λ 2 ) y = f ( t ) , we apply the same substitution u = ( D λ 2 ) y . This yields the general integral representation of the particular solution y p .

3.1. Real and Distinct Roots ( λ 1 λ 2 )

Consider the non-homogeneous equation ( D λ 1 ) ( D λ 2 ) y = f ( t ) . By introducing the intermediate substitution u = ( D λ 2 ) y , we reduce the second-order problem to the following first-order system:
( D λ 1 ) u = f ( t ) u λ 1 u = f ( t )
Solving via the integrating factor μ ( t ) = e λ 1 t , we obtain the general solution for u ( t ) :
u ( t ) = e λ 1 t e λ 1 t f ( t ) d t + C 1 e λ 1 t
Substituting this result back into the definition of u, we have:
y λ 2 y = e λ 1 t e λ 1 t f ( t ) d t + c 1 e λ 1 t
Applying the integrating factor μ ( t ) = e λ 2 t to the second equation yields:
y ( t ) = e λ 2 t e ( λ 1 λ 2 ) t e λ 1 t f ( t ) d t d t + C 1 e λ 1 t + C 2 e λ 2 t
The particular solution y p ( t ) can be expressed in several equivalent forms. By symmetry of the operators ( D λ 1 ) and ( D λ 2 ) , and by converting the nested indefinite integrals into a single definite integral over [ 0 , t ] , we derive the standard convolution form:
y p ( t ) = e λ 2 t e ( λ 1 λ 2 ) t e λ 1 t f ( t ) d t d t = 0 t e λ 1 ( t τ ) e λ 2 ( t τ ) λ 1 λ 2 f ( τ ) d τ
This representation explicitly reveals the Green’s function (kernel) for the operator:
G ( t , τ ) = e λ 1 ( t τ ) e λ 2 ( t τ ) λ 1 λ 2

3.2. Repeated Real Roots ( λ 1 = λ 2 = λ )

In the case of a repeated characteristic root, the differential operator takes the form ( D λ ) 2 y = f ( t ) . By defining the intermediate variable u = ( D λ ) y :
u λ u = f ( t ) u = e λ t e λ t f ( t ) d t + C 1 e λ t
by the integrating factor method with μ ( t ) = e λ t . Substituting this expression back into u = ( D λ ) y , we have:
y λ y = e λ t e λ t f ( t ) d t + C 1 e λ t
Applying the same integrating factor μ ( t ) = e λ t to the second equation leads to:
d d t e λ t y = e λ t f ( t ) d t + C 1 y = e λ t e λ t f ( t ) d t d t + C 1 t e λ t + C 2 e λ t
The particular solution y p ( t ) is characterized by the nested integral:
y p ( t ) = e λ t e λ t f ( t ) d t d t
Alternatively, using the identity for repeated integration, the particular solution can be expressed as a single definite integral, revealing the resonant kernel:
y p = 0 t ( t τ ) e λ ( t τ ) f ( τ ) d τ
Example 3.1.
Consider the non-homogeneous equation y 2 y + y = 2 e t . The characteristic equation λ 2 2 λ + 1 = 0 yields a repeated root λ = 1 . The associated differential operator is factored as ( D 1 ) 2 , and the forcing function is f ( t ) = 2 e t . Utilizing the resonant kernel for repeated roots, the particular solution y p is given by:
y p ( t ) = 2 0 t ( t τ ) e ( t τ ) e τ d τ
Evaluating the integral with respect to τ yields:
y p = t 2 e t .

3.3. Complex Conjugate Roots ( λ = a ± b i )

In the case of complex conjugate roots, the differential operator is factored as:
( D ( a + b i ) ) ( D ( a b i ) ) y = f ( t ) .
Let λ 1 = a + b i and λ 2 = a b i . Then by Equation (1), the particular solution is given by:
y p ( t ) = 0 t e λ 1 ( t τ ) e λ 2 ( t τ ) λ 1 λ 2 f ( τ ) d τ
To resolve this into a real-valued expression, we utilize Euler’s identity. The denominator simplifies to λ 1 λ 2 = 2 b i , and the numerator becomes:
e ( a + b i ) ( t τ ) e ( a b i ) ( t τ ) = e a ( t τ ) e b i ( t τ ) e b i ( t τ ) = 2 i e a ( t τ ) sin ( b ( t τ ) )
Substituting these into the integral, the 2 i terms cancel, yielding the real-valued particular solution:
y p ( t ) = 0 t e a ( t τ ) sin ( b ( t τ ) ) b f ( τ ) d τ
Example 3.2.
Consider the non-homogeneous equation y 4 y + 5 y = e t . The corresponding operator form is ( D ( 2 + i ) ) ( D ( 2 i ) ) y = e t , with a = 2 , b = 1 , and f ( t ) = e t . Applying the formula derived above:
y p ( t ) = e 2 t 0 t e 2 τ sin ( t τ ) e τ d τ = e 2 t 0 t e τ sin ( t τ ) d τ
Using the change of variables u = t τ (where d u = d τ ), the integral transforms as follows:
y p ( t ) = e 2 t t 0 e ( t u ) sin ( u ) ( d u ) = e t 0 t e u sin ( u ) d u
Evaluation by integration by parts yields:
y p ( t ) = e t e u 2 ( sin u cos u ) 0 t = e 2 t 2 ( sin t cos t ) + 1 2 e t
Since the term e 2 t 2 ( sin t cos t ) is a linear combination of the complementary solutions, it may be absorbed into y h . Thus, the simplest particular solution is:
y p ( t ) = 1 2 e t

4. The Non-Homogeneous Case with Variable Coefficients

The substitution method generalizes to second-order linear differential equations with variable coefficients, provided the differential operator admits a factorization of the form:
L = D 2 + a ( t ) D + b ( t ) = ( D α ( t ) ) ( D β ( t ) )
Expanding this operator product yields the following relations for the coefficient functions α ( t ) and β ( t ) :
a ( t ) = ( α ( t ) + β ( t ) ) b ( t ) = α ( t ) β ( t ) β ( t )
To solve the non-homogeneous equation ( D α ( t ) ) ( D β ( t ) ) y = f ( t ) , we define the intermediate variable u = ( D β ( t ) ) y . This results in a first-order linear equation in u:
u α ( t ) u = f ( t )
The solution for u ( t ) is obtained via the standard integrating factor e α ( t ) d t :
u ( t ) = e α ( t ) d t f ( t ) e α ( t ) d t d t + C 1 e α ( t ) d t
Substituting this expression back into the definition of u gives the first-order equation for y:
y β ( t ) y = u ( t )
Integrating once more, we arrive at the general solution y ( t ) = y p ( t ) + y h ( t ) , where the particular solution y p ( t ) is expressed by the nested integral formula:
y p ( t ) = e β ( t ) d t e ( α ( t ) β ( t ) ) d t f ( t ) e α ( t ) d t d t d t
Example 4.1.
Consider the non-homogeneous Cauchy–Euler equation t 2 y 3 t y + 4 y = 2 t 2 for t > 0 . In standard form:
y 3 t y + 4 t 2 y = 2
We seek a factorization such that D 2 3 t D + 4 t 2 = ( D α ( t ) ) ( D β ( t ) ) . Matching coefficients leads to the system:
α ( t ) + β ( t ) = 3 t α ( t ) β ( t ) β ( t ) = 4 t 2
A solution to this system is α ( t ) = 1 t and β ( t ) = 2 t . Thus, the operator is factored as:
L = D 1 t D 2 t
The corresponding integral components are:
e α d t = e ln t = t 1 e ( α β ) d t = e t 1 d t = t 1 e β d t = e 2 ln t = t 2
Substituting these components into the particular solution formula with f ( t ) = 2 :
y p ( t ) = t 2 1 t 2 t d t d t
Successive integration yields:
y p ( t ) = t 2 2 ln t t d t = t 2 ( ln t ) 2

5. Higher Order Differential Equations

The substitution method generalizes naturally to n-th order linear differential equations. If an n-th order linear differential operator L can be decomposed into a product of n first-order linear operators, the non-homogeneous problem is resolved by transforming it into a recursive chain of first-order equations. Consider the equation:
D α n ( t ) D α n 1 ( t ) D α 1 ( t ) y = f ( t )
where α i ( t ) are real or complex-valued functions. We define a sequence of intermediate variables { u 1 , u 2 , , u n 1 } as follows:
u n 1 = ( D α n 1 ) ( D α 1 ) y u n 2 = ( D α n 2 ) ( D α 1 ) y u 1 = ( D α 1 ) y
This substitution reduces the original n-th order equation into a system of n coupled first-order linear differential equations:
( D α n ) u n 1 = f ( t ) ( D α n 1 ) u n 2 = u n 1 ( D α 1 ) y = u 1
The general solution is obtained by solving each equation sequentially, starting from the top. Each step utilizes an integrating factor μ i ( t ) = exp α i ( t ) d t . The particular solution y p ( t ) for the n-th order case can be expressed as a nested integral of depth n:
y p ( t ) = e α 1 d t e ( α 2 α 1 ) d t e ( α n α n 1 ) d t f ( t ) e α n d t d t ( d t ) n 1
This hierarchical approach offers significant advantages over classical methods. Unlike the Method of Undetermined Coefficients, it requires no a priori assumption regarding the form of f ( t ) . Furthermore, it bypasses the computational burden of calculating the n × n Wronskian determinant required by the Method of Variation of Parameters, replacing it with n successive integrations.

6. Conclusions

The substitution-based method presented in this paper provides a robust and unified framework for the analysis of both homogeneous and non-homogeneous linear ordinary differential equations. By exploiting the algebraic structure of the differential operator, we transform a single n-th order problem into a recursive sequence of n first-order linear equations. For second-order ODEs, the particular solutions admit explicit integral representations as convolution kernels (Green’s functions), summarised in Table 1.
This systematic reduction offers several distinct advantages over classical pedagogical approaches. First, unlike the Method of Undetermined Coefficients, this framework requires no prior assumptions regarding the functional form of the forcing term f ( t ) . The particular solution y p emerges naturally through sequential integration, making the method applicable to a much broader class of non-elementary forcing functions that do not fit standard trial-solution templates.
Furthermore, the method bypasses the often prohibitive algebraic complexity inherent in the Method of Variation of Parameters. Specifically, it eliminates the necessity of constructing and evaluating n × n Wronskian determinants and performing subsequent matrix inversions. Instead, these are replaced by a more manageable chain of first-order integrating factors, which streamlines the calculation of the particular solution.
The approach also provides superior structural clarity in complex and resonant cases. The derivation of the sine-integral kernel for complex conjugate roots and the ( t τ ) kernel for repeated roots arises directly from the operator factorization itself. This provides a clearer geometric and structural interpretation of resonance and oscillation than is typically found in standard transform-based or trial-solution methods. Moreover, as demonstrated with the Cauchy–Euler equation, the framework remains valid for variable-coefficient equations whenever a valid operator factorization ( D α ( t ) ) ( D β ( t ) ) can be identified, a process that often involves the resolution of an associated Riccati equation.
In summary, the substitution method bridges the gap between elementary solution techniques and more advanced operational calculus. By representing the particular solution as a nested integral—or a single integral via a reconstructed Green’s function—this approach offers both conceptual transparency and a powerful tool for exact symbolic integration in higher-order systems.

Author Contributions

Conceptualization, M.K.; formal analysis, M.K.; investigation, M.K.; writing—original draft preparation, M.L.; writing—review and editing, M.K.

Funding

This research received no external funding

Institutional Review Board Statement

Not applicable.

Data Availability Statement

No new data were created.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Boyce, W.E.; DiPrima, R.C.; Meade, D.B. Elementary Differential Equations and Boundary Value Problems, 11th ed.; Wiley: Hoboken, NJ, USA, 2017. [Google Scholar]
  2. Nagle, R.K.; Saff, E.B.; Snider, A.D. Fundamentals of Differential Equations, 9th ed.; Pearson: Boston, MA, USA, 2017. [Google Scholar]
  3. Zill, D.G. A First Course in Differential Equations with Modeling Applications, 11th ed.; Cengage Learning: Boston, MA, USA, 2018. [Google Scholar]
Table 1. Summary of particular solutions for non-homogeneous second-order ODEs.
Table 1. Summary of particular solutions for non-homogeneous second-order ODEs.
Root Type Factorized Operator Particular Solution y p
Real Coefficients Real, distinct ( D λ 1 ) ( D λ 2 ) y = f ( t ) 0 t e λ 1 ( t τ ) e λ 2 ( t τ ) λ 1 λ 2 f ( τ ) d τ
Repeated real ( D λ ) 2 y = f ( t ) 0 t ( t τ ) e λ ( t τ ) f ( τ ) d τ
Complex ( a ± b i ) ( D ( a + b i ) ) ( D ( a b i ) ) y = f ( t ) 0 t e a ( t τ ) sin ( b ( t τ ) ) b f ( τ ) d τ
Variable Coefficients ( D α ( t ) ) ( D β ( t ) ) y = f ( t ) e β d t e ( α β ) d t f e α d t d t d t
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings

© 2026 MDPI (Basel, Switzerland) unless otherwise stated