2.28.9 Problem 19

2.28.9.1 Maple
2.28.9.2 Mathematica
2.28.9.3 Sympy

Internal problem ID [13680]
Book : Handbook of exact solutions for ordinary differential equations. By Polyanin and Zaitsev. Second edition
Section : Chapter 2, Second-Order Differential Equations. section 2.1.2-2
Problem number : 19
Date solved : Friday, December 19, 2025 at 10:29:21 AM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

\begin{align*} y^{\prime \prime }-2 y^{\prime } x +2 y n&=0 \\ \end{align*}
2.28.9.1 Maple. Time used: 0.017 (sec). Leaf size: 31
ode:=2*n*y(x)-2*x*diff(y(x),x)+diff(diff(y(x),x),x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = x \left (\operatorname {KummerU}\left (\frac {1}{2}-\frac {n}{2}, \frac {3}{2}, x^{2}\right ) c_2 +\operatorname {KummerM}\left (\frac {1}{2}-\frac {n}{2}, \frac {3}{2}, x^{2}\right ) c_1 \right ) \]

Maple trace

Methods for second order ODEs: 
--- Trying classification methods --- 
trying a quadrature 
checking if the LODE has constant coefficients 
checking if the LODE is of Euler type 
trying a symmetry of the form [xi=0, eta=F(x)] 
checking if the LODE is missing y 
-> Trying a Liouvillian solution using Kovacics algorithm 
<- No Liouvillian solutions exists 
-> Trying a solution in terms of special functions: 
   -> Bessel 
   -> elliptic 
   -> Legendre 
   -> Kummer 
      -> hyper3: Equivalence to 1F1 under a power @ Moebius 
      <- hyper3 successful: received ODE is equivalent to the 1F1 ODE 
   <- Kummer successful 
<- special function solution successful
 
2.28.9.2 Mathematica. Time used: 0.014 (sec). Leaf size: 27
ode=D[y[x],{x,2}]-2*x*D[y[x],x]+2*n*y[x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to c_1 \operatorname {HermiteH}(n,x)+c_2 \operatorname {Hypergeometric1F1}\left (-\frac {n}{2},\frac {1}{2},x^2\right ) \end{align*}
2.28.9.3 Sympy
from sympy import * 
x = symbols("x") 
n = symbols("n") 
y = Function("y") 
ode = Eq(2*n*y(x) - 2*x*Derivative(y(x), x) + Derivative(y(x), (x, 2)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
False
 
Python version: 3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0] 
Sympy version 1.14.0
 
classify_ode(ode,func=y(x)) 
 
('factorable', '2nd_power_series_ordinary')