Higher Order Linear ODEs¶
Higher Order Linear ODEs¶
Much of the concepts from 2nd order linear ODEs will be applicable here in a more general and extended form. We consider all ODEs of the form
With the coefficient of \(y^{(n)}\), this is called the standard form. The term on the right contains only functions of \(x\) (and/or constants).
An \(n^{th}\) order ODE that cannot be expressed in the above form will be called non-linear. If \(r(x) = 0\) throughout, the equation is called homogenous, and nonhomogenous otherwise.
Similar to second order case, for the homogenous equation, any linear combination of \(n\) independent solutions \(y_{1}, \ldots, y_{n}\) is also a solution (general solution), with the \(n\) solutions being linearly independent and forming a basis.
The Wronskian holds the same properties as the second order case, for the homogenous equations. However, its now defined as
\(n^{th}\) order linear homogenous ODE has no singular solutions.
Homogenous Linear ODE with constant coefficients¶
We consider the ODE
Assuming the solution as \(e^{\lambda x}\), we get the below characteristic equation after taking out the common term \(e^{lambda x}\)
The roots can be all real, real and repeated, some complex and some real, etc.
-
Real and distinct roots
Similar to the second order case, the general solution is a linear combination of \(n\) exponents
-
All complex roots
Complex roots must occur in pairs. Suppose one of such pairs is \(\lambda \pm i\omega\), then the part of general solution for just this pair will be
and similar terms will be added for all other pairs of complex roots.
-
Some distinct real and complex roots
This case is a combination of the above two cases. Hence the general solution will be a linear combination of few purely exponential terms, and few exponent and sinusoidal terms
-
Repeating real roots
Analogous to the second order case, we start multiplying all repeating roots by \(x\), \(x^{2}\) and so on
In the above example, root $\lambda_{1}$ occurs thrice and we go upto $x^{2}$. Thus, if a root repeats $k$ times, we will have $k$ occurrences with the final occurrence containing $x^{k-1}$.
-
Repeating complex roots
Like repeating real roots, we start multiplying the terms by \(x\), \(x^{2}\) and so on
In the above case, the complex root $\lambda_{1} \pm i\omega_{1}$ occurs twice.
Thus, depending on what the roots are, we can define the basis based on the above discussed rules.
Nonhomogenous Linear ODEs¶
All the methods discussed for solutions of second order nonhomogenous linear ODEs are applicable for higher orders as well. We will consider a linear ODE in its standard form
Note that the coefficient of \(y^{(n)}\) is unity.
The general solution \(y = y_{h} + y_{p}\) where \(y_{h}\) is the solution to the corresponding homogenous equation, and \(y_{p}\) is a solution that satisfies the original nonhomogenous equation.
Method of Undetermined Coefficients¶
All rules followed are similar to those discussed in second order case. If the coefficients are constants, and \(r(x)\) is a continuous non zero function, the ODE is
We follow the same three rules * Basic rule is same * Modification rule is slightly different. If a term of choice in \(y_{p}\) is already a solution of \(y_{h}\) (the corresponding homogenous equation solution), we multiply this term by \(x_{k}\) where \(k\) is the smalles positive integer such that this term times \(x^{k}\) is not a solution of the corresponding homogenous equation. * Sum Rule is same
Method of Variation of Parameters¶
We extend the formula discussed in the second order case
where \(W_{k}\) is obtained by replacing the \(k^{th}\) column of \(W\) with \((0, 0, \ldots, 0, 1)^{T}\) (i.e., the last row contains the entry 1).
The same formula can be verified for the second order case (where \(W_{1}\) and \(W_{2}\) simplified to a single term).