2.12 problem 12

Internal problem ID [7148]

Book: Own collection of miscellaneous problems
Section: section 2.0
Problem number: 12.
ODE order: 2.
ODE degree: 1.

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

\[ \boxed {y^{\prime \prime }-a x y^{\prime }-b x y=c \,x^{2}} \]

Solution by Maple

Time used: 0.031 (sec). Leaf size: 95

dsolve(diff(y(x),x$2)-a*x*diff(y(x),x)-b*x*y(x)-c*x^2=0,y(x), singsol=all)
 

\[ y \left (x \right ) = \frac {{\mathrm e}^{-\frac {b x}{a}} \operatorname {KummerM}\left (-\frac {b^{2}}{2 a^{3}}, \frac {1}{2}, \frac {\left (a^{2} x +2 b \right )^{2}}{2 a^{3}}\right ) c_{2} b^{2}+{\mathrm e}^{-\frac {b x}{a}} \operatorname {KummerU}\left (-\frac {b^{2}}{2 a^{3}}, \frac {1}{2}, \frac {\left (a^{2} x +2 b \right )^{2}}{2 a^{3}}\right ) c_{1} b^{2}+c \left (-b x +a \right )}{b^{2}} \]

Solution by Mathematica

Time used: 2.978 (sec). Leaf size: 569

DSolve[y''[x]-a*x*y'[x]-b*x*y[x]-c*x^2==0,y[x],x,IncludeSingularSolutions -> True]
                                                                                    
                                                                                    
 

\[ y(x)\to e^{-\frac {b x}{a}} \left (\operatorname {HermiteH}\left (\frac {b^2}{a^3},\frac {x a^2+2 b}{\sqrt {2} a^{3/2}}\right ) \int _1^x\frac {a^4 c e^{\frac {b K[1]}{a}} \operatorname {Hypergeometric1F1}\left (-\frac {b^2}{2 a^3},\frac {1}{2},\frac {\left (K[1] a^2+2 b\right )^2}{2 a^3}\right ) K[1]^2}{b^2 \left (\sqrt {2} \operatorname {HermiteH}\left (\frac {b^2}{a^3}-1,\frac {K[1] a^2+2 b}{\sqrt {2} a^{3/2}}\right ) \operatorname {Hypergeometric1F1}\left (-\frac {b^2}{2 a^3},\frac {1}{2},\frac {\left (K[1] a^2+2 b\right )^2}{2 a^3}\right ) a^{3/2}+\operatorname {HermiteH}\left (\frac {b^2}{a^3},\frac {K[1] a^2+2 b}{\sqrt {2} a^{3/2}}\right ) \operatorname {Hypergeometric1F1}\left (1-\frac {b^2}{2 a^3},\frac {3}{2},\frac {\left (K[1] a^2+2 b\right )^2}{2 a^3}\right ) \left (K[1] a^2+2 b\right )\right )}dK[1]+\operatorname {Hypergeometric1F1}\left (-\frac {b^2}{2 a^3},\frac {1}{2},\frac {\left (x a^2+2 b\right )^2}{2 a^3}\right ) \int _1^x-\frac {a^4 c e^{\frac {b K[2]}{a}} \operatorname {HermiteH}\left (\frac {b^2}{a^3},\frac {K[2] a^2+2 b}{\sqrt {2} a^{3/2}}\right ) K[2]^2}{b^2 \left (\sqrt {2} \operatorname {HermiteH}\left (\frac {b^2}{a^3}-1,\frac {K[2] a^2+2 b}{\sqrt {2} a^{3/2}}\right ) \operatorname {Hypergeometric1F1}\left (-\frac {b^2}{2 a^3},\frac {1}{2},\frac {\left (K[2] a^2+2 b\right )^2}{2 a^3}\right ) a^{3/2}+\operatorname {HermiteH}\left (\frac {b^2}{a^3},\frac {K[2] a^2+2 b}{\sqrt {2} a^{3/2}}\right ) \operatorname {Hypergeometric1F1}\left (1-\frac {b^2}{2 a^3},\frac {3}{2},\frac {\left (K[2] a^2+2 b\right )^2}{2 a^3}\right ) \left (K[2] a^2+2 b\right )\right )}dK[2]+c_2 \operatorname {Hypergeometric1F1}\left (-\frac {b^2}{2 a^3},\frac {1}{2},\frac {\left (x a^2+2 b\right )^2}{2 a^3}\right )+c_1 \operatorname {HermiteH}\left (\frac {b^2}{a^3},\frac {x a^2+2 b}{\sqrt {2} a^{3/2}}\right )\right ) \]