8.8 problem Problem 8

Internal problem ID [2770]

Book: Differential equations and linear algebra, Stephen W. Goode and Scott A Annin. Fourth edition, 2015
Section: Chapter 8, Linear differential equations of order n. Section 8.4, Complex-Valued Trial Solutions. page 529
Problem number: Problem 8.
ODE order: 2.
ODE degree: 1.

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

\[ \boxed {y^{\prime \prime }-4 y=100 \sin \left (x \right ) x \,{\mathrm e}^{x}} \]

Solution by Maple

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

dsolve(diff(y(x),x$2)-4*y(x)=100*x*exp(x)*sin(x),y(x), singsol=all)
 

\[ y \left (x \right ) = c_{2} {\mathrm e}^{2 x}+{\mathrm e}^{-2 x} c_{1} -2 \,{\mathrm e}^{x} \left (5 \cos \left (x \right ) x +10 \sin \left (x \right ) x +7 \cos \left (x \right )-\sin \left (x \right )\right ) \]

Solution by Mathematica

Time used: 0.029 (sec). Leaf size: 44

DSolve[y''[x]-4*y[x]==100*x*Exp[x]*Sin[x],y[x],x,IncludeSingularSolutions -> True]
 

\[ y(x)\to c_1 e^{2 x}+c_2 e^{-2 x}-2 e^x ((10 x-1) \sin (x)+(5 x+7) \cos (x)) \]