2.2.8 Problem 8
Internal
problem
ID
[13214]
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
:
8
Date
solved
:
Sunday, January 18, 2026 at 06:43:24 PM
CAS
classification
:
[_Riccati]
2.2.8.1 Solved using first_order_ode_riccati
0.371 (sec)
Entering first order ode riccati solver
\begin{align*}
y^{\prime }&=a \,x^{n} y^{2}+b \,x^{m} \\
\end{align*}
In canonical form the ODE is \begin{align*} y' &= F(x,y)\\ &= a \,x^{n} y^{2}+b \,x^{m} \end{align*}
This is a Riccati ODE. Comparing the ODE to solve
\[
y' = a \,x^{n} y^{2}+b \,x^{m}
\]
With Riccati ODE standard form \[ y' = f_0(x)+ f_1(x)y+f_2(x)y^{2} \]
Shows
that \(f_0(x)=b \,x^{m}\), \(f_1(x)=0\) and \(f_2(x)=x^{n} a\). Let \begin{align*} y &= \frac {-u'}{f_2 u} \\ &= \frac {-u'}{u \,x^{n} a} \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 {a n \,x^{n}}{x}\\ f_1 f_2 &=0\\ f_2^2 f_0 &=x^{2 n} a^{2} b \,x^{m} \end{align*}
Substituting the above terms back in equation (2) gives
\[
x^{n} a u^{\prime \prime }\left (x \right )-\frac {a n \,x^{n} u^{\prime }\left (x \right )}{x}+x^{2 n} a^{2} b \,x^{m} u \left (x \right ) = 0
\]
Entering second order bessel ode
solverWriting the ode as \begin{align*} x^{2} \left (\frac {d^{2}u}{d x^{2}}\right )-n x \left (\frac {d u}{d x}\right )+x^{n} x^{m} a b \,x^{2} u = 0\tag {1} \end{align*}
Bessel ode has the form
\begin{align*} x^{2} \left (\frac {d^{2}u}{d x^{2}}\right )+\left (\frac {d u}{d x}\right ) x +\left (-n^{2}+x^{2}\right ) u = 0\tag {2} \end{align*}
The generalized form of Bessel ode is given by Bowman (1958) as the following
\begin{align*} x^{2} \left (\frac {d^{2}u}{d x^{2}}\right )+\left (1-2 \alpha \right ) x \left (\frac {d u}{d x}\right )+\left (\beta ^{2} \gamma ^{2} x^{2 \gamma }-n^{2} \gamma ^{2}+\alpha ^{2}\right ) u = 0\tag {3} \end{align*}
With the standard solution
\begin{align*} u&=x^{\alpha } \left (c_1 \operatorname {BesselJ}\left (n , \beta \,x^{\gamma }\right )+c_2 \operatorname {BesselY}\left (n , \beta \,x^{\gamma }\right )\right )\tag {4} \end{align*}
Comparing (3) to (1) and solving for \(\alpha ,\beta ,n,\gamma \) gives
\begin{align*} \alpha &= \frac {1}{2}+\frac {n}{2}\\ \beta &= \frac {2 \sqrt {a b}}{m +n +2}\\ n &= -\frac {n +1}{m +n +2}\\ \gamma &= \frac {m}{2}+\frac {n}{2}+1 \end{align*}
Substituting all the above into (4) gives the solution as
\begin{align*} u = c_1 \,x^{\frac {1}{2}+\frac {n}{2}} \operatorname {BesselJ}\left (-\frac {n +1}{m +n +2}, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right )+c_2 \,x^{\frac {1}{2}+\frac {n}{2}} \operatorname {BesselY}\left (-\frac {n +1}{m +n +2}, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right ) \end{align*}
Taking derivative gives
\begin{equation}
\tag{4} u^{\prime }\left (x \right ) = \frac {c_1 \,x^{\frac {1}{2}+\frac {n}{2}} \left (\frac {1}{2}+\frac {n}{2}\right ) \operatorname {BesselJ}\left (-\frac {n +1}{m +n +2}, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right )}{x}+\frac {2 c_1 \,x^{\frac {1}{2}+\frac {n}{2}} \left (-\operatorname {BesselJ}\left (-\frac {n +1}{m +n +2}+1, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right )-\frac {\left (n +1\right ) x^{-\frac {m}{2}-\frac {n}{2}-1} \operatorname {BesselJ}\left (-\frac {n +1}{m +n +2}, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right )}{2 \sqrt {a b}}\right ) \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1} \left (\frac {m}{2}+\frac {n}{2}+1\right )}{x \left (m +n +2\right )}+\frac {c_2 \,x^{\frac {1}{2}+\frac {n}{2}} \left (\frac {1}{2}+\frac {n}{2}\right ) \operatorname {BesselY}\left (-\frac {n +1}{m +n +2}, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right )}{x}+\frac {2 c_2 \,x^{\frac {1}{2}+\frac {n}{2}} \left (-\operatorname {BesselY}\left (-\frac {n +1}{m +n +2}+1, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right )-\frac {\left (n +1\right ) x^{-\frac {m}{2}-\frac {n}{2}-1} \operatorname {BesselY}\left (-\frac {n +1}{m +n +2}, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right )}{2 \sqrt {a b}}\right ) \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1} \left (\frac {m}{2}+\frac {n}{2}+1\right )}{x \left (m +n +2\right )}
\end{equation}
Substituting equations (3,4) into (1) results in \begin{align*}
y &= \frac {-u'}{f_2 u} \\
y &= \frac {-u'}{u \,x^{n} a} \\
y &= -\frac {\left (\frac {c_1 \,x^{\frac {1}{2}+\frac {n}{2}} \left (\frac {1}{2}+\frac {n}{2}\right ) \operatorname {BesselJ}\left (-\frac {n +1}{m +n +2}, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right )}{x}+\frac {2 c_1 \,x^{\frac {1}{2}+\frac {n}{2}} \left (-\operatorname {BesselJ}\left (-\frac {n +1}{m +n +2}+1, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right )-\frac {\left (n +1\right ) x^{-\frac {m}{2}-\frac {n}{2}-1} \operatorname {BesselJ}\left (-\frac {n +1}{m +n +2}, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right )}{2 \sqrt {a b}}\right ) \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1} \left (\frac {m}{2}+\frac {n}{2}+1\right )}{x \left (m +n +2\right )}+\frac {c_2 \,x^{\frac {1}{2}+\frac {n}{2}} \left (\frac {1}{2}+\frac {n}{2}\right ) \operatorname {BesselY}\left (-\frac {n +1}{m +n +2}, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right )}{x}+\frac {2 c_2 \,x^{\frac {1}{2}+\frac {n}{2}} \left (-\operatorname {BesselY}\left (-\frac {n +1}{m +n +2}+1, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right )-\frac {\left (n +1\right ) x^{-\frac {m}{2}-\frac {n}{2}-1} \operatorname {BesselY}\left (-\frac {n +1}{m +n +2}, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right )}{2 \sqrt {a b}}\right ) \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1} \left (\frac {m}{2}+\frac {n}{2}+1\right )}{x \left (m +n +2\right )}\right ) x^{-n}}{a \left (c_1 \,x^{\frac {1}{2}+\frac {n}{2}} \operatorname {BesselJ}\left (-\frac {n +1}{m +n +2}, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right )+c_2 \,x^{\frac {1}{2}+\frac {n}{2}} \operatorname {BesselY}\left (-\frac {n +1}{m +n +2}, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right )\right )} \\
\end{align*}
Doing change of
constants, the above solution becomes \[
y = -\frac {\left (\frac {x^{\frac {1}{2}+\frac {n}{2}} \left (\frac {1}{2}+\frac {n}{2}\right ) \operatorname {BesselJ}\left (-\frac {n +1}{m +n +2}, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right )}{x}+\frac {2 x^{\frac {1}{2}+\frac {n}{2}} \left (-\operatorname {BesselJ}\left (-\frac {n +1}{m +n +2}+1, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right )-\frac {\left (n +1\right ) x^{-\frac {m}{2}-\frac {n}{2}-1} \operatorname {BesselJ}\left (-\frac {n +1}{m +n +2}, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right )}{2 \sqrt {a b}}\right ) \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1} \left (\frac {m}{2}+\frac {n}{2}+1\right )}{x \left (m +n +2\right )}+\frac {c_3 \,x^{\frac {1}{2}+\frac {n}{2}} \left (\frac {1}{2}+\frac {n}{2}\right ) \operatorname {BesselY}\left (-\frac {n +1}{m +n +2}, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right )}{x}+\frac {2 c_3 \,x^{\frac {1}{2}+\frac {n}{2}} \left (-\operatorname {BesselY}\left (-\frac {n +1}{m +n +2}+1, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right )-\frac {\left (n +1\right ) x^{-\frac {m}{2}-\frac {n}{2}-1} \operatorname {BesselY}\left (-\frac {n +1}{m +n +2}, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right )}{2 \sqrt {a b}}\right ) \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1} \left (\frac {m}{2}+\frac {n}{2}+1\right )}{x \left (m +n +2\right )}\right ) x^{-n}}{a \left (x^{\frac {1}{2}+\frac {n}{2}} \operatorname {BesselJ}\left (-\frac {n +1}{m +n +2}, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right )+c_3 \,x^{\frac {1}{2}+\frac {n}{2}} \operatorname {BesselY}\left (-\frac {n +1}{m +n +2}, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right )\right )}
\]
Simplifying the above gives \begin{align*}
y &= \frac {x^{-\frac {n}{2}+\frac {m}{2}} \sqrt {a b}\, \left (\operatorname {BesselY}\left (\frac {1+m}{m +n +2}, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right ) c_3 +\operatorname {BesselJ}\left (\frac {1+m}{m +n +2}, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right )\right )}{a \left (c_3 \operatorname {BesselY}\left (\frac {-1-n}{m +n +2}, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right )+\operatorname {BesselJ}\left (\frac {-1-n}{m +n +2}, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right )\right )} \\
\end{align*}
Summary of solutions found
\begin{align*}
y &= \frac {x^{-\frac {n}{2}+\frac {m}{2}} \sqrt {a b}\, \left (\operatorname {BesselY}\left (\frac {1+m}{m +n +2}, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right ) c_3 +\operatorname {BesselJ}\left (\frac {1+m}{m +n +2}, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right )\right )}{a \left (c_3 \operatorname {BesselY}\left (\frac {-1-n}{m +n +2}, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right )+\operatorname {BesselJ}\left (\frac {-1-n}{m +n +2}, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right )\right )} \\
\end{align*}
2.2.8.2 ✓ Maple. Time used: 0.001 (sec). Leaf size: 170
ode:=diff(y(x),x) = a*x^n*y(x)^2+b*x^m;
dsolve(ode,y(x), singsol=all);
\[
y = \frac {x^{-\frac {n}{2}+\frac {m}{2}} \sqrt {a b}\, \left (\operatorname {BesselY}\left (\frac {1+m}{m +n +2}, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right ) c_1 +\operatorname {BesselJ}\left (\frac {1+m}{m +n +2}, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right )\right )}{a \left (\operatorname {BesselY}\left (\frac {-n -1}{m +n +2}, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right ) c_1 +\operatorname {BesselJ}\left (\frac {-n -1}{m +n +2}, \frac {2 \sqrt {a b}\, x^{\frac {m}{2}+\frac {n}{2}+1}}{m +n +2}\right )\right )}
\]
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_symmetries
trying Riccati to 2nd Order
-> Calling odsolve with the ODE, diff(diff(y(x),x),x) = n/x*diff(y(x),x)-a*x
^n*b*x^m*y(x), y(x)
*** Sublevel 2 ***
Methods for second order ODEs:
--- Trying classification methods ---
trying a symmetry of the form [xi=0, eta=F(x)]
checking if the LODE is missing y
-> Trying an equivalence, under non-integer power transformations,
to LODEs admitting Liouvillian solutions.
-> Trying a Liouvillian solution using Kovacics algorithm
<- No Liouvillian solutions exists
-> Trying a solution in terms of special functions:
-> Bessel
<- Bessel successful
<- special function solution successful
<- Riccati to 2nd Order successful
Maple step by step
\[ \begin {array}{lll} & {} & \textrm {Let's solve}\hspace {3pt} \\ {} & {} & \frac {d}{d x}y \left (x \right )=a \,x^{13214} y \left (x \right )^{2}+b \,x^{m} \\ \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 )=a \,x^{13214} y \left (x \right )^{2}+b \,x^{m} \end {array} \]
2.2.8.3 ✓ Mathematica. Time used: 0.951 (sec). Leaf size: 1436
ode=D[y[x],x]==a*x^n*y[x]^2+b*x^m;
ic={};
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
\begin{align*} \text {Solution too large to show}\end{align*}
2.2.8.4 ✗ Sympy
from sympy import *
x = symbols("x")
a = symbols("a")
b = symbols("b")
m = symbols("m")
n = symbols("n")
y = Function("y")
ode = Eq(-a*x**n*y(x)**2 - b*x**m + Derivative(y(x), x),0)
ics = {}
dsolve(ode,func=y(x),ics=ics)
NotImplementedError : The given ODE -a*x**n*y(x)**2 - b*x**m + Derivative(y(x), x) cannot be solved
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))
('1st_power_series', 'lie_group')