2.14 problem 14

Internal problem ID [2746]

Book: Differential equations for engineers by Wei-Chau XIE, Cambridge Press 2010
Section: Chapter 4. Linear Differential Equations. Page 183
Problem number: 14.
ODE order: 2.
ODE degree: 1.

CAS Maple gives this as type [[_2nd_order, _linear, _nonhomogeneous]]

Solve \begin {gather*} \boxed {y^{\prime \prime }-8 y^{\prime }+17 y-{\mathrm e}^{4 x} \left (x^{2}-3 x \sin \relax (x )\right )=0} \end {gather*}

Solution by Maple

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

dsolve(diff(y(x),x$2)-8*diff(y(x),x)+17*y(x)=exp(4*x)*(x^2-3*x*sin(x)),y(x), singsol=all)
 

\[ y \relax (x ) = {\mathrm e}^{4 x} \sin \relax (x ) c_{2}+{\mathrm e}^{4 x} \cos \relax (x ) c_{1}+\frac {{\mathrm e}^{4 x} \left (3 \cos \relax (x ) x^{2}-3 x \sin \relax (x )+4 x^{2}-8\right )}{4} \]

Solution by Mathematica

Time used: 0.118 (sec). Leaf size: 47

DSolve[y''[x]-8*y'[x]+17*y[x]==Exp[4*x]*(x^2-3*x*Sin[x]),y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to \frac {1}{8} e^{4 x} \left (8 \left (x^2-2\right )+\left (6 x^2-3+8 c_2\right ) \cos (x)+(-6 x+8 c_1) \sin (x)\right ) \\ \end{align*}