# general solution of linear differential equation

The general solution $y$ of the nonhomogeneous linear differential equation

$$\frac{{d}^{n}y}{d{x}^{n}}+{P}_{1}(x)\frac{{d}^{n-1}y}{d{x}^{n-1}}+\mathrm{\cdots}+{P}_{n-1}(x)\frac{dy}{dx}+{P}_{n}(x)y=Q(x)$$ |

is gotten by adding the general solution $\overline{y}$ of the corresponding homogeneous equation

$$\frac{{d}^{n}\overline{y}}{d{x}^{n}}+{P}_{1}(x)\frac{{d}^{n-1}\overline{y}}{d{x}^{n-1}}+\mathrm{\cdots}+{P}_{n-1}(x)\frac{d\overline{y}}{dx}+{P}_{n}(x)\overline{y}=0$$ |

to some particular solution of the nonhomogeneous equation.

The general solution of the homogeneous equation has the form

$\overline{y}={C}_{1}{y}_{1}+{C}_{2}{y}_{2}+\mathrm{\cdots}+{C}_{n}{y}_{n}$ | (1) |

where ${y}_{1},{y}_{2},\mathrm{\dots},{y}_{n}$ are linearly independent^{} solutions of the equation. A particular solution of the nonhomogeneous equation can be obtained by using the method of variation of constants ${C}_{1},{C}_{2},\mathrm{\dots},{C}_{n}$ in (1).

Example 1. Find the general solution of the nonhomogeneous linear second order differential equation

$\frac{{d}^{2}y}{d{x}^{2}}}-4y={e}^{x}.$ | (2) |

The corresponding homogeneous equation $\frac{{d}^{2}\overline{y}}{d{x}^{2}}}=4\overline{y$ has apparently the linearly independent solutions $\overline{y}={e}^{\pm 2x}$ and thus the general solution $\overline{y}={C}_{1}{e}^{2x}+{C}_{2}{e}^{-2x}$. For finding a particular solution of (2) we variate the constants ${C}_{1}$, ${C}_{2}$, i.e. think that

$${C}_{1}={C}_{1}(x),{C}_{2}={C}_{2}(x)$$ |

in the sum

$$y={C}_{1}{e}^{2x}+{C}_{2}{e}^{-2x}.$$ |

The first derivative^{} ${y}^{\prime}=[{C}_{1}^{\prime}{e}^{2x}+{C}_{2}^{\prime}{e}^{-2x}]+[2{C}_{1}{e}^{2x}-2{C}_{2}{e}^{-2x}]$ of it reduces to
the latter bracket expression if we set the condition

${C}_{1}^{\prime}{e}^{2x}+{C}_{2}^{\prime}{e}^{-2x}=0.$ | (3) |

So the second derivative is

$${y}^{\prime \prime}=(2{C}_{1}^{\prime}{e}^{2x}-2{C}_{2}^{\prime}{e}^{-2x})+(4{C}_{1}{e}^{2x}+4{C}_{2}{e}^{-2x}).$$ |

Substituting this and the expression of $y$ in the differential equation (2) gives the equation

$2{C}_{1}^{\prime}{e}^{2x}-2{C}_{2}^{\prime}{e}^{-2x}={e}^{x}.$ | (4) |

Now we have the pair of linear equations formed by (3) and (4) for determining the derivatives ${C}_{1}^{\prime}$ and ${C}_{2}^{\prime}$; the result of them is

$${C}_{1}^{\prime}={e}^{-x}/4,{C}_{2}^{\prime}=-{e}^{3x}/4.$$ |

If we then integrate and chose

$${C}_{1}=-{e}^{-x}/4,{C}_{2}=-{e}^{3x}/12,$$ |

we can form the particular solution

$$y=-\frac{{e}^{-x}}{4}{e}^{2x}-\frac{{e}^{3x}}{12}{e}^{-2x}\equiv -\frac{{e}^{x}}{3}.$$ |

Accordingly, the general solution of the nonhomogeneous equation (2) is

$$y=-\frac{{e}^{x}}{3}+{C}_{1}{e}^{2x}+{C}_{2}{e}^{-2x}.$$ |

In some cases it is not necessary to use the *variation of parameters method* above illustrated, but a particular solution may be found at simple sight, as it is the case in the following example about boundary values.

Example 2. Find the general solution of the nonhomogeneous linear second order differential equation

$${y}^{\prime \prime}-y=2x$$ |

under the boundary conditions^{}

$$y(1)=0,{y}^{\prime}(0)=0.$$ |

The function $x\mapsto -2x$ is evidently a particular solution of the differential equation. Therefore, the general solution is

$$y(x)=-2x+{C}_{1}{e}^{x}+{C}_{2}{e}^{-x}.$$ |

Thus we have ${y}^{\prime}(x)=-2+{C}_{1}{e}^{x}-{C}_{2}{e}^{-x}$. By making use of the boundary conditions, we obtain

$$0=y(1)=-2+{C}_{1}e+{C}_{2}{e}^{-1},0={y}^{\prime}(0)=-2+{C}_{1}-{C}_{2}.$$ |

Solving this system of linear equations and introducing ${C}_{1}$ and ${C}_{2}$ into the general solution, we have the result

$$y(x)=-2x+\frac{2(e+1)}{{e}^{2}+1}{e}^{x}-\frac{2e(e-1)}{{e}^{2}+1}{e}^{-x}.$$ |

To solve more advanced problems about nonhomogeneous ordinary linear differential equations of second order with boundary conditions, we may find out a particular solution by using, for instance, the *Green’s function method.*
Thus consider, for instance, the self-adjoint differential equation^{1}^{1}Minus sign, on the right-hand member of the equation, it is by convenience in the applications.

$$ |

The solution of this problem, about boundary values, is known to be given by

$$y(x)={\int}_{a}^{b}G(x,\xi )f(\xi )d(\xi ),$$ |

where the symmetric function $G(x,\xi )=G(\xi ,x)$ ^{2}^{2}Some authors call this symmetry *reciprocity’s law*. is the so-called Green’s function. It satifies the following boundary problem^{3}^{3}It is easy verify the details about such statement; it can be found in any good book on mathematical analysis.

$\{\begin{array}{cc}i)\frac{d}{dx}(p(x)\frac{dG}{dx})+q(x)G=0,x\ne \xi .\hfill & \\ ii)G(a)=G(b)=0,\hfill & \\ iii)G({\xi}^{-})=G({\xi}^{+})=0,\hfill & \\ iv)\frac{dG}{dx}({\xi}^{+})-\frac{dG}{dx}({\xi}^{-})=-\frac{1}{p(\xi )}.\hfill & \end{array}$ |

From the last two one, we realize that $G$ is continuous at $x=\xi $ while $dG/dx$ has there a jump discontinuity. ^{4}^{4}The solution $y(x)$, which is above given, it may be physically interpreted as follows: if $y$ stands for a displacement and $f$ like a force per length unit, then the Green’s function $G(x,\xi )$ corresponds to a displacement at $x$ due a force, of unit magnitude, concentrated at $x=\xi $. Let us see an example.

Example 3. Consider the problem

$$ |

Here, $p(x)\equiv 1$, $q(x)\equiv 0$, $a=0$, $b=1$. So from i) and ii), ${d}^{2}G/d{x}^{2}=0$ and therefore

$$ |

Since $\xi $ stays fixed on above Green’s conditions, constants ${C}_{1},{C}_{2}$ may depend on $\xi $. Further, the symmetry of $G$ demands that ${C}_{1}(\xi )=C(1-\xi )$, and ${C}_{2}(\xi )=C\xi $, where $C$ is a constant independent on $\xi $. Then the continuity condition iii) is automatically satisfied, and the jump condition iv) gives

$(-1)C\xi -C(1-\xi )=-1,$ | $\text{whence}\mathit{\hspace{1em}\hspace{1em}}C=1.$ |

Therefore,

$$G(x,\xi )=\{\begin{array}{cc}(1-\xi )x\hspace{1em}\hspace{1em}x\le \xi ,\hfill & \\ (1-x)\xi \hspace{1em}\hspace{1em}x\ge \xi .\hfill & \end{array}$$ |

Thus, the solution is

$$y(x)={\int}_{0}^{x}(1-x)\xi f(\xi )\mathit{d}\xi +{\int}_{x}^{1}x(1-\xi )f(\xi )\mathit{d}\xi .$$ |

If, for example, $f(x)\equiv 1$, then we find

$$y(x)=\frac{1}{2}(1-x){x}^{2}+\frac{1}{2}x{(1-x)}^{2}=\frac{1}{2}x(1-x).$$ |

In some cases related to partial differential equations (specially that of hyperbolic type), the method of separation of variables^{}, splits in ordinary differential equations (possibly with variable coefficients) on boundary values, and one of them usually leading to a Sturm-Liouville problem (basically an eigen-values and eigen-functions problem). The general solution of those partial differential equations generally leads to Bessel-Fourier series, but the details about that question is out of the sight of this entry.

Title | general solution of linear differential equation |
---|---|

Canonical name | GeneralSolutionOfLinearDifferentialEquation |

Date of creation | 2013-03-22 16:32:25 |

Last modified on | 2013-03-22 16:32:25 |

Owner | pahio (2872) |

Last modified by | pahio (2872) |

Numerical id | 16 |

Author | pahio (2872) |

Entry type | Result |

Classification | msc 15A06 |

Classification | msc 34A05 |

Synonym | solution of linear ordinary differential equation |

Related topic | LinearProblem |

Related topic | SecondOrderLinearDifferentialEquation |