3.96 problem 1100

Internal problem ID [9430]

Book: Differential Gleichungen, E. Kamke, 3rd ed. Chelsea Pub. NY, 1948
Section: Chapter 2, linear second order
Problem number: 1100.
ODE order: 2.
ODE degree: 1.

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

\[ \boxed {y^{\prime \prime } x +2 y^{\prime }-x y={\mathrm e}^{x}} \]

Solution by Maple

Time used: 0.015 (sec). Leaf size: 24

dsolve(x*diff(diff(y(x),x),x)+2*diff(y(x),x)-x*y(x)-exp(x)=0,y(x), singsol=all)
 

\[ y \left (x \right ) = \frac {2 \sinh \left (x \right ) c_{2} +2 \cosh \left (x \right ) c_{1} +x \,{\mathrm e}^{x}}{2 x} \]

Solution by Mathematica

Time used: 0.035 (sec). Leaf size: 37

DSolve[-E^x - x*y[x] + 2*y'[x] + x*y''[x] == 0,y[x],x,IncludeSingularSolutions -> True]
                                                                                    
                                                                                    
 

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