2.26.15 Problem 15
Internal
problem
ID
[13651]
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
:
15
Date
solved
:
Sunday, January 18, 2026 at 09:02:37 PM
CAS
classification
:
[_rational, _Abel]
2.26.15.1 Solved using first_order_ode_LIE
0.468 (sec)
Entering first order ode LIE solver
\begin{align*}
y^{\prime } x&=3 x^{1+2 n} y^{3}+\left (b x -n \right ) y+c \,x^{1-n} \\
\end{align*}
Writing the ode as \begin{align*} y^{\prime }&=\frac {3 y^{3} x^{1+2 n}+b x y +c \,x^{1-n}-n y}{x}\\ 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. Using these anstaz
\begin{align*}
\tag{1E} \xi &= 1 \\
\tag{2E} \eta &= \frac {A x +B y}{C x} \\
\end{align*}
Where the unknown
coefficients are \[
\{A, B, C\}
\]
Substituting equations (1E,2E) and \(\omega \) into (A) gives \begin{equation}
\tag{5E} \frac {A}{C x}-\frac {A x +B y}{C \,x^{2}}+\frac {\left (3 y^{3} x^{1+2 n}+b x y +c \,x^{1-n}-n y \right ) B}{x^{2} C}-\frac {\frac {3 y^{3} x^{1+2 n} \left (1+2 n \right )}{x}+b y +\frac {c \,x^{1-n} \left (1-n \right )}{x}}{x}+\frac {3 y^{3} x^{1+2 n}+b x y +c \,x^{1-n}-n y}{x^{2}}-\frac {\left (9 y^{2} x^{1+2 n}+b x -n \right ) \left (A x +B y \right )}{x^{2} C} = 0
\end{equation}
Putting the above in normal
form gives \[
-\frac {6 C \,x^{1+2 n} n \,y^{3}+9 A \,x^{1+2 n} x \,y^{2}+6 B \,x^{1+2 n} y^{3}+A b \,x^{2}-C \,x^{1-n} c n -A n x -B \,x^{1-n} c +C n y +B y}{C \,x^{2}} = 0
\]
Setting the numerator to zero gives \begin{equation}
\tag{6E} -6 C \,x^{1+2 n} n \,y^{3}-9 A \,x^{1+2 n} x \,y^{2}-6 B \,x^{1+2 n} y^{3}-A b \,x^{2}+C \,x^{1-n} c n +A n x +B \,x^{1-n} c -C n y -B y = 0
\end{equation}
Simplifying the above gives \begin{equation}
\tag{6E} -\left (6 C x \,x^{3 n} n \,y^{3}+9 A \,x^{2} x^{3 n} y^{2}+6 B x \,x^{3 n} y^{3}+A b \,x^{2} x^{n}-A n x \,x^{n}+C n y \,x^{n}-C x c n +B y \,x^{n}-B x c \right ) x^{-n} = 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 {6 C v_{1} v_{3}^{3} n v_{2}^{3}+9 A v_{1}^{2} v_{3}^{3} v_{2}^{2}+6 B v_{1} v_{3}^{3} v_{2}^{3}+A b v_{1}^{2} v_{3}-A n v_{1} v_{3}-C v_{1} c n +C n v_{2} v_{3}-B v_{1} c +B v_{2} v_{3}}{v_{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} -9 A v_{3}^{2} v_{1}^{2} v_{2}^{2}-A b v_{1}^{2}+\left (-6 C n -6 B \right ) v_{1} v_{2}^{3} v_{3}^{2}+A n v_{1}+\frac {\left (C c n +B c \right ) v_{1}}{v_{3}}+\left (-C n -B \right ) v_{2} = 0
\end{equation}
Setting each coefficients in (8E) to zero gives the following equations to solve
\begin{align*} A n&=0\\ -9 A&=0\\ -A b&=0\\ -6 C n -6 B&=0\\ -C n -B&=0\\ C c n +B c&=0 \end{align*}
Solving the above equations for the unknowns gives
\begin{align*} A&=0\\ B&=-C n\\ C&=C \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 &= 1 \\
\eta &= -\frac {n y}{x} \\
\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 {-\frac {n y}{x}}{1}\\ &= -\frac {n y}{x} \end{align*}
This is easily solved to give
\begin{align*} y = c_1 \,x^{-n} \end{align*}
Where now the coordinate \(R\) is taken as the constant of integration. Hence
\begin{align*} R &= x^{n} y \end{align*}
And \(S\) is found from
\begin{align*} dS &= \frac {dx}{\xi } \\ &= \frac {dx}{1} \end{align*}
Integrating gives
\begin{align*} S &= \int { \frac {dx}{T}}\\ &= x \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) &= \frac {3 y^{3} x^{1+2 n}+b x y +c \,x^{1-n}-n y}{x} \end{align*}
Evaluating all the partial derivatives gives
\begin{align*} R_{x} &= n y \,x^{n -1}\\ R_{y} &= x^{n}\\ S_{x} &= 1\\ 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}{3 x^{3 n} y^{3}+x^{n} b y +c}\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}{3 R^{3}+b R +c} \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}{3 R^{3}+b R +c}\, dR}\\ S \left (R \right ) &= \munderset {\textit {\_R} =\operatorname {RootOf}\left (3 \textit {\_Z}^{3}+b \textit {\_Z} +c \right )}{\sum }\frac {\ln \left (R -\textit {\_R} \right )}{9 \textit {\_R}^{2}+b} + c_2 \end{align*}
\begin{align*} S \left (R \right )&= \int \frac {1}{3 R^{3}+b R +c}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*} x = \int _{}^{y x^{n}}\frac {1}{3 \textit {\_a}^{3}+b \textit {\_a} +c}d \textit {\_a} +c_2 \end{align*}
Summary of solutions found
\begin{align*}
x &= \int _{}^{y x^{n}}\frac {1}{3 \textit {\_a}^{3}+b \textit {\_a} +c}d \textit {\_a} +c_2 \\
\end{align*}
2.26.15.2 ✓ Maple. Time used: 0.004 (sec). Leaf size: 51
ode:=x*diff(y(x),x) = 3*x^(1+2*n)*y(x)^3+(b*x-n)*y(x)+c*x^(1-n);
dsolve(ode,y(x), singsol=all);
\[
y = -\frac {\operatorname {RootOf}\left (-b^{3} \int _{}^{\textit {\_Z}}\frac {1}{3 \textit {\_a}^{3} c^{2}+\textit {\_a} \,b^{3}-b^{3}}d \textit {\_a} +b x +c_1 \right ) c \,x^{-n}}{b}
\]
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
<- Chini successful
Maple step by step
\[ \begin {array}{lll} & {} & \textrm {Let's solve}\hspace {3pt} \\ {} & {} & x \left (\frac {d}{d x}y \left (x \right )\right )=3 x^{27303} y \left (x \right )^{3}+\left (b x -13651\right ) y \left (x \right )+\frac {c}{x^{13650}} \\ \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 {3 x^{27303} y \left (x \right )^{3}+\left (b x -13651\right ) y \left (x \right )+\frac {c}{x^{13650}}}{x} \end {array} \]
2.26.15.3 ✓ Mathematica. Time used: 0.325 (sec). Leaf size: 365
ode=x*D[y[x],x]==3*x^(2*n+1)*y[x]^3+(b*x-n)*y[x]+c*x^(1-n);
ic={};
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
\[
\text {Solve}\left [\frac {1}{3} c^2 \text {RootSum}\left [3 \text {$\#$1}^9 c^2+9 \text {$\#$1}^6 c^2+\text {$\#$1}^3 b^3+9 \text {$\#$1}^3 c^2+3 c^2\&,\frac {3 \text {$\#$1}^6 \log \left (\sqrt [3]{3} y(x) \sqrt [3]{\frac {x^{3 n}}{c}}-\text {$\#$1}\right )+3^{2/3} \text {$\#$1}^4 \sqrt [3]{-\frac {b^3}{c^2}} \log \left (\sqrt [3]{3} y(x) \sqrt [3]{\frac {x^{3 n}}{c}}-\text {$\#$1}\right )+6 \text {$\#$1}^3 \log \left (\sqrt [3]{3} y(x) \sqrt [3]{\frac {x^{3 n}}{c}}-\text {$\#$1}\right )+\sqrt [3]{3} \text {$\#$1}^2 \left (-\frac {b^3}{c^2}\right )^{2/3} \log \left (\sqrt [3]{3} y(x) \sqrt [3]{\frac {x^{3 n}}{c}}-\text {$\#$1}\right )+3^{2/3} \text {$\#$1} \sqrt [3]{-\frac {b^3}{c^2}} \log \left (\sqrt [3]{3} y(x) \sqrt [3]{\frac {x^{3 n}}{c}}-\text {$\#$1}\right )+3 \log \left (\sqrt [3]{3} y(x) \sqrt [3]{\frac {x^{3 n}}{c}}-\text {$\#$1}\right )}{9 \text {$\#$1}^8 c^2+18 \text {$\#$1}^5 c^2+\text {$\#$1}^2 b^3+9 \text {$\#$1}^2 c^2}\&\right ]=\sqrt [3]{3} c x^{1-n} \sqrt [3]{\frac {x^{3 n}}{c}}+c_1,y(x)\right ]
\]
2.26.15.4 ✗ Sympy
from sympy import *
x = symbols("x")
a = symbols("a")
b = symbols("b")
n = symbols("n")
c = symbols("c")
y = Function("y")
ode = Eq(-c*x**(1 - n) + x*Derivative(y(x), x) - 3*x**(2*n + 1)*y(x)**3 - (b*x - n)*y(x),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