logo

General Solution to Second-Order Linear Nonhomogeneous Differential Equations 📂Odinary Differential Equations

General Solution to Second-Order Linear Nonhomogeneous Differential Equations

Auxiliary Lemma1

Consider the following nonhomogeneous/homogeneous second-order linear differential equation:

y+p(t)y+q(t)y=g(t)y+p(t)y+q(t)y=0 \begin{align} y^{\prime \prime}+p(t)y^\prime + q(t)y &=g(t) \label{eq1} \\ y^{\prime \prime}+p(t)y^\prime + q(t)y &=0 \label{eq2} \end{align}

Assume that y1(t)y_{1} (t) and y2(t)y_{2} (t) are solutions to the nonhomogeneous differential equation (eq1)\eqref{eq1}, and that y1(t)y_{1}(t) and y2(t)y_{2}(t) are the fundamental set of solutions to the homogeneous differential equation (eq2)\eqref{eq2}. Then, the following equation holds:

y1(t)y2(t)=c1y1(t)+c2y2(t) y_{1} (t) – y_{2} (t)= c_{1}y_{1} (t)+c_2y_{2}(t)

Where c1,c2c_{1}, c_{2} is a constant.

Proof

Let’s define the differential operator LL as follows:

L[y]:=y+p(t)y+q(t)y L[y] := y^{\prime \prime} + p(t)y^\prime + q(t)y

Since y1y_{1} and y2y_{2} are solutions to the nonhomogeneous differential equation (eq1)\eqref{eq1},

L[y1]=g(t)andL[y2]=g(t) L[y_{1}]=g(t) \quad \text{and} \quad L[y_{2}]=g(t)

Subtracting the two equations yields L[y1]L[y2]=g(t)g(t)=0L[y_{1}]-L[y_{2}]=g(t)-g(t)=0. At this point, as LL is a linear operator, it satisfies the following:

L[y1]L[y2]=L[y1y2]=0 L[y_{1}] - L[y_{2}] = L[ y_{1} – y_{2}]=0

Since y1y2y_{1} – y_{2} satisfies L[y1y2]=0L[y_{1} – y_{2}]=0, y1y2y_{1} – y_{2} is a solution to the homogeneous differential equation (eq2)\eqref{eq2}.

Moreover, any solution to the homogeneous differential equation can be represented as a linear combination of the fundamental set. Therefore, the following holds:

y1y2=c1y1+c2y2 y_{1} – y_{2}=c_{1}y_{1} + c_2y_{2}

The auxiliary lemma allows us to derive the general solution of the nonhomogeneous differential equation.

Theorem

Consider the following nonhomogeneous/homogeneous second-order linear differential equation:

y+p(t)y+q(t)y=g(t)y+p(t)y+q(t)y=0 \begin{align} y^{\prime \prime}+p(t)y^\prime + q(t)y &=g(t) \tag{1} \\ y^{\prime \prime}+p(t)y^\prime + q(t)y &=0 \tag{2} \end{align}

Assume that ϕ(t),Y(t)\phi (t), Y(t) is a solution to the nonhomogeneous differential equation (eq1)\eqref{eq1}, and that y1,y2y_{1}, y_{2} is the fundamental set of solutions to the homogeneous differential equation (eq2)\eqref{eq2}. The general solution to the nonhomogeneous differential equation (eq2)\eqref{eq2} is as follows:

ϕ(t)=c1y1(t)+c2y2(t)+Y(t) \phi (t) = c_{1}y_{1} (t) +c_2y_{2} (t) +Y(t)

Where c1,c2c_{1}, c_{2} is a constant.

Explanation

c1y1+c2y2c_{1}y_{1} + c_2y_{2} is referred to as the complementary solution. YY is referred to as the particular solution. Summarizing from the two theorems, the process of finding the general solution of the nonhomogeneous differential equation is as follows:

  1. Assume the nonhomogeneous differential equation as a homogeneous one and find its general solution. Call it the complementary solution.
  2. Find any particular solution that satisfies the nonhomogeneous differential equation.
  3. The sum of the complementary and particular solutions is the general solution of the nonhomogeneous differential equation.

Proof

Let’s assume ϕ\phi and YY as arbitrary solutions to the nonhomogeneous differential equation (eq2)\eqref{eq2}. Instead of y1,y2y_{1}, y_{2}, we insert ϕ,Y\phi, Y into the auxiliary lemma. Then, we obtain the following result:

ϕY=c1y1+c2y2    ϕ(t)=c1y1(t)+c2y2(t)+Y(t) \phi – Y = c_{1}y_{1} +c_2y_{2} \implies \phi (t) = c_{1}y_{1} (t) +c_2y_{2}(t) +Y (t)

Therefore, the general solution of the nonhomogeneous differential equation is expressed as the sum of the general solution to the homogeneous differential equation and any particular solution of the nonhomogeneous differential equation.


  1. William E. Boyce, Boyce’s Elementary Differential Equations and Boundary Value Problems (11th Edition, 2017), p134 ↩︎