2.2.61 Problem 64

2.2.61.1 Solved using first_order_ode_riccati
2.2.61.2 Maple
2.2.61.3 Mathematica
2.2.61.4 Sympy

Internal problem ID [13267]
Book : Handbook of exact solutions for ordinary differential equations. By Polyanin and Zaitsev. Second edition
Section : Chapter 1, section 1.2. Riccati Equation. 1.2.2. Equations Containing Power Functions
Problem number : 64
Date solved : Tuesday, January 20, 2026 at 06:18:06 PM
CAS classification : [_rational, _Riccati]

2.2.61.1 Solved using first_order_ode_riccati

33.451 (sec)

Entering first order ode riccati solver

\begin{align*} \left (c_{2} x^{2}+b_{2} x +a_{2} \right ) \left (y^{\prime }+\lambda y^{2}\right )+\left (b_{1} x +a_{1} \right ) y+a_{0}&=0 \\ \end{align*}
In canonical form the ODE is
\begin{align*} y' &= F(x,y)\\ &= -\frac {y^{2} c_{2} \lambda \,x^{2}+y^{2} b_{2} \lambda x +y^{2} a_{2} \lambda +y b_{1} x +y a_{1} +a_{0}}{c_{2} x^{2}+b_{2} x +a_{2}} \end{align*}

This is a Riccati ODE. Comparing the ODE to solve

\[ y' = -\frac {y^{2} c_{2} \lambda \,x^{2}}{c_{2} x^{2}+b_{2} x +a_{2}}-\frac {y^{2} b_{2} \lambda x}{c_{2} x^{2}+b_{2} x +a_{2}}-\frac {y^{2} a_{2} \lambda }{c_{2} x^{2}+b_{2} x +a_{2}}-\frac {y b_{1} x}{c_{2} x^{2}+b_{2} x +a_{2}}-\frac {y a_{1}}{c_{2} x^{2}+b_{2} x +a_{2}}-\frac {a_{0}}{c_{2} x^{2}+b_{2} x +a_{2}} \]
With Riccati ODE standard form
\[ y' = f_0(x)+ f_1(x)y+f_2(x)y^{2} \]
Shows that \(f_0(x)=-\frac {a_{0}}{c_{2} x^{2}+b_{2} x +a_{2}}\), \(f_1(x)=-\frac {b_{1} x}{c_{2} x^{2}+b_{2} x +a_{2}}-\frac {a_{1}}{c_{2} x^{2}+b_{2} x +a_{2}}\) and \(f_2(x)=-\frac {c_{2} \lambda \,x^{2}}{c_{2} x^{2}+b_{2} x +a_{2}}-\frac {b_{2} \lambda x}{c_{2} x^{2}+b_{2} x +a_{2}}-\frac {a_{2} \lambda }{c_{2} x^{2}+b_{2} x +a_{2}}\). Let
\begin{align*} y &= \frac {-u'}{f_2 u} \\ &= \frac {-u'}{u \left (-\frac {c_{2} \lambda \,x^{2}}{c_{2} x^{2}+b_{2} x +a_{2}}-\frac {b_{2} \lambda x}{c_{2} x^{2}+b_{2} x +a_{2}}-\frac {a_{2} \lambda }{c_{2} x^{2}+b_{2} x +a_{2}}\right )} \tag {1} \end{align*}

Using the above substitution in the given ODE results (after some simplification) in a second order ODE to solve for \(u(x)\) which is

\begin{align*} f_2 u''(x) -\left ( f_2' + f_1 f_2 \right ) u'(x) + f_2^2 f_0 u(x) &= 0 \tag {2} \end{align*}

But

\begin{align*} f_2' &=\frac {c_{2} \lambda \,x^{2} \left (2 c_{2} x +b_{2} \right )}{\left (c_{2} x^{2}+b_{2} x +a_{2} \right )^{2}}-\frac {2 c_{2} \lambda x}{c_{2} x^{2}+b_{2} x +a_{2}}+\frac {b_{2} \lambda x \left (2 c_{2} x +b_{2} \right )}{\left (c_{2} x^{2}+b_{2} x +a_{2} \right )^{2}}-\frac {b_{2} \lambda }{c_{2} x^{2}+b_{2} x +a_{2}}+\frac {a_{2} \lambda \left (2 c_{2} x +b_{2} \right )}{\left (c_{2} x^{2}+b_{2} x +a_{2} \right )^{2}}\\ f_1 f_2 &=\left (-\frac {b_{1} x}{c_{2} x^{2}+b_{2} x +a_{2}}-\frac {a_{1}}{c_{2} x^{2}+b_{2} x +a_{2}}\right ) \left (-\frac {c_{2} \lambda \,x^{2}}{c_{2} x^{2}+b_{2} x +a_{2}}-\frac {b_{2} \lambda x}{c_{2} x^{2}+b_{2} x +a_{2}}-\frac {a_{2} \lambda }{c_{2} x^{2}+b_{2} x +a_{2}}\right )\\ f_2^2 f_0 &=-\frac {\left (-\frac {c_{2} \lambda \,x^{2}}{c_{2} x^{2}+b_{2} x +a_{2}}-\frac {b_{2} \lambda x}{c_{2} x^{2}+b_{2} x +a_{2}}-\frac {a_{2} \lambda }{c_{2} x^{2}+b_{2} x +a_{2}}\right )^{2} a_{0}}{c_{2} x^{2}+b_{2} x +a_{2}} \end{align*}

Substituting the above terms back in equation (2) gives

\[ \left (-\frac {c_{2} \lambda \,x^{2}}{c_{2} x^{2}+b_{2} x +a_{2}}-\frac {b_{2} \lambda x}{c_{2} x^{2}+b_{2} x +a_{2}}-\frac {a_{2} \lambda }{c_{2} x^{2}+b_{2} x +a_{2}}\right ) u^{\prime \prime }\left (x \right )-\left (\frac {c_{2} \lambda \,x^{2} \left (2 c_{2} x +b_{2} \right )}{\left (c_{2} x^{2}+b_{2} x +a_{2} \right )^{2}}-\frac {2 c_{2} \lambda x}{c_{2} x^{2}+b_{2} x +a_{2}}+\frac {b_{2} \lambda x \left (2 c_{2} x +b_{2} \right )}{\left (c_{2} x^{2}+b_{2} x +a_{2} \right )^{2}}-\frac {b_{2} \lambda }{c_{2} x^{2}+b_{2} x +a_{2}}+\frac {a_{2} \lambda \left (2 c_{2} x +b_{2} \right )}{\left (c_{2} x^{2}+b_{2} x +a_{2} \right )^{2}}+\left (-\frac {b_{1} x}{c_{2} x^{2}+b_{2} x +a_{2}}-\frac {a_{1}}{c_{2} x^{2}+b_{2} x +a_{2}}\right ) \left (-\frac {c_{2} \lambda \,x^{2}}{c_{2} x^{2}+b_{2} x +a_{2}}-\frac {b_{2} \lambda x}{c_{2} x^{2}+b_{2} x +a_{2}}-\frac {a_{2} \lambda }{c_{2} x^{2}+b_{2} x +a_{2}}\right )\right ) u^{\prime }\left (x \right )-\frac {\left (-\frac {c_{2} \lambda \,x^{2}}{c_{2} x^{2}+b_{2} x +a_{2}}-\frac {b_{2} \lambda x}{c_{2} x^{2}+b_{2} x +a_{2}}-\frac {a_{2} \lambda }{c_{2} x^{2}+b_{2} x +a_{2}}\right )^{2} a_{0} u \left (x \right )}{c_{2} x^{2}+b_{2} x +a_{2}} = 0 \]
Unable to solve. Will ask Maple to solve this ode now.

The solution for \(u \left (x \right )\) is

\begin{equation} \tag{3} u \left (x \right ) = c_3 \operatorname {hypergeom}\left (\left [\frac {-c_{2} +b_{1} +\sqrt {c_{2}^{2}+\left (-4 \lambda a_{0} -2 b_{1} \right ) c_{2} +b_{1}^{2}}}{2 c_{2}}, -\frac {c_{2} -b_{1} +\sqrt {c_{2}^{2}+\left (-4 \lambda a_{0} -2 b_{1} \right ) c_{2} +b_{1}^{2}}}{2 c_{2}}\right ], \left [\frac {b_{1} \sqrt {\frac {-4 c_{2} a_{2} +b_{2}^{2}}{c_{2}^{2}}}\, c_{2} -2 a_{1} c_{2} +b_{1} b_{2}}{2 c_{2}^{2} \sqrt {\frac {-4 c_{2} a_{2} +b_{2}^{2}}{c_{2}^{2}}}}\right ], \frac {-2 \sqrt {\frac {-4 c_{2} a_{2} +b_{2}^{2}}{c_{2}^{2}}}\, x \,c_{2}^{2}-\sqrt {\frac {-4 c_{2} a_{2} +b_{2}^{2}}{c_{2}^{2}}}\, b_{2} c_{2} +4 c_{2} a_{2} -b_{2}^{2}}{8 c_{2} a_{2} -2 b_{2}^{2}}\right )+c_4 {\left (2 \sqrt {\frac {-4 c_{2} a_{2} +b_{2}^{2}}{c_{2}^{2}}}\, x \,c_{2}^{2}+\sqrt {\frac {-4 c_{2} a_{2} +b_{2}^{2}}{c_{2}^{2}}}\, b_{2} c_{2} -4 c_{2} a_{2} +b_{2}^{2}\right )}^{\frac {-\frac {c_{2} \left (b_{1} -2 c_{2} \right ) \sqrt {\frac {-4 c_{2} a_{2} +b_{2}^{2}}{c_{2}^{2}}}}{2}+a_{1} c_{2} -\frac {b_{1} b_{2}}{2}}{\sqrt {\frac {-4 c_{2} a_{2} +b_{2}^{2}}{c_{2}^{2}}}\, c_{2}^{2}}} \operatorname {hypergeom}\left (\left [-\frac {c_{2} \left (\sqrt {c_{2}^{2}+\left (-4 \lambda a_{0} -2 b_{1} \right ) c_{2} +b_{1}^{2}}-c_{2} \right ) \sqrt {\frac {-4 c_{2} a_{2} +b_{2}^{2}}{c_{2}^{2}}}-2 a_{1} c_{2} +b_{1} b_{2}}{2 \sqrt {\frac {-4 c_{2} a_{2} +b_{2}^{2}}{c_{2}^{2}}}\, c_{2}^{2}}, \frac {c_{2} \left (\sqrt {c_{2}^{2}+\left (-4 \lambda a_{0} -2 b_{1} \right ) c_{2} +b_{1}^{2}}+c_{2} \right ) \sqrt {\frac {-4 c_{2} a_{2} +b_{2}^{2}}{c_{2}^{2}}}+2 a_{1} c_{2} -b_{1} b_{2}}{2 \sqrt {\frac {-4 c_{2} a_{2} +b_{2}^{2}}{c_{2}^{2}}}\, c_{2}^{2}}\right ], \left [\frac {-\frac {c_{2} \left (b_{1} -4 c_{2} \right ) \sqrt {\frac {-4 c_{2} a_{2} +b_{2}^{2}}{c_{2}^{2}}}}{2}+a_{1} c_{2} -\frac {b_{1} b_{2}}{2}}{\sqrt {\frac {-4 c_{2} a_{2} +b_{2}^{2}}{c_{2}^{2}}}\, c_{2}^{2}}\right ], \frac {-2 \sqrt {\frac {-4 c_{2} a_{2} +b_{2}^{2}}{c_{2}^{2}}}\, x \,c_{2}^{2}-\sqrt {\frac {-4 c_{2} a_{2} +b_{2}^{2}}{c_{2}^{2}}}\, b_{2} c_{2} +4 c_{2} a_{2} -b_{2}^{2}}{8 c_{2} a_{2} -2 b_{2}^{2}}\right ) \end{equation}
Taking derivative gives
\begin{equation} \tag{4} \text {Expression too large to display} \end{equation}
Substituting equations (3,4) into (1) results in
\begin{align*} y &= \frac {-u'}{f_2 u} \\ y &= \frac {-u'}{u \left (-\frac {c_{2} \lambda \,x^{2}}{c_{2} x^{2}+b_{2} x +a_{2}}-\frac {b_{2} \lambda x}{c_{2} x^{2}+b_{2} x +a_{2}}-\frac {a_{2} \lambda }{c_{2} x^{2}+b_{2} x +a_{2}}\right )} \\ y &= \text {Expression too large to display} \\ \end{align*}
Doing change of constants, the above solution becomes
\[ \text {Expression too large to display} \]
Simplifying the above gives
\begin{align*} \text {Expression too large to display} \\ \end{align*}

Summary of solutions found

\begin{align*} \text {Expression too large to display} \\ \end{align*}
2.2.61.2 Maple. Time used: 0.004 (sec). Leaf size: 2072
ode:=(c__2*x^2+b__2*x+a__2)*(diff(y(x),x)+lambda*y(x)^2)+(b__1*x+a__1)*y(x)+a__0 = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ \text {Expression too large to display} \]

Maple trace

Methods for first order ODEs: 
--- Trying classification methods --- 
trying a quadrature 
trying 1st order linear 
trying Bernoulli 
trying separable 
trying inverse linear 
trying homogeneous types: 
trying Chini 
differential order: 1; looking for linear symmetries 
trying exact 
Looking for potential symmetries 
trying Riccati 
trying Riccati sub-methods: 
   trying Riccati to 2nd Order 
   -> Calling odsolve with the ODE, diff(diff(y(x),x),x) = -(b__1*x+a__1)/(c__2 
*x^2+b__2*x+a__2)*diff(y(x),x)-lambda*a__0/(c__2*x^2+b__2*x+a__2)*y(x), y(x) 
      *** Sublevel 2 *** 
      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 
         -> hypergeometric 
            -> heuristic approach 
            <- heuristic approach successful 
         <- hypergeometric successful 
      <- special function solution successful 
   <- Riccati to 2nd Order successful
 

Maple step by step

\[ \begin {array}{lll} & {} & \textrm {Let's solve}\hspace {3pt} \\ {} & {} & \left (c_{2} x^{2}+b_{2} x +a_{2} \right ) \left (\frac {d}{d x}y \left (x \right )+\lambda y \left (x \right )^{2}\right )+\left (b_{1} x +a_{1} \right ) y \left (x \right )+a_{0} =0 \\ \bullet & {} & \textrm {Highest derivative means the order of the ODE is}\hspace {3pt} 1 \\ {} & {} & \frac {d}{d x}y \left (x \right ) \\ \bullet & {} & \textrm {Solve for the highest derivative}\hspace {3pt} \\ {} & {} & \frac {d}{d x}y \left (x \right )=-\frac {y \left (x \right )^{2} c_{2} \lambda \,x^{2}+y \left (x \right )^{2} b_{2} \lambda x +y \left (x \right )^{2} a_{2} \lambda +y \left (x \right ) b_{1} x +y \left (x \right ) a_{1} +a_{0}}{c_{2} x^{2}+b_{2} x +a_{2}} \end {array} \]
2.2.61.3 Mathematica. Time used: 6.917 (sec). Leaf size: 1986
ode=(c2*x^2+b2*x+a2)*(D[y[x],x]+\[Lambda]*y[x]^2)+(b1*x+a1)*y[x]+a0==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 

Too large to display

2.2.61.4 Sympy
from sympy import * 
x = symbols("x") 
a__0 = symbols("a__0") 
a__1 = symbols("a__1") 
a__2 = symbols("a__2") 
b__1 = symbols("b__1") 
b__2 = symbols("b__2") 
c__2 = symbols("c__2") 
lambda_ = symbols("lambda_") 
y = Function("y") 
ode = Eq(a__0 + (a__1 + b__1*x)*y(x) + (lambda_*y(x)**2 + Derivative(y(x), x))*(a__2 + b__2*x + c__2*x**2),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
Timed Out
 
Python version: 3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0] 
Sympy version 1.14.0