General Form
Higher Order Linear ODEs can be written in the most general form:
$$ y^{(n)} + p_{n-1}(x) y^{(n-1)} + \cdots + p_1(x) y' + p_0(x) y = r(x) $$
If \(r=0\), the equation is said to be homogeneous. The general solution can be expressed as follows:
$$ y(x) = c_1 y_1(x) + c_2 y_2(x) + \cdots + c_n y_n(x) + y_p(x) $$
where \(c_1, c_2, \ldots, c_n\) are unkown constants that can be determined by additional conditions: initial conditions or boundary conditions.
The most common form of initial conditions are
$$ y(x_0) = y^0 $$ $$ y'(x_0) = y^1 $$ $$ \cdots $$ $$ y^{(n-1)}(x_0) = y^{n-1} $$
where function value and its derivative is specified at point \(x_0\). An example for boundary conditions can be given as
$$ y(x_0) = 0 $$ $$ y(x_1) = 1 $$ $$ y'(x_1) = 0 $$
where function values are given at two different points.
Example 1
Find the general solution of the following ODE $$ y'''(x) = 1 $$ where \(p_i=0\), \(r=1\)
solution:
Integration gives:
$$ y''(x) = x + c_1 $$
$$ y'(x) = \frac{x^2}{2} + c_1 x + c_2 $$
$$ y(x) = \frac{x^3}{6} + c_1 x^2 + c_2 x + c_3 $$
where \(y_1(x) = x^2\), \(y_2(x)=x\), \(y_3(x)=1\), \(y_p(x) = \frac{x^3}{6}\).
Example 2
Solve the following ODE $$ y'''(x) - \frac{1}{x} y''(x) = 0 $$ where \(p_2(x) = - \frac{1}{x}, p_1 = p_0 = 0, r=0\)
with the boundary conditions $$ y(0) = 0 , y'(0) = 0 , y(1) = 1 $$
solution:
Define a new variable:
$$ y''' - \frac{1}{x} y'' = 0, \; v = y'' $$
$$ v' = \frac{v}{x} \rightarrow \frac{dv}{v} = \frac{dx}{x} $$
$$ \log{v} = \log{x} + \log{c} $$
$$ v = y'' = c x $$
$$ y' = c \frac{x^2}{2} + c_2 $$
General solution of the homogoneous equation
$$ y(x) = c_1 x^3 + c_2 x + c_3 $$
where $$ y_1(x) = x^3,\;\; y_2(x)=x,\;\; y_3(x)=1,\;\; y_p(x) = 0$$
Impose the boundary conditions
$$ y(0) = c_3 = 0 ,\;\; y'(0) = c_2 = 0 ,\;\; y(1) = c_1 = 1 $$
The solution
$$ y(x) = x^3 $$