Internal
problem
ID
[19757] Book
:
Elementary
Differential
Equations.
By
Thornton
C.
Fry.
D
Van
Nostrand.
NY.
First
Edition
(1929) Section
:
Chapter
VII.
Linear
equations
of
order
higher
than
the
first.
section
56.
Problems
at
page
163 Problem
number
:
8 Date
solved
:
Friday, November 28, 2025 at 06:50:45 PM CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
This is second order non-homogeneous ODE. In standard form the ODE is
\[ A y''(x) + B y'(x) + C y(x) = f(x) \]
Where \(A=1, B=0, C=3, f(x)=\sin \left (x \right )+\frac {\sin \left (3 x \right )}{3}\). Let the
solution be
\[ y = y_h + y_p \]
Where \(y_h\) is the solution to the homogeneous ODE \( A y''(x) + B y'(x) + C y(x) = 0\), and \(y_p\) is a particular solution to the
non-homogeneous ODE \(A y''(x) + B y'(x) + C y(x) = f(x)\). \(y_h\) is the solution to
\[ y^{\prime \prime }+3 y = 0 \]
This is second order with constant coefficients homogeneous ODE. In standard form the
ODE is
\[ A y''(x) + B y'(x) + C y(x) = 0 \]
Where in the above \(A=1, B=0, C=3\). Let the solution be \(y=e^{\lambda x}\). Substituting this into the ODE
gives
While the
set of the basis functions for the homogeneous solution found earlier is
\[ \left \{\cos \left (\sqrt {3}\, x \right ), \sin \left (\sqrt {3}\, x \right )\right \} \]
Since there is no
duplication between the basis function in the UC_set and the basis functions of the homogeneous
solution, the trial solution is a linear combination of all the basis in the UC_set.
The
unknowns \(\{A_{1}, A_{2}, A_{3}, A_{4}\}\) are found by substituting the above trial solution \(y_p\) into the ODE and comparing
coefficients. Substituting the trial solution into the ODE and simplifying gives
Equation (7) is now solved. After finding \(z(x)\) then \(y\) is found using the inverse transformation
\begin{align*} y &= z \left (x \right ) e^{-\int \frac {B}{2 A} \,dx} \end{align*}
The first step is to determine the case of Kovacic algorithm this ode belongs to. There are 3 cases
depending on the order of poles of \(r\) and the order of \(r\) at \(\infty \). The following table summarizes these
cases.
Need to have at least one pole
that is either order \(2\) or odd order
greater than \(2\). Any other pole order
is allowed as long as the above
condition is satisfied. Hence the
following set of pole orders are all
allowed. \(\{1,2\}\),\(\{1,3\}\),\(\{2\}\),\(\{3\}\),\(\{3,4\}\),\(\{1,2,5\}\).
no condition
3
\(\left \{ 1,2\right \} \)
\(\left \{ 2,3,4,5,6,7,\cdots \right \} \)
Table 2.23: Necessary conditions for each Kovacic case
The order of \(r\) at \(\infty \) is the degree of \(t\) minus the degree of \(s\). Therefore
There are no poles in \(r\). Therefore the set of poles \(\Gamma \) is empty. Since there is no odd order pole larger
than \(2\) and the order at \(\infty \) is \(0\) then the necessary conditions for case one are met. Therefore
\begin{align*} L &= [1] \end{align*}
Since \(r = -3\) is not a function of \(x\), then there is no need run Kovacic algorithm to obtain a
solution for transformed ode \(z''=r z\) as one solution is
\[ z_1(x) = \cos \left (\sqrt {3}\, x \right ) \]
Using the above, the solution for the
original ode can now be found. The first solution to the original ode in \(y\) is found from
This is second order nonhomogeneous ODE. Let the solution be
\[
y = y_h + y_p
\]
Where \(y_h\) is the solution to the
homogeneous ODE \( A y''(x) + B y'(x) + C y(x) = 0\), and \(y_p\) is a particular solution to the nonhomogeneous ODE \(A y''(x) + B y'(x) + C y(x) = f(x)\). \(y_h\) is the solution
to
\[
y^{\prime \prime }+3 y = 0
\]
The homogeneous solution is found using the Kovacic algorithm which results in
Since there is no duplication
between the basis function in the UC_set and the basis functions of the homogeneous
solution, the trial solution is a linear combination of all the basis in the UC_set.
The
unknowns \(\{A_{1}, A_{2}, A_{3}, A_{4}\}\) are found by substituting the above trial solution \(y_p\) into the ODE and comparing
coefficients. Substituting the trial solution into the ODE and simplifying gives
\[
y = \sin \left (\sqrt {3}\, x \right ) c_2 +\cos \left (\sqrt {3}\, x \right ) c_1 +\frac {\sin \left (x \right )}{2}-\frac {\sin \left (3 x \right )}{18}
\]
Maple trace
Methodsfor second order ODEs:---Trying classification methods ---tryinga quadraturetryinghigh order exact linear fully integrabletryingdifferential order: 2; linear nonhomogeneous with symmetry [0,1]tryinga double symmetry of the form [xi=0, eta=F(x)]->Try solving first the homogeneous part of the ODEchecking if the LODE has constant coefficients<- constant coefficients successful<-solving first the homogeneous part of the ODE successful
Maple step by step
\[ \begin {array}{lll} & {} & \textrm {Let's solve}\hspace {3pt} \\ {} & {} & \frac {d^{2}}{d x^{2}}y \left (x \right )+3 y \left (x \right )=\sin \left (x \right )+\frac {\sin \left (3 x \right )}{3} \\ \bullet & {} & \textrm {Highest derivative means the order of the ODE is}\hspace {3pt} 2 \\ {} & {} & \frac {d^{2}}{d x^{2}}y \left (x \right ) \\ \bullet & {} & \textrm {Characteristic polynomial of homogeneous ODE}\hspace {3pt} \\ {} & {} & r^{2}+3=0 \\ \bullet & {} & \textrm {Use quadratic formula to solve for}\hspace {3pt} r \\ {} & {} & r =\frac {0\pm \left (\sqrt {-12}\right )}{2} \\ \bullet & {} & \textrm {Roots of the characteristic polynomial}\hspace {3pt} \\ {} & {} & r =\left (\mathrm {-I} \sqrt {3}, \mathrm {I} \sqrt {3}\right ) \\ \bullet & {} & \textrm {1st solution of the homogeneous ODE}\hspace {3pt} \\ {} & {} & y_{1}\left (x \right )=\cos \left (\sqrt {3}\, x \right ) \\ \bullet & {} & \textrm {2nd solution of the homogeneous ODE}\hspace {3pt} \\ {} & {} & y_{2}\left (x \right )=\sin \left (\sqrt {3}\, x \right ) \\ \bullet & {} & \textrm {General solution of the ODE}\hspace {3pt} \\ {} & {} & y \left (x \right )=\mathit {C1} y_{1}\left (x \right )+\mathit {C2} y_{2}\left (x \right )+y_{p}\left (x \right ) \\ \bullet & {} & \textrm {Substitute in solutions of the homogeneous ODE}\hspace {3pt} \\ {} & {} & y \left (x \right )=\mathit {C1} \cos \left (\sqrt {3}\, x \right )+\mathit {C2} \sin \left (\sqrt {3}\, x \right )+y_{p}\left (x \right ) \\ \square & {} & \textrm {Find a particular solution}\hspace {3pt} y_{p}\left (x \right )\hspace {3pt}\textrm {of the ODE}\hspace {3pt} \\ {} & \circ & \textrm {Use variation of parameters to find}\hspace {3pt} y_{p}\hspace {3pt}\textrm {here}\hspace {3pt} f \left (x \right )\hspace {3pt}\textrm {is the forcing function}\hspace {3pt} \\ {} & {} & \left [y_{p}\left (x \right )=-y_{1}\left (x \right ) \int \frac {y_{2}\left (x \right ) f \left (x \right )}{W \left (y_{1}\left (x \right ), y_{2}\left (x \right )\right )}d x +y_{2}\left (x \right ) \int \frac {y_{1}\left (x \right ) f \left (x \right )}{W \left (y_{1}\left (x \right ), y_{2}\left (x \right )\right )}d x , f \left (x \right )=\sin \left (x \right )+\frac {\sin \left (3 x \right )}{3}\right ] \\ {} & \circ & \textrm {Wronskian of solutions of the homogeneous equation}\hspace {3pt} \\ {} & {} & W \left (y_{1}\left (x \right ), y_{2}\left (x \right )\right )=\left [\begin {array}{cc} \cos \left (\sqrt {3}\, x \right ) & \sin \left (\sqrt {3}\, x \right ) \\ -\sqrt {3}\, \sin \left (\sqrt {3}\, x \right ) & \sqrt {3}\, \cos \left (\sqrt {3}\, x \right ) \end {array}\right ] \\ {} & \circ & \textrm {Compute Wronskian}\hspace {3pt} \\ {} & {} & W \left (y_{1}\left (x \right ), y_{2}\left (x \right )\right )=\sqrt {3} \\ {} & \circ & \textrm {Substitute functions into equation for}\hspace {3pt} y_{p}\left (x \right ) \\ {} & {} & y_{p}\left (x \right )=-\frac {\sqrt {3}\, \left (\int \sin \left (\sqrt {3}\, x \right ) \left (3 \sin \left (x \right )+\sin \left (3 x \right )\right )d x \cos \left (\sqrt {3}\, x \right )-\int \cos \left (\sqrt {3}\, x \right ) \left (3 \sin \left (x \right )+\sin \left (3 x \right )\right )d x \sin \left (\sqrt {3}\, x \right )\right )}{9} \\ {} & \circ & \textrm {Compute integrals}\hspace {3pt} \\ {} & {} & y_{p}\left (x \right )=\frac {\sin \left (x \right )}{2}-\frac {\sin \left (3 x \right )}{18} \\ \bullet & {} & \textrm {Substitute particular solution into general solution to ODE}\hspace {3pt} \\ {} & {} & y \left (x \right )=\mathit {C1} \cos \left (\sqrt {3}\, x \right )+\mathit {C2} \sin \left (\sqrt {3}\, x \right )+\frac {\sin \left (x \right )}{2}-\frac {\sin \left (3 x \right )}{18} \end {array} \]
✓ Mathematica. Time used: 0.365 (sec). Leaf size: 42