3.11 problem Example 3.40

Internal problem ID [5114]

Book: THEORY OF DIFFERENTIAL EQUATIONS IN ENGINEERING AND MECHANICS. K.T. CHAU, CRC Press. Boca Raton, FL. 2018
Section: Chapter 3. Ordinary Differential Equations. Section 3.5 HIGHER ORDER ODE. Page 181
Problem number: Example 3.40.
ODE order: 2.
ODE degree: 1.

CAS Maple gives this as type [[_2nd_order, _with_linear_symmetries]]

Solve \begin {gather*} \boxed {u^{\prime \prime }-\left (1+2 x \right ) u^{\prime }+\left (x^{2}+x -1\right ) u=0} \end {gather*}

Solution by Maple

Time used: 0.003 (sec). Leaf size: 22

dsolve(diff(u(x),x$2)-(2*x+1)*diff(u(x),x)+(x^2+x-1)*u(x)=0,u(x), singsol=all)
 

\[ u \relax (x ) = {\mathrm e}^{\frac {x^{2}}{2}} c_{1}+c_{2} {\mathrm e}^{\frac {\left (x +2\right ) x}{2}} \]

Solution by Mathematica

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

DSolve[u''[x]-(2*x+1)*u'[x]+(x^2+x-1)*u[x]==0,u[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} u(x)\to e^{\frac {x^2}{2}} \left (c_2 e^x+c_1\right ) \\ \end{align*}