15.64 problem 22.13 (b)

Internal problem ID [13758]
Internal file name [OUTPUT/12930_Sunday_February_18_2024_08_01_40_AM_49666120/index.tex]

Book: Ordinary Differential Equations. An introduction to the fundamentals. Kenneth B. Howell. second edition. CRC Press. FL, USA. 2020
Section: Chapter 22. Method of undetermined coefficients. Additional exercises page 412
Problem number: 22.13 (b).
ODE order: 5.
ODE degree: 1.

The type(s) of ODE detected by this program : "higher_order_linear_constant_coefficients_ODE"

Maple gives the following as the ode type

[[_high_order, _missing_y]]

\[ \boxed {y^{\left (5\right )}+18 y^{\prime \prime \prime }+81 y^{\prime }=x^{2} \sin \left (3 x \right )} \] This is higher order nonhomogeneous ODE. Let the solution be \[ y = y_h + y_p \] Where \(y_h\) is the solution to the homogeneous ODE And \(y_p\) is a particular solution to the nonhomogeneous ODE. \(y_h\) is the solution to \[ y^{\left (5\right )}+18 y^{\prime \prime \prime }+81 y^{\prime } = 0 \] The characteristic equation is \[ \lambda ^{5}+18 \lambda ^{3}+81 \lambda = 0 \] The roots of the above equation are \begin {align*} \lambda _1 &= 0\\ \lambda _2 &= 3 i\\ \lambda _3 &= -3 i\\ \lambda _4 &= 3 i\\ \lambda _5 &= -3 i \end {align*}

Therefore the homogeneous solution is \[ y_h(x)=c_{1} +{\mathrm e}^{-3 i x} c_{2} +x \,{\mathrm e}^{-3 i x} c_{3} +{\mathrm e}^{3 i x} c_{4} +x \,{\mathrm e}^{3 i x} c_{5} \] The fundamental set of solutions for the homogeneous solution are the following \begin{align*} y_1 &= 1 \\ y_2 &= {\mathrm e}^{-3 i x} \\ y_3 &= x \,{\mathrm e}^{-3 i x} \\ y_4 &= {\mathrm e}^{3 i x} \\ y_5 &= x \,{\mathrm e}^{3 i x} \\ \end{align*} Now the particular solution to the given ODE is found \[ y^{\left (5\right )}+18 y^{\prime \prime \prime }+81 y^{\prime } = x^{2} \sin \left (3 x \right ) \] Let the particular solution be \[ y_p = U_1 y_1+U_2 y_2+U_3 y_3+U_4 y_4+U_5 y_5 \] Where \(y_i\) are the basis solutions found above for the homogeneous solution \(y_h\) and \(U_i(x)\) are functions to be determined as follows \[ U_i = (-1)^{n-i} \int { \frac {F(x) W_i(x) }{a W(x)} \, dx} \] Where \(W(x)\) is the Wronskian and \(W_i(x)\) is the Wronskian that results after deleting the last row and the \(i\)-th column of the determinant and \(n\) is the order of the ODE or equivalently, the number of basis solutions, and \(a\) is the coefficient of the leading derivative in the ODE, and \(F(x)\) is the RHS of the ODE. Therefore, the first step is to find the Wronskian \(W \left (x \right )\). This is given by \begin {equation*} W(x) = \begin {vmatrix} y_1&y_2&y_3&y_4&y_5\\ y_1'&y_2'&y_3'&y_4'&y_5'\\ y_1''&y_2''&y_3''&y_4''&y_5''\\ y_1'''&y_2'''&y_3'''&y_4'''&y_5'''\\ y_1''''&y_2''''&y_3''''&y_4''''&y_5''''\\ \end {vmatrix} \end {equation*} Substituting the fundamental set of solutions \(y_i\) found above in the Wronskian gives \begin {align*} W &= \left [\begin {array}{ccccc} 1 & {\mathrm e}^{-3 i x} & x \,{\mathrm e}^{-3 i x} & {\mathrm e}^{3 i x} & x \,{\mathrm e}^{3 i x} \\ 0 & -3 i {\mathrm e}^{-3 i x} & {\mathrm e}^{-3 i x} \left (-3 i x +1\right ) & 3 i {\mathrm e}^{3 i x} & {\mathrm e}^{3 i x} \left (3 i x +1\right ) \\ 0 & -9 \,{\mathrm e}^{-3 i x} & \left (-6 i-9 x \right ) {\mathrm e}^{-3 i x} & -9 \,{\mathrm e}^{3 i x} & \left (6 i-9 x \right ) {\mathrm e}^{3 i x} \\ 0 & 27 i {\mathrm e}^{-3 i x} & 27 \,{\mathrm e}^{-3 i x} \left (i x -1\right ) & -27 i {\mathrm e}^{3 i x} & -27 \,{\mathrm e}^{3 i x} \left (i x +1\right ) \\ 0 & 81 \,{\mathrm e}^{-3 i x} & \left (108 i+81 x \right ) {\mathrm e}^{-3 i x} & 81 \,{\mathrm e}^{3 i x} & \left (-108 i+81 x \right ) {\mathrm e}^{3 i x} \end {array}\right ] \\ |W| &= 104976 \,{\mathrm e}^{6 i x} {\mathrm e}^{-6 i x} \end {align*}

The determinant simplifies to \begin {align*} |W| &= 104976 \end {align*}

Now we determine \(W_i\) for each \(U_i\). \begin {align*} W_1(x) &= \det \,\left [\begin {array}{cccc} {\mathrm e}^{-3 i x} & x \,{\mathrm e}^{-3 i x} & {\mathrm e}^{3 i x} & x \,{\mathrm e}^{3 i x} \\ -3 i {\mathrm e}^{-3 i x} & {\mathrm e}^{-3 i x} \left (-3 i x +1\right ) & 3 i {\mathrm e}^{3 i x} & {\mathrm e}^{3 i x} \left (3 i x +1\right ) \\ -9 \,{\mathrm e}^{-3 i x} & \left (-6 i-9 x \right ) {\mathrm e}^{-3 i x} & -9 \,{\mathrm e}^{3 i x} & \left (6 i-9 x \right ) {\mathrm e}^{3 i x} \\ 27 i {\mathrm e}^{-3 i x} & 27 \,{\mathrm e}^{-3 i x} \left (i x -1\right ) & -27 i {\mathrm e}^{3 i x} & -27 \,{\mathrm e}^{3 i x} \left (i x +1\right ) \end {array}\right ] \\ &= 1296 \end {align*}

\begin {align*} W_2(x) &= \det \,\left [\begin {array}{cccc} 1 & x \,{\mathrm e}^{-3 i x} & {\mathrm e}^{3 i x} & x \,{\mathrm e}^{3 i x} \\ 0 & {\mathrm e}^{-3 i x} \left (-3 i x +1\right ) & 3 i {\mathrm e}^{3 i x} & {\mathrm e}^{3 i x} \left (3 i x +1\right ) \\ 0 & \left (-6 i-9 x \right ) {\mathrm e}^{-3 i x} & -9 \,{\mathrm e}^{3 i x} & \left (6 i-9 x \right ) {\mathrm e}^{3 i x} \\ 0 & 27 \,{\mathrm e}^{-3 i x} \left (i x -1\right ) & -27 i {\mathrm e}^{3 i x} & -27 \,{\mathrm e}^{3 i x} \left (i x +1\right ) \end {array}\right ] \\ &= \left (-972 i x +648\right ) {\mathrm e}^{3 i x} \end {align*}

\begin {align*} W_3(x) &= \det \,\left [\begin {array}{cccc} 1 & {\mathrm e}^{-3 i x} & {\mathrm e}^{3 i x} & x \,{\mathrm e}^{3 i x} \\ 0 & -3 i {\mathrm e}^{-3 i x} & 3 i {\mathrm e}^{3 i x} & {\mathrm e}^{3 i x} \left (3 i x +1\right ) \\ 0 & -9 \,{\mathrm e}^{-3 i x} & -9 \,{\mathrm e}^{3 i x} & \left (6 i-9 x \right ) {\mathrm e}^{3 i x} \\ 0 & 27 i {\mathrm e}^{-3 i x} & -27 i {\mathrm e}^{3 i x} & -27 \,{\mathrm e}^{3 i x} \left (i x +1\right ) \end {array}\right ] \\ &= -972 i {\mathrm e}^{3 i x} \end {align*}

\begin {align*} W_4(x) &= \det \,\left [\begin {array}{cccc} 1 & {\mathrm e}^{-3 i x} & x \,{\mathrm e}^{-3 i x} & x \,{\mathrm e}^{3 i x} \\ 0 & -3 i {\mathrm e}^{-3 i x} & {\mathrm e}^{-3 i x} \left (-3 i x +1\right ) & {\mathrm e}^{3 i x} \left (3 i x +1\right ) \\ 0 & -9 \,{\mathrm e}^{-3 i x} & \left (-6 i-9 x \right ) {\mathrm e}^{-3 i x} & \left (6 i-9 x \right ) {\mathrm e}^{3 i x} \\ 0 & 27 i {\mathrm e}^{-3 i x} & 27 \,{\mathrm e}^{-3 i x} \left (i x -1\right ) & -27 \,{\mathrm e}^{3 i x} \left (i x +1\right ) \end {array}\right ] \\ &= \left (972 i x +648\right ) {\mathrm e}^{-3 i x} \end {align*}

\begin {align*} W_5(x) &= \det \,\left [\begin {array}{cccc} 1 & {\mathrm e}^{-3 i x} & x \,{\mathrm e}^{-3 i x} & {\mathrm e}^{3 i x} \\ 0 & -3 i {\mathrm e}^{-3 i x} & {\mathrm e}^{-3 i x} \left (-3 i x +1\right ) & 3 i {\mathrm e}^{3 i x} \\ 0 & -9 \,{\mathrm e}^{-3 i x} & \left (-6 i-9 x \right ) {\mathrm e}^{-3 i x} & -9 \,{\mathrm e}^{3 i x} \\ 0 & 27 i {\mathrm e}^{-3 i x} & 27 \,{\mathrm e}^{-3 i x} \left (i x -1\right ) & -27 i {\mathrm e}^{3 i x} \end {array}\right ] \\ &= 972 i {\mathrm e}^{-3 i x} \end {align*}

Now we are ready to evaluate each \(U_i(x)\). \begin {align*} U_1 &= (-1)^{5-1} \int { \frac {F(x) W_1(x) }{a W(x)} \, dx}\\ &= (-1)^{4} \int { \frac { \left (x^{2} \sin \left (3 x \right )\right ) \left (1296\right )}{\left (1\right ) \left (104976\right )} \, dx} \\ &= \int { \frac {1296 x^{2} \sin \left (3 x \right )}{104976} \, dx}\\ &= \int {\left (\frac {x^{2} \sin \left (3 x \right )}{81}\right ) \, dx}\\ &= -\frac {x^{2} \cos \left (3 x \right )}{243}+\frac {2 \cos \left (3 x \right )}{2187}+\frac {2 \sin \left (3 x \right ) x}{729} \end {align*}

\begin {align*} U_2 &= (-1)^{5-2} \int { \frac {F(x) W_2(x) }{a W(x)} \, dx}\\ &= (-1)^{3} \int { \frac { \left (x^{2} \sin \left (3 x \right )\right ) \left (\left (-972 i x +648\right ) {\mathrm e}^{3 i x}\right )}{\left (1\right ) \left (104976\right )} \, dx} \\ &= - \int { \frac {x^{2} \sin \left (3 x \right ) \left (-972 i x +648\right ) {\mathrm e}^{3 i x}}{104976} \, dx}\\ &= - \int {\left (-\frac {{\mathrm e}^{3 i x} x^{2} \sin \left (3 x \right ) \left (i x -\frac {2}{3}\right )}{108}\right ) \, dx} \\ &= -\frac {x^{4}}{864}-\frac {i x^{3}}{972}-\frac {i \left (-\frac {7}{648} i-\frac {7}{108} x +\frac {7}{36} i x^{2}+\frac {1}{6} x^{3}\right ) {\mathrm e}^{6 i x}}{216} \\ &= -\frac {x^{4}}{864}-\frac {i x^{3}}{972}-\frac {i \left (-\frac {7}{648} i-\frac {7}{108} x +\frac {7}{36} i x^{2}+\frac {1}{6} x^{3}\right ) {\mathrm e}^{6 i x}}{216} \end {align*}

\begin {align*} U_3 &= (-1)^{5-3} \int { \frac {F(x) W_3(x) }{a W(x)} \, dx}\\ &= (-1)^{2} \int { \frac { \left (x^{2} \sin \left (3 x \right )\right ) \left (-972 i {\mathrm e}^{3 i x}\right )}{\left (1\right ) \left (104976\right )} \, dx} \\ &= \int { \frac {-972 i x^{2} \sin \left (3 x \right ) {\mathrm e}^{3 i x}}{104976} \, dx}\\ &= \int {\left (-\frac {i x^{2} \sin \left (3 x \right ) {\mathrm e}^{3 i x}}{108}\right ) \, dx}\\ &= \frac {x^{3}}{648}+\frac {i \left (18 x^{2}+6 i x -1\right ) {\mathrm e}^{6 i x}}{23328} \end {align*}

\begin {align*} U_4 &= (-1)^{5-4} \int { \frac {F(x) W_4(x) }{a W(x)} \, dx}\\ &= (-1)^{1} \int { \frac { \left (x^{2} \sin \left (3 x \right )\right ) \left (\left (972 i x +648\right ) {\mathrm e}^{-3 i x}\right )}{\left (1\right ) \left (104976\right )} \, dx} \\ &= - \int { \frac {x^{2} \sin \left (3 x \right ) \left (972 i x +648\right ) {\mathrm e}^{-3 i x}}{104976} \, dx}\\ &= - \int {\left (\frac {x^{2} \sin \left (3 x \right ) \left (3 i x +2\right ) {\mathrm e}^{-3 i x}}{324}\right ) \, dx} \\ &= -\frac {x^{4}}{864}+\frac {i x^{3}}{972}+\frac {i \left (108 x^{3}-126 i x^{2}-42 x +7 i\right ) {\mathrm e}^{-6 i x}}{139968} \end {align*}

\begin {align*} U_5 &= (-1)^{5-5} \int { \frac {F(x) W_5(x) }{a W(x)} \, dx}\\ &= (-1)^{0} \int { \frac { \left (x^{2} \sin \left (3 x \right )\right ) \left (972 i {\mathrm e}^{-3 i x}\right )}{\left (1\right ) \left (104976\right )} \, dx} \\ &= \int { \frac {972 i x^{2} \sin \left (3 x \right ) {\mathrm e}^{-3 i x}}{104976} \, dx}\\ &= \int {\left (\frac {i x^{2} \sin \left (3 x \right ) {\mathrm e}^{-3 i x}}{108}\right ) \, dx}\\ &= \frac {x^{3}}{648}-\frac {i \left (18 x^{2}-6 i x -1\right ) {\mathrm e}^{-6 i x}}{23328} \end {align*}

Now that all the \(U_i\) functions have been determined, the particular solution is found from \[ y_p = U_1 y_1+U_2 y_2+U_3 y_3+U_4 y_4+U_5 y_5 \] Hence \begin {equation*} \begin {split} y_p &= \left (-\frac {x^{2} \cos \left (3 x \right )}{243}+\frac {2 \cos \left (3 x \right )}{2187}+\frac {2 \sin \left (3 x \right ) x}{729}\right ) \\ &+\left (-\frac {x^{4}}{864}-\frac {i x^{3}}{972}-\frac {i \left (-\frac {7}{648} i-\frac {7}{108} x +\frac {7}{36} i x^{2}+\frac {1}{6} x^{3}\right ) {\mathrm e}^{6 i x}}{216}\right ) \left ({\mathrm e}^{-3 i x}\right ) \\ &+\left (\frac {x^{3}}{648}+\frac {i \left (18 x^{2}+6 i x -1\right ) {\mathrm e}^{6 i x}}{23328}\right ) \left (x \,{\mathrm e}^{-3 i x}\right ) \\ &+\left (-\frac {x^{4}}{864}+\frac {i x^{3}}{972}+\frac {i \left (108 x^{3}-126 i x^{2}-42 x +7 i\right ) {\mathrm e}^{-6 i x}}{139968}\right ) \left ({\mathrm e}^{3 i x}\right ) \\ &+\left (\frac {x^{3}}{648}-\frac {i \left (18 x^{2}-6 i x -1\right ) {\mathrm e}^{-6 i x}}{23328}\right ) \left (x \,{\mathrm e}^{3 i x}\right ) \end {split} \end {equation*} Therefore the particular solution is \[ y_p = \frac {\left (18 x^{4}-66 x^{2}+19\right ) \cos \left (3 x \right )}{23328}+\frac {\left (-12 x^{3}+13 x \right ) \sin \left (3 x \right )}{5832} \] Therefore the general solution is \begin{align*} y &= y_h + y_p \\ &= \left (c_{1} +{\mathrm e}^{-3 i x} c_{2} +x \,{\mathrm e}^{-3 i x} c_{3} +{\mathrm e}^{3 i x} c_{4} +x \,{\mathrm e}^{3 i x} c_{5}\right ) + \left (\frac {\left (18 x^{4}-66 x^{2}+19\right ) \cos \left (3 x \right )}{23328}+\frac {\left (-12 x^{3}+13 x \right ) \sin \left (3 x \right )}{5832}\right ) \\ \end{align*} Which simplifies to \[ y = \left (c_{3} x +c_{2} \right ) {\mathrm e}^{-3 i x}+\left (c_{5} x +c_{4} \right ) {\mathrm e}^{3 i x}+c_{1} +\frac {\left (18 x^{4}-66 x^{2}+19\right ) \cos \left (3 x \right )}{23328}+\frac {\left (-12 x^{3}+13 x \right ) \sin \left (3 x \right )}{5832} \]

Summary

The solution(s) found are the following \begin{align*} \tag{1} y &= \left (c_{3} x +c_{2} \right ) {\mathrm e}^{-3 i x}+\left (c_{5} x +c_{4} \right ) {\mathrm e}^{3 i x}+c_{1} +\frac {\left (18 x^{4}-66 x^{2}+19\right ) \cos \left (3 x \right )}{23328}+\frac {\left (-12 x^{3}+13 x \right ) \sin \left (3 x \right )}{5832} \\ \end{align*}

Verification of solutions

\[ y = \left (c_{3} x +c_{2} \right ) {\mathrm e}^{-3 i x}+\left (c_{5} x +c_{4} \right ) {\mathrm e}^{3 i x}+c_{1} +\frac {\left (18 x^{4}-66 x^{2}+19\right ) \cos \left (3 x \right )}{23328}+\frac {\left (-12 x^{3}+13 x \right ) \sin \left (3 x \right )}{5832} \] Verified OK.

Maple trace

`Methods for high order ODEs: 
--- Trying classification methods --- 
trying a quadrature 
trying high order exact linear fully integrable 
trying differential order: 5; linear nonhomogeneous with symmetry [0,1] 
-> Calling odsolve with the ODE`, diff(diff(diff(diff(_b(_a), _a), _a), _a), _a) = _a^2*sin(3*_a)-18*(diff(diff(_b(_a), _a), _a))-81 
   Methods for high order ODEs: 
   --- Trying classification methods --- 
   trying a quadrature 
   trying high order exact linear fully integrable 
   trying differential order: 4; linear nonhomogeneous with symmetry [0,1] 
   trying high order linear exact nonhomogeneous 
   trying differential order: 4; missing the dependent variable 
   checking if the LODE has constant coefficients 
   <- constant coefficients successful 
<- differential order: 5; linear nonhomogeneous with symmetry [0,1] successful`
 

Solution by Maple

Time used: 0.0 (sec). Leaf size: 59

dsolve(diff(y(x),x$5)+18*diff(y(x),x$3)+81*diff(y(x),x)=x^2*sin(3*x),y(x), singsol=all)
 

\[ y \left (x \right ) = \frac {\left (18 x^{4}-7776 c_{4} x -66 x^{2}-7776 c_{2} +2592 c_{3} +19\right ) \cos \left (3 x \right )}{23328}+\frac {\left (-12 x^{3}+\left (13+1944 c_{3} \right ) x +1944 c_{1} +648 c_{4} \right ) \sin \left (3 x \right )}{5832}+c_{5} \]

Solution by Mathematica

Time used: 0.411 (sec). Leaf size: 72

DSolve[y'''''[x]+18*y'''[x]+81*y'[x]==x^2*Sin[3*x],y[x],x,IncludeSingularSolutions -> True]
 

\[ y(x)\to \frac {4 \left (-12 x^3+(13+1944 c_2) x+648 (3 c_1+c_4)\right ) \sin (3 x)+\left (18 x^4-66 x^2-7776 c_4 x+19+2592 c_2-7776 c_3\right ) \cos (3 x)}{23328}+c_5 \]