4.17 problem 1465

Internal problem ID [9791]
Internal file name [OUTPUT/8734_Monday_June_06_2022_05_21_37_AM_17379916/index.tex]

Book: Differential Gleichungen, E. Kamke, 3rd ed. Chelsea Pub. NY, 1948
Section: Chapter 3, linear third order
Problem number: 1465.
ODE order: 3.
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

[[_3rd_order, _linear, _nonhomogeneous]]

\[ \boxed {y^{\prime \prime \prime }-2 y^{\prime \prime }-a^{2} y^{\prime }+2 a^{2} y=\sinh \left (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^{\prime \prime \prime }-2 y^{\prime \prime }-a^{2} y^{\prime }+2 a^{2} y = 0 \] The characteristic equation is \[ -a^{2} \lambda +\lambda ^{3}+2 a^{2}-2 \lambda ^{2} = 0 \] The roots of the above equation are \begin {align*} \lambda _1 &= 2\\ \lambda _2 &= a\\ \lambda _3 &= -a \end {align*}

Therefore the homogeneous solution is \[ y_h(x)={\mathrm e}^{2 x} c_{1} +{\mathrm e}^{-a x} c_{2} +{\mathrm e}^{a x} c_{3} \] The fundamental set of solutions for the homogeneous solution are the following \begin{align*} y_1 &= {\mathrm e}^{2 x} \\ y_2 &= {\mathrm e}^{-a x} \\ y_3 &= {\mathrm e}^{a x} \\ \end{align*} Now the particular solution to the given ODE is found \[ y^{\prime \prime \prime }-2 y^{\prime \prime }-a^{2} y^{\prime }+2 a^{2} y = \sinh \left (x \right ) \] Let the particular solution be \[ y_p = U_1 y_1+U_2 y_2+U_3 y_3 \] 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_1'&y_2'&y_3'\\ y_1''&y_2''&y_3''\\ \end {vmatrix} \end {equation*} Substituting the fundamental set of solutions \(y_i\) found above in the Wronskian gives \begin {align*} W &= \left [\begin {array}{ccc} {\mathrm e}^{2 x} & {\mathrm e}^{-a x} & {\mathrm e}^{a x} \\ 2 \,{\mathrm e}^{2 x} & -a \,{\mathrm e}^{-a x} & a \,{\mathrm e}^{a x} \\ 4 \,{\mathrm e}^{2 x} & a^{2} {\mathrm e}^{-a x} & a^{2} {\mathrm e}^{a x} \end {array}\right ] \\ |W| &= -2 \,{\mathrm e}^{2 x} a^{3} {\mathrm e}^{-a x} {\mathrm e}^{a x}+8 \,{\mathrm e}^{2 x} {\mathrm e}^{-a x} a \,{\mathrm e}^{a x} \end {align*}

The determinant simplifies to \begin {align*} |W| &= -2 \,{\mathrm e}^{2 x} a \left (a^{2}-4\right ) \end {align*}

Now we determine \(W_i\) for each \(U_i\). \begin {align*} W_1(x) &= \det \,\left [\begin {array}{cc} {\mathrm e}^{-a x} & {\mathrm e}^{a x} \\ -a \,{\mathrm e}^{-a x} & a \,{\mathrm e}^{a x} \end {array}\right ] \\ &= 2 a \end {align*}

\begin {align*} W_2(x) &= \det \,\left [\begin {array}{cc} {\mathrm e}^{2 x} & {\mathrm e}^{a x} \\ 2 \,{\mathrm e}^{2 x} & a \,{\mathrm e}^{a x} \end {array}\right ] \\ &= {\mathrm e}^{x \left (a +2\right )} \left (-2+a \right ) \end {align*}

\begin {align*} W_3(x) &= \det \,\left [\begin {array}{cc} {\mathrm e}^{2 x} & {\mathrm e}^{-a x} \\ 2 \,{\mathrm e}^{2 x} & -a \,{\mathrm e}^{-a x} \end {array}\right ] \\ &= -{\mathrm e}^{-x \left (-2+a \right )} \left (a +2\right ) \end {align*}

Now we are ready to evaluate each \(U_i(x)\). \begin {align*} U_1 &= (-1)^{3-1} \int { \frac {F(x) W_1(x) }{a W(x)} \, dx}\\ &= (-1)^{2} \int { \frac { \left (\sinh \left (x \right )\right ) \left (2 a\right )}{\left (1\right ) \left (-2 \,{\mathrm e}^{2 x} a \left (a^{2}-4\right )\right )} \, dx} \\ &= \int { \frac {2 \sinh \left (x \right ) a}{-2 \,{\mathrm e}^{2 x} a \left (a^{2}-4\right )} \, dx}\\ &= \int {\left (-\frac {\sinh \left (x \right ) {\mathrm e}^{-2 x}}{a^{2}-4}\right ) \, dx}\\ &= -\frac {\frac {2 \cosh \left (x \right )^{3}}{3}-\frac {2 \sinh \left (x \right )^{3}}{3}-\cosh \left (x \right )}{a^{2}-4} \end {align*}

\begin {align*} U_2 &= (-1)^{3-2} \int { \frac {F(x) W_2(x) }{a W(x)} \, dx}\\ &= (-1)^{1} \int { \frac { \left (\sinh \left (x \right )\right ) \left ({\mathrm e}^{x \left (a +2\right )} \left (-2+a \right )\right )}{\left (1\right ) \left (-2 \,{\mathrm e}^{2 x} a \left (a^{2}-4\right )\right )} \, dx} \\ &= - \int { \frac {\sinh \left (x \right ) {\mathrm e}^{x \left (a +2\right )} \left (-2+a \right )}{-2 \,{\mathrm e}^{2 x} a \left (a^{2}-4\right )} \, dx}\\ &= - \int {\left (-\frac {{\mathrm e}^{a x} \sinh \left (x \right )}{2 \left (a +2\right ) a}\right ) \, dx} \\ &= \frac {-\frac {\sinh \left (x \left (a -1\right )\right )}{2 \left (a -1\right )}+\frac {\sinh \left (x \left (a +1\right )\right )}{2 a +2}-\frac {\cosh \left (x \left (a -1\right )\right )}{2 \left (a -1\right )}+\frac {\cosh \left (x \left (a +1\right )\right )}{2 a +2}}{2 \left (a +2\right ) a} \\ &= \frac {-\frac {\sinh \left (x \left (a -1\right )\right )}{2 \left (a -1\right )}+\frac {\sinh \left (x \left (a +1\right )\right )}{2 a +2}-\frac {\cosh \left (x \left (a -1\right )\right )}{2 \left (a -1\right )}+\frac {\cosh \left (x \left (a +1\right )\right )}{2 a +2}}{2 \left (a +2\right ) a} \end {align*}

\begin {align*} U_3 &= (-1)^{3-3} \int { \frac {F(x) W_3(x) }{a W(x)} \, dx}\\ &= (-1)^{0} \int { \frac { \left (\sinh \left (x \right )\right ) \left (-{\mathrm e}^{-x \left (-2+a \right )} \left (a +2\right )\right )}{\left (1\right ) \left (-2 \,{\mathrm e}^{2 x} a \left (a^{2}-4\right )\right )} \, dx} \\ &= \int { \frac {-\sinh \left (x \right ) {\mathrm e}^{-x \left (-2+a \right )} \left (a +2\right )}{-2 \,{\mathrm e}^{2 x} a \left (a^{2}-4\right )} \, dx}\\ &= \int {\left (\frac {{\mathrm e}^{-a x} \sinh \left (x \right )}{2 \left (-2+a \right ) a}\right ) \, dx} \\ &= \frac {\frac {\sinh \left (x \left (a -1\right )\right )}{2 a -2}-\frac {\sinh \left (x \left (a +1\right )\right )}{2 \left (a +1\right )}-\frac {\cosh \left (x \left (a -1\right )\right )}{2 \left (a -1\right )}+\frac {\cosh \left (x \left (a +1\right )\right )}{2 a +2}}{2 \left (-2+a \right ) a} \\ &= \frac {\frac {\sinh \left (x \left (a -1\right )\right )}{2 a -2}-\frac {\sinh \left (x \left (a +1\right )\right )}{2 \left (a +1\right )}-\frac {\cosh \left (x \left (a -1\right )\right )}{2 \left (a -1\right )}+\frac {\cosh \left (x \left (a +1\right )\right )}{2 a +2}}{2 \left (-2+a \right ) a} \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 \] Hence \begin {equation*} \begin {split} y_p &= \left (-\frac {\frac {2 \cosh \left (x \right )^{3}}{3}-\frac {2 \sinh \left (x \right )^{3}}{3}-\cosh \left (x \right )}{a^{2}-4}\right ) \left ({\mathrm e}^{2 x}\right ) \\ &+\left (\frac {-\frac {\sinh \left (x \left (a -1\right )\right )}{2 \left (a -1\right )}+\frac {\sinh \left (x \left (a +1\right )\right )}{2 a +2}-\frac {\cosh \left (x \left (a -1\right )\right )}{2 \left (a -1\right )}+\frac {\cosh \left (x \left (a +1\right )\right )}{2 a +2}}{2 \left (a +2\right ) a}\right ) \left ({\mathrm e}^{-a x}\right ) \\ &+\left (\frac {\frac {\sinh \left (x \left (a -1\right )\right )}{2 a -2}-\frac {\sinh \left (x \left (a +1\right )\right )}{2 \left (a +1\right )}-\frac {\cosh \left (x \left (a -1\right )\right )}{2 \left (a -1\right )}+\frac {\cosh \left (x \left (a +1\right )\right )}{2 a +2}}{2 \left (-2+a \right ) a}\right ) \left ({\mathrm e}^{a x}\right ) \end {split} \end {equation*} Therefore the particular solution is \[ y_p = \frac {-2 \left (a -1\right ) \left (\left (\sinh \left (x \right )^{2}-\frac {1}{2}\right ) \cosh \left (x \right )-\sinh \left (x \right )^{3}\right ) \left (a +1\right ) {\mathrm e}^{2 x}-3 \cosh \left (x \right )-6 \sinh \left (x \right )}{3 a^{4}-15 a^{2}+12} \] Therefore the general solution is \begin{align*} y &= y_h + y_p \\ &= \left ({\mathrm e}^{2 x} c_{1} +{\mathrm e}^{-a x} c_{2} +{\mathrm e}^{a x} c_{3}\right ) + \left (\frac {-2 \left (a -1\right ) \left (\left (\sinh \left (x \right )^{2}-\frac {1}{2}\right ) \cosh \left (x \right )-\sinh \left (x \right )^{3}\right ) \left (a +1\right ) {\mathrm e}^{2 x}-3 \cosh \left (x \right )-6 \sinh \left (x \right )}{3 a^{4}-15 a^{2}+12}\right ) \\ \end{align*}

Summary

The solution(s) found are the following \begin{align*} \tag{1} y &= {\mathrm e}^{2 x} c_{1} +{\mathrm e}^{-a x} c_{2} +{\mathrm e}^{a x} c_{3} +\frac {-2 \left (a -1\right ) \left (\left (\sinh \left (x \right )^{2}-\frac {1}{2}\right ) \cosh \left (x \right )-\sinh \left (x \right )^{3}\right ) \left (a +1\right ) {\mathrm e}^{2 x}-3 \cosh \left (x \right )-6 \sinh \left (x \right )}{3 a^{4}-15 a^{2}+12} \\ \end{align*}

Verification of solutions

\[ y = {\mathrm e}^{2 x} c_{1} +{\mathrm e}^{-a x} c_{2} +{\mathrm e}^{a x} c_{3} +\frac {-2 \left (a -1\right ) \left (\left (\sinh \left (x \right )^{2}-\frac {1}{2}\right ) \cosh \left (x \right )-\sinh \left (x \right )^{3}\right ) \left (a +1\right ) {\mathrm e}^{2 x}-3 \cosh \left (x \right )-6 \sinh \left (x \right )}{3 a^{4}-15 a^{2}+12} \] Verified OK.

Maple trace

`Methods for third order ODEs: 
--- Trying classification methods --- 
trying a quadrature 
trying high order exact linear fully integrable 
trying differential order: 3; linear nonhomogeneous with symmetry [0,1] 
trying high order linear exact nonhomogeneous 
trying differential order: 3; missing the dependent variable 
checking if the LODE has constant coefficients 
<- constant coefficients successful`
 

Solution by Maple

Time used: 0.016 (sec). Leaf size: 101

dsolve(diff(diff(diff(y(x),x),x),x)-2*diff(diff(y(x),x),x)-a^2*diff(y(x),x)+2*a^2*y(x)-sinh(x)=0,y(x), singsol=all)
 

\[ y \left (x \right ) = \frac {2 c_{3} \left (a^{4}-5 a^{2}+4\right ) {\mathrm e}^{-a x}+2 \left (a +1\right ) \left (a^{2} c_{1} +\frac {\sinh \left (3 x \right )}{6}-4 c_{1} -\frac {\cosh \left (3 x \right )}{6}\right ) \left (a -1\right ) {\mathrm e}^{2 x}+2 c_{2} \left (a^{4}-5 a^{2}+4\right ) {\mathrm e}^{a x}+a^{2} {\mathrm e}^{x}-4 \,{\mathrm e}^{x}+{\mathrm e}^{-x}}{2 a^{4}-10 a^{2}+8} \]

Solution by Mathematica

Time used: 0.069 (sec). Leaf size: 52

DSolve[-Sinh[x] + 2*a^2*y[x] - a^2*y'[x] - 2*y''[x] + Derivative[3][y][x] == 0,y[x],x,IncludeSingularSolutions -> True]
 

\[ y(x)\to \frac {e^{-x}-3 e^x}{6-6 a^2}+c_1 e^{-a x}+c_3 e^{a x}+c_2 e^{2 x} \]