2.26.9 Problem 9
Internal
problem
ID
[13645]
Book
:
Handbook
of
exact
solutions
for
ordinary
differential
equations.
By
Polyanin
and
Zaitsev.
Second
edition
Section
:
Chapter
1,
section
1.4.
Equations
Containing
Polynomial
Functions
of
y.
subsection
1.4.1-2
Abel
equations
of
the
first
kind.
Problem
number
:
9
Date
solved
:
Sunday, January 18, 2026 at 09:00:21 PM
CAS
classification
:
[[_homogeneous, `class G`], _Abel]
2.26.9.1 Solved using first_order_ode_homog_type_G
5.014 (sec)
Entering first order ode homog type G solver
\begin{align*}
y^{\prime }&=a \,x^{1+2 n} y^{3}+b \,x^{-n -2} \\
\end{align*}
Multiplying the right side of the ode, which is \(a \,x^{1+2 n} y^{3}+b \,x^{-n -2}\) by \(\frac {x}{y}\)
gives \begin{align*} y^{\prime } &= \left (\frac {x}{y}\right ) a \,x^{1+2 n} y^{3}+b \,x^{-n -2}\\ &= \frac {x \left (a \,x^{1+2 n} y^{3}+b \,x^{-n -2}\right )}{y}\\ &= F(x,y) \end{align*}
Since \(F \left (x , y\right )\) has \(y\), then let
\begin{align*} f_x&= x \left (\frac {\partial }{\partial x}F \left (x , y\right )\right )\\ &= \frac {x \left (2 a \,x^{1+2 n} y^{3} n +2 a \,x^{1+2 n} y^{3}-b \,x^{-n -2} n -b \,x^{-n -2}\right )}{y}\\ f_y&= y \left (\frac {\partial }{\partial y}F \left (x , y\right )\right )\\ &= \frac {x \left (2 a \,x^{1+2 n} y^{3}-b \,x^{-n -2}\right )}{y}\\ \alpha &= \frac {f_x}{f_y} \\ &=n +1 \end{align*}
Since \(\alpha \) is independent of \(x,y\) then this is Homogeneous type G.
Let
\begin{align*} y&=\frac {z}{x^ \alpha }\\ &=\frac {z}{x^{n +1}} \end{align*}
Substituting the above back into \(F(x,y)\) gives
\begin{align*} F \left (z \right ) &=\frac {a \,z^{3}+b}{z} \end{align*}
We see that \(F \left (z \right )\) does not depend on \(x\) nor on \(y\). If this was not the case, then this method will not
work.
Therefore, the implicit solution is given by
\begin{align*} \ln \left (x \right )- c_1 - \int ^{y x^\alpha } \frac {1}{z \left (\alpha + F(z)\right ) } \,dz & = 0 \end{align*}
Which gives
\[
\ln \left (x \right )-c_1 +\int _{}^{y x^{n +1}}\frac {1}{z \left (-n -1-\frac {a \,z^{3}+b}{z}\right )}d z = 0
\]
The value of the above is \[
\ln \left (x \right )-c_1 -\left (\munderset {\textit {\_R} =\operatorname {RootOf}\left (a \,\textit {\_Z}^{3}+\left (n +1\right ) \textit {\_Z} +b \right )}{\sum }\frac {\ln \left (y x^{n +1}-\textit {\_R} \right )}{3 \textit {\_R}^{2} a +n +1}\right ) = 0
\]
The solution \(\ln \left (x \right )-c_1 -\left (\munderset {\textit {\_R} =\operatorname {RootOf}\left (a \,\textit {\_Z}^{3}+\left (n +1\right ) \textit {\_Z} +b \right )}{\sum }\frac {\ln \left (y x^{n +1}-\textit {\_R} \right )}{3 \textit {\_R}^{2} a +n +1}\right ) = 0\) simplifies to \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.26.9.2 Solved using first_order_ode_chini
0.214 (sec)
Entering first order ode chini solver
\begin{align*}
y^{\prime }&=a \,x^{1+2 n} y^{3}+b \,x^{-n -2} \\
\end{align*}
The solution to this Chini ode is (more steps will be added
showing how soon). \[
\int _{}^{-\frac {\left (n +1\right ) x \,x^{n} y}{b}}\frac {1}{-\frac {u^{3} a \,b^{2}}{\left (n +1\right )^{3}}-u +1}d u +\frac {x^{-3-3 n} \left (n +1\right ) \ln \left (x \right ) b}{\left (\frac {b \,x^{-3-3 n}}{a}\right )^{{2}/{3}} a \left (\frac {b \,x^{-3 n}}{x^{3} a}\right )^{{1}/{3}}}+c_1 = 0
\]
Summary of solutions found
\begin{align*}
\int _{}^{-\frac {\left (n +1\right ) x \,x^{n} y}{b}}\frac {1}{-\frac {u^{3} a \,b^{2}}{\left (n +1\right )^{3}}-u +1}d u +\frac {x^{-3-3 n} \left (n +1\right ) \ln \left (x \right ) b}{\left (\frac {b \,x^{-3-3 n}}{a}\right )^{{2}/{3}} a \left (\frac {b \,x^{-3 n}}{x^{3} a}\right )^{{1}/{3}}}+c_1 &= 0 \\
\end{align*}
2.26.9.3 Solved using first_order_ode_LIE
1.888 (sec)
Entering first order ode LIE solver
\begin{align*}
y^{\prime }&=a \,x^{1+2 n} y^{3}+b \,x^{-n -2} \\
\end{align*}
Writing the ode as \begin{align*} y^{\prime }&=a \,x^{1+2 n} y^{3}+b \,x^{-n -2}\\ y^{\prime }&= \omega \left ( x,y\right ) \end{align*}
The condition of Lie symmetry is the linearized PDE given by
\begin{align*} \eta _{x}+\omega \left ( \eta _{y}-\xi _{x}\right ) -\omega ^{2}\xi _{y}-\omega _{x}\xi -\omega _{y}\eta =0\tag {A} \end{align*}
To determine \(\xi ,\eta \) then (A) is solved using ansatz. Making bivariate polynomials of degree 1 to use as
anstaz gives
\begin{align*}
\tag{1E} \xi &= x a_{2}+y a_{3}+a_{1} \\
\tag{2E} \eta &= x b_{2}+y b_{3}+b_{1} \\
\end{align*}
Where the unknown coefficients are \[
\{a_{1}, a_{2}, a_{3}, b_{1}, b_{2}, b_{3}\}
\]
Substituting equations (1E,2E) and \(\omega \) into (A)
gives \begin{equation}
\tag{5E} b_{2}+\left (a \,x^{1+2 n} y^{3}+b \,x^{-n -2}\right ) \left (b_{3}-a_{2}\right )-\left (a \,x^{1+2 n} y^{3}+b \,x^{-n -2}\right )^{2} a_{3}-\left (\frac {a \,x^{1+2 n} \left (1+2 n \right ) y^{3}}{x}+\frac {b \,x^{-n -2} \left (-n -2\right )}{x}\right ) \left (x a_{2}+y a_{3}+a_{1}\right )-3 a \,x^{1+2 n} y^{2} \left (x b_{2}+y b_{3}+b_{1}\right ) = 0
\end{equation}
Putting the above in normal form gives \[
-\frac {x^{2+4 n} a^{2} x \,y^{6} a_{3}+2 x^{1+2 n} x^{-n -2} a b x \,y^{3} a_{3}+2 x^{1+2 n} a n x \,y^{3} a_{2}+2 x^{1+2 n} a n \,y^{4} a_{3}+2 x^{1+2 n} a n \,y^{3} a_{1}+3 x^{1+2 n} a \,x^{2} y^{2} b_{2}+2 x^{1+2 n} a x \,y^{3} a_{2}+2 x^{1+2 n} a x \,y^{3} b_{3}+x^{1+2 n} a \,y^{4} a_{3}+3 x^{1+2 n} a x \,y^{2} b_{1}+x^{1+2 n} a \,y^{3} a_{1}+x^{-4-2 n} b^{2} x a_{3}-x^{-n -2} b n x a_{2}-x^{-n -2} b n y a_{3}-x^{-n -2} b n a_{1}-x^{-n -2} b x a_{2}-x^{-n -2} b x b_{3}-2 x^{-n -2} b y a_{3}-2 x^{-n -2} b a_{1}-x b_{2}}{x} = 0
\]
Setting the numerator to zero gives \begin{equation}
\tag{6E} -x^{2+4 n} a^{2} x \,y^{6} a_{3}-2 x^{1+2 n} x^{-n -2} a b x \,y^{3} a_{3}-2 x^{1+2 n} a n x \,y^{3} a_{2}-2 x^{1+2 n} a n \,y^{4} a_{3}-2 x^{1+2 n} a n \,y^{3} a_{1}-3 x^{1+2 n} a \,x^{2} y^{2} b_{2}-2 x^{1+2 n} a x \,y^{3} a_{2}-2 x^{1+2 n} a x \,y^{3} b_{3}-x^{1+2 n} a \,y^{4} a_{3}-3 x^{1+2 n} a x \,y^{2} b_{1}-x^{1+2 n} a \,y^{3} a_{1}-x^{-4-2 n} b^{2} x a_{3}+x^{-n -2} b n x a_{2}+x^{-n -2} b n y a_{3}+x^{-n -2} b n a_{1}+x^{-n -2} b x a_{2}+x^{-n -2} b x b_{3}+2 x^{-n -2} b y a_{3}+2 x^{-n -2} b a_{1}+x b_{2} = 0
\end{equation}
Simplifying
the above gives \begin{equation}
\tag{6E} -\frac {\left (x^{6} x^{6 n} a^{2} y^{6} a_{3}+2 x^{5} x^{4 n} a n \,y^{3} a_{2}+2 x^{4} x^{4 n} a n \,y^{4} a_{3}+2 x^{4} x^{4 n} a n \,y^{3} a_{1}+3 x^{6} x^{4 n} a \,y^{2} b_{2}+2 x^{5} x^{4 n} a \,y^{3} a_{2}+2 x^{5} x^{4 n} a \,y^{3} b_{3}+x^{4} x^{4 n} a \,y^{4} a_{3}+3 x^{5} x^{4 n} a \,y^{2} b_{1}+x^{4} x^{4 n} a \,y^{3} a_{1}+2 x^{3 n} a b \,y^{3} a_{3} x^{3}-x^{4} b_{2} x^{2 n}-b n a_{2} x^{n} x^{2}-b n y a_{3} x^{n} x -b n a_{1} x^{n} x -b a_{2} x^{n} x^{2}-b b_{3} x^{n} x^{2}-2 b y a_{3} x^{n} x -2 b a_{1} x^{n} x +b^{2} a_{3}\right ) x^{-2 n}}{x^{3}} = 0
\end{equation}
Looking at the above PDE shows the following are all the terms with \(\{x, y\}\) in them. \[
\{x, y, x^{n}\}
\]
The following substitution is now made to be able to collect on all terms with \(\{x, y\}\) in them \[
\{x = v_{1}, y = v_{2}, x^{n} = v_{3}\}
\]
The
above PDE (6E) now becomes \begin{equation}
\tag{7E} -\frac {v_{1}^{6} v_{3}^{6} a^{2} v_{2}^{6} a_{3}+2 v_{1}^{5} v_{3}^{4} a n v_{2}^{3} a_{2}+2 v_{1}^{4} v_{3}^{4} a n v_{2}^{4} a_{3}+2 v_{1}^{4} v_{3}^{4} a n v_{2}^{3} a_{1}+2 v_{1}^{5} v_{3}^{4} a v_{2}^{3} a_{2}+v_{1}^{4} v_{3}^{4} a v_{2}^{4} a_{3}+3 v_{1}^{6} v_{3}^{4} a v_{2}^{2} b_{2}+2 v_{1}^{5} v_{3}^{4} a v_{2}^{3} b_{3}+v_{1}^{4} v_{3}^{4} a v_{2}^{3} a_{1}+3 v_{1}^{5} v_{3}^{4} a v_{2}^{2} b_{1}+2 v_{3}^{3} a b v_{2}^{3} a_{3} v_{1}^{3}-v_{1}^{4} b_{2} v_{3}^{2}-b n a_{2} v_{3} v_{1}^{2}-b n v_{2} a_{3} v_{3} v_{1}-b n a_{1} v_{3} v_{1}-b a_{2} v_{3} v_{1}^{2}-2 b v_{2} a_{3} v_{3} v_{1}-b b_{3} v_{3} v_{1}^{2}-2 b a_{1} v_{3} v_{1}+b^{2} a_{3}}{v_{3}^{2} v_{1}^{3}} = 0
\end{equation}
Collecting the above on the terms \(v_i\) introduced, and these are \[
\{v_{1}, v_{2}, v_{3}\}
\]
Equation (7E) now becomes \begin{equation}
\tag{8E} -a^{2} a_{3} v_{3}^{4} v_{1}^{3} v_{2}^{6}-3 a b_{2} v_{3}^{2} v_{1}^{3} v_{2}^{2}+\left (-2 a n a_{2}-2 a a_{2}-2 a b_{3}\right ) v_{1}^{2} v_{2}^{3} v_{3}^{2}-3 a b_{1} v_{3}^{2} v_{1}^{2} v_{2}^{2}+\left (-2 a n a_{3}-a a_{3}\right ) v_{1} v_{2}^{4} v_{3}^{2}+\left (-2 a n a_{1}-a a_{1}\right ) v_{1} v_{2}^{3} v_{3}^{2}+b_{2} v_{1}-2 a b a_{3} v_{2}^{3} v_{3}+\frac {b n a_{2}+b a_{2}+b b_{3}}{v_{1} v_{3}}+\frac {\left (b n a_{3}+2 b a_{3}\right ) v_{2}}{v_{1}^{2} v_{3}}+\frac {b n a_{1}+2 b a_{1}}{v_{1}^{2} v_{3}}-\frac {b^{2} a_{3}}{v_{3}^{2} v_{1}^{3}} = 0
\end{equation}
Setting each coefficients in (8E) to zero gives the following equations
to solve \begin{align*} b_{2}&=0\\ -3 a b_{1}&=0\\ -3 a b_{2}&=0\\ -a^{2} a_{3}&=0\\ -b^{2} a_{3}&=0\\ -2 a b a_{3}&=0\\ -2 a n a_{1}-a a_{1}&=0\\ -2 a n a_{3}-a a_{3}&=0\\ b n a_{1}+2 b a_{1}&=0\\ b n a_{3}+2 b a_{3}&=0\\ -2 a n a_{2}-2 a a_{2}-2 a b_{3}&=0\\ b n a_{2}+b a_{2}+b b_{3}&=0 \end{align*}
Solving the above equations for the unknowns gives
\begin{align*} a_{1}&=0\\ a_{2}&=a_{2}\\ a_{3}&=0\\ b_{1}&=0\\ b_{2}&=0\\ b_{3}&=-\left (n +1\right ) a_{2} \end{align*}
Substituting the above solution in the anstaz (1E,2E) (using \(1\) as arbitrary value for any unknown
in the RHS) gives
\begin{align*}
\xi &= x \\
\eta &= -y \left (n +1\right ) \\
\end{align*}
The next step is to determine the canonical coordinates \(R,S\). The canonical
coordinates map \(\left ( x,y\right ) \to \left ( R,S \right )\) where \(\left ( R,S \right )\) are the canonical coordinates which make the original ode become a
quadrature and hence solved by integration.
The characteristic pde which is used to find the canonical coordinates is
\begin{align*} \frac {d x}{\xi } &= \frac {d y}{\eta } = dS \tag {1} \end{align*}
The above comes from the requirements that \(\left ( \xi \frac {\partial }{\partial x} + \eta \frac {\partial }{\partial y}\right ) S(x,y) = 1\). Starting with the first pair of ode’s in (1) gives an
ode to solve for the independent variable \(R\) in the canonical coordinates, where \(S(R)\). Therefore
\begin{align*} \frac {dy}{dx} &= \frac {\eta }{\xi }\\ &= \frac {-y \left (n +1\right )}{x}\\ &= -\frac {y \left (n +1\right )}{x} \end{align*}
This is easily solved to give
\begin{align*} y = c_1 \,x^{-1-n} \end{align*}
Where now the coordinate \(R\) is taken as the constant of integration. Hence
\begin{align*} R &= y \,x^{n +1} \end{align*}
And \(S\) is found from
\begin{align*} dS &= \frac {dx}{\xi } \\ &= \frac {dx}{x} \end{align*}
Integrating gives
\begin{align*} S &= \int { \frac {dx}{T}}\\ &= \ln \left (x \right ) \end{align*}
Where the constant of integration is set to zero as we just need one solution. Now that \(R,S\)
are found, we need to setup the ode in these coordinates. This is done by evaluating
\begin{align*} \frac {dS}{dR} &= \frac { S_{x} + \omega (x,y) S_{y} }{ R_{x} + \omega (x,y) R_{y} }\tag {2} \end{align*}
Where in the above \(R_{x},R_{y},S_{x},S_{y}\) are all partial derivatives and \(\omega (x,y)\) is the right hand side of the original ode given
by
\begin{align*} \omega (x,y) &= a \,x^{1+2 n} y^{3}+b \,x^{-n -2} \end{align*}
Evaluating all the partial derivatives gives
\begin{align*} R_{x} &= y \,x^{n} \left (n +1\right )\\ R_{y} &= x^{n +1}\\ S_{x} &= \frac {1}{x}\\ S_{y} &= 0 \end{align*}
Substituting all the above in (2) and simplifying gives the ode in canonical coordinates.
\begin{align*} \frac {dS}{dR} &= \frac {1}{a \,x^{3 n +3} y^{3}+x^{n +1} \left (n +1\right ) y +b}\tag {2A} \end{align*}
We now need to express the RHS as function of \(R\) only. This is done by solving for \(x,y\) in terms of \(R,S\)
from the result obtained earlier and simplifying. This gives
\begin{align*} \frac {dS}{dR} &= \frac {1}{R^{3} a +R n +R +b} \end{align*}
The above is a quadrature ode. This is the whole point of Lie symmetry method. It converts an
ode, no matter how complicated it is, to one that can be solved by integration when the ode is in
the canonical coordiates \(R,S\).
Since the ode has the form \(\frac {d}{d R}S \left (R \right )=f(R)\), then we only need to integrate \(f(R)\).
\begin{align*} \int {dS} &= \int {\frac {1}{R^{3} a +R n +R +b}\, dR}\\ S \left (R \right ) &= \munderset {\textit {\_R} =\operatorname {RootOf}\left (a \,\textit {\_Z}^{3}+\left (n +1\right ) \textit {\_Z} +b \right )}{\sum }\frac {\ln \left (R -\textit {\_R} \right )}{3 \textit {\_R}^{2} a +n +1} + c_2 \end{align*}
\begin{align*} S \left (R \right )&= \int \frac {1}{R^{3} a +R n +R +b}d R +c_2 \end{align*}
To complete the solution, we just need to transform the above back to \(x,y\) coordinates. This results
in
\begin{align*} \ln \left (x \right ) = \int _{}^{y x^{n +1}}\frac {1}{\textit {\_a}^{3} a +\textit {\_a} n +\textit {\_a} +b}d \textit {\_a} +c_2 \end{align*}
Summary of solutions found
\begin{align*}
\ln \left (x \right ) &= \int _{}^{y x^{n +1}}\frac {1}{\textit {\_a}^{3} a +\textit {\_a} n +\textit {\_a} +b}d \textit {\_a} +c_2 \\
\end{align*}
2.26.9.4 ✓ Maple. Time used: 0.003 (sec). Leaf size: 36
ode:=diff(y(x),x) = a*x^(1+2*n)*y(x)^3+b*x^(-n-2);
dsolve(ode,y(x), singsol=all);
\[
y = \operatorname {RootOf}\left (-\ln \left (x \right )+c_1 +\int _{}^{\textit {\_Z}}\frac {1}{\textit {\_a}^{3} a +n \textit {\_a} +\textit {\_a} +b}d \textit {\_a} \right ) x^{-1-n}
\]
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 homogeneous G
<- homogeneous successful
Maple step by step
\[ \begin {array}{lll} & {} & \textrm {Let's solve}\hspace {3pt} \\ {} & {} & \frac {d}{d x}y \left (x \right )=a \,x^{27291} y \left (x \right )^{3}+\frac {b}{x^{13647}} \\ \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^{27291} y \left (x \right )^{3}+\frac {b}{x^{13647}} \end {array} \]
2.26.9.5 ✓ Mathematica. Time used: 0.509 (sec). Leaf size: 403
ode=D[y[x],x]==a*x^(2*n+1)*y[x]^3+b*x^(-n-2);
ic={};
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
\[
\text {Solve}\left [\frac {1}{3} a b^2 \text {RootSum}\left [\text {$\#$1}^9 a b^2+3 \text {$\#$1}^6 a b^2+3 \text {$\#$1}^3 a b^2+\text {$\#$1}^3 n^3+3 \text {$\#$1}^3 n^2+3 \text {$\#$1}^3 n+\text {$\#$1}^3+a b^2\&,\frac {\text {$\#$1}^6 \log \left (y(x) \sqrt [3]{\frac {a x^{3 n+3}}{b}}-\text {$\#$1}\right )+\text {$\#$1}^4 \sqrt [3]{-\frac {(n+1)^3}{a b^2}} \log \left (y(x) \sqrt [3]{\frac {a x^{3 n+3}}{b}}-\text {$\#$1}\right )+2 \text {$\#$1}^3 \log \left (y(x) \sqrt [3]{\frac {a x^{3 n+3}}{b}}-\text {$\#$1}\right )+\text {$\#$1}^2 \left (-\frac {(n+1)^3}{a b^2}\right )^{2/3} \log \left (y(x) \sqrt [3]{\frac {a x^{3 n+3}}{b}}-\text {$\#$1}\right )+\text {$\#$1} \sqrt [3]{-\frac {(n+1)^3}{a b^2}} \log \left (y(x) \sqrt [3]{\frac {a x^{3 n+3}}{b}}-\text {$\#$1}\right )+\log \left (y(x) \sqrt [3]{\frac {a x^{3 n+3}}{b}}-\text {$\#$1}\right )}{3 \text {$\#$1}^8 a b^2+6 \text {$\#$1}^5 a b^2+3 \text {$\#$1}^2 a b^2+\text {$\#$1}^2 n^3+3 \text {$\#$1}^2 n^2+3 \text {$\#$1}^2 n+\text {$\#$1}^2}\&\right ]=\int _1^xb K[1]^{-n-2} \sqrt [3]{\frac {a K[1]^{3 n+3}}{b}}dK[1]+c_1,y(x)\right ]
\]
2.26.9.6 ✗ Sympy
from sympy import *
x = symbols("x")
a = symbols("a")
b = symbols("b")
n = symbols("n")
y = Function("y")
ode = Eq(-a*x**(2*n + 1)*y(x)**3 - b*x**(-n - 2) + Derivative(y(x), x),0)
ics = {}
dsolve(ode,func=y(x),ics=ics)
NotImplementedError : Cannot solve the partial differential equation due to inability of constantsim
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')