19.36 problem section 9.3, problem 36

Internal problem ID [1533]

Book: Elementary differential equations with boundary value problems. William F. Trench. Brooks/Cole 2001
Section: Chapter 9 Introduction to Linear Higher Order Equations. Section 9.3. Undetermined Coefficients for Higher Order Equations. Page 495
Problem number: section 9.3, problem 36.
ODE order: 3.
ODE degree: 1.

CAS Maple gives this as type [[_3rd_order, _missing_y]]

\[ \boxed {y^{\prime \prime \prime }-6 y^{\prime \prime }+18 y^{\prime }=-{\mathrm e}^{3 x} \left (\left (2-3 x \right ) \cos \left (3 x \right )-\left (3+3 x \right ) \sin \left (3 x \right )\right )} \]

Solution by Maple

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

dsolve(1*diff(y(x),x$3)-6*diff(y(x),x$2)+18*diff(y(x),x)-0*y(x)=-exp(3*x)*((2-3*x)*cos(3*x)-(3+3*x)*sin(3*x)),y(x), singsol=all)
 

\[ y \left (x \right ) = -\frac {{\mathrm e}^{3 x} \cos \left (3 x \right ) x^{2}}{12}+\frac {11 \cos \left (3 x \right ) {\mathrm e}^{3 x}}{36}-\frac {{\mathrm e}^{3 x} \sin \left (3 x \right ) x}{12}-\frac {37 \,{\mathrm e}^{3 x} \sin \left (3 x \right )}{24}+\frac {\cos \left (3 x \right ) {\mathrm e}^{3 x} c_{1}}{6}+\frac {c_{1} {\mathrm e}^{3 x} \sin \left (3 x \right )}{6}-\frac {c_{2} \cos \left (3 x \right ) {\mathrm e}^{3 x}}{6}+\frac {{\mathrm e}^{3 x} \sin \left (3 x \right ) c_{2}}{6}+c_{3} \]

Solution by Mathematica

Time used: 3.765 (sec). Leaf size: 57

DSolve[1*y'''[x]-6*y''[x]+18*y'[x]-0*y[x]==-Exp[3*x]*((2-3*x)*Cos[3*x]-(3+3*x)*Sin[3*x]),y[x],x,IncludeSingularSolutions -> True]
 

\[ y(x)\to c_3-\frac {1}{216} e^{3 x} \left (6 \left (3 x^2+1+6 c_1-6 c_2\right ) \cos (3 x)+(18 x+1-36 c_1-36 c_2) \sin (3 x)\right ) \]