2.17 problem Problem 15.35

Internal problem ID [2529]

Book: Mathematical methods for physics and engineering, Riley, Hobson, Bence, second edition, 2002
Section: Chapter 15, Higher order ordinary differential equations. 15.4 Exercises, page 523
Problem number: Problem 15.35.
ODE order: 2.
ODE degree: 1.

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

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

Solution by Maple

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

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

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

Solution by Mathematica

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

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

\[ y(x)\to \frac {1}{32} e^{-x (x+2 i)} \left (-4 x-e^{4 i x} (4 x+i+8 i c_2)+i+32 c_1\right ) \]