2.2.18 Problem 20

2.2.18.1 Solved using first_order_ode_LIE
2.2.18.2 Maple
2.2.18.3 Mathematica
2.2.18.4 Sympy

Internal problem ID [13224]
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 : 20
Date solved : Sunday, January 18, 2026 at 06:46:59 PM
CAS classification : [_rational, _Riccati]

2.2.18.1 Solved using first_order_ode_LIE

2.795 (sec)

Entering first order ode LIE solver

\begin{align*} \left (a \,x^{2}+b x +c \right )^{2} \left (y^{\prime }+y^{2}\right )+A&=0 \\ \end{align*}
Writing the ode as
\begin{align*} y^{\prime }&=-\frac {a^{2} x^{4} y^{2}+2 y^{2} a b \,x^{3}+2 a c \,x^{2} y^{2}+y^{2} b^{2} x^{2}+2 y^{2} b c x +c^{2} y^{2}+A}{\left (a \,x^{2}+b x +c \right )^{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 2 to use as anstaz gives

\begin{align*} \tag{1E} \xi &= x^{2} a_{4}+x y a_{5}+y^{2} a_{6}+x a_{2}+y a_{3}+a_{1} \\ \tag{2E} \eta &= x^{2} b_{4}+x y b_{5}+y^{2} b_{6}+x b_{2}+y b_{3}+b_{1} \\ \end{align*}
Where the unknown coefficients are
\[ \{a_{1}, a_{2}, a_{3}, a_{4}, a_{5}, a_{6}, b_{1}, b_{2}, b_{3}, b_{4}, b_{5}, b_{6}\} \]
Substituting equations (1E,2E) and \(\omega \) into (A) gives
\begin{equation} \tag{5E} 2 x b_{4}+y b_{5}+b_{2}-\frac {\left (a^{2} x^{4} y^{2}+2 y^{2} a b \,x^{3}+2 a c \,x^{2} y^{2}+y^{2} b^{2} x^{2}+2 y^{2} b c x +c^{2} y^{2}+A \right ) \left (-2 x a_{4}+x b_{5}-y a_{5}+2 y b_{6}-a_{2}+b_{3}\right )}{\left (a \,x^{2}+b x +c \right )^{2}}-\frac {\left (a^{2} x^{4} y^{2}+2 y^{2} a b \,x^{3}+2 a c \,x^{2} y^{2}+y^{2} b^{2} x^{2}+2 y^{2} b c x +c^{2} y^{2}+A \right )^{2} \left (x a_{5}+2 y a_{6}+a_{3}\right )}{\left (a \,x^{2}+b x +c \right )^{4}}-\left (-\frac {4 a^{2} x^{3} y^{2}+6 a b \,x^{2} y^{2}+4 a c x \,y^{2}+2 b^{2} x \,y^{2}+2 c \,y^{2} b}{\left (a \,x^{2}+b x +c \right )^{2}}+\frac {2 \left (a^{2} x^{4} y^{2}+2 y^{2} a b \,x^{3}+2 a c \,x^{2} y^{2}+y^{2} b^{2} x^{2}+2 y^{2} b c x +c^{2} y^{2}+A \right ) \left (2 a x +b \right )}{\left (a \,x^{2}+b x +c \right )^{3}}\right ) \left (x^{2} a_{4}+x y a_{5}+y^{2} a_{6}+x a_{2}+y a_{3}+a_{1}\right )+\frac {\left (2 a^{2} x^{4} y +4 a b \,x^{3} y +4 a c \,x^{2} y +2 b^{2} x^{2} y +4 b c x y +2 c^{2} y \right ) \left (x^{2} b_{4}+x y b_{5}+y^{2} b_{6}+x b_{2}+y b_{3}+b_{1}\right )}{\left (a \,x^{2}+b x +c \right )^{2}} = 0 \end{equation}
Putting the above in normal form gives
\[ \text {Expression too large to display} \]
Setting the numerator to zero gives
\begin{equation} \tag{6E} \text {Expression too large to display} \end{equation}
Looking at the above PDE shows the following are all the terms with \(\{x, y\}\) in them.
\[ \{x, y\} \]
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}\} \]
The above PDE (6E) now becomes
\begin{equation} \tag{7E} \text {Expression too large to display} \end{equation}
Collecting the above on the terms \(v_i\) introduced, and these are
\[ \{v_{1}, v_{2}\} \]
Equation (7E) now becomes
\begin{equation} \tag{8E} \text {Expression too large to display} \end{equation}
Setting each coefficients in (8E) to zero gives the following equations to solve
\begin{align*} a^{4} a_{5}&=0\\ -a^{4} a_{5}&=0\\ -2 a^{4} a_{6}&=0\\ 2 a^{4} b_{4}&=0\\ -c^{4} a_{3}&=0\\ -2 c^{4} a_{6}&=0\\ 4 a^{3} b a_{5}&=0\\ -8 a^{3} b a_{6}&=0\\ -8 b \,c^{3} a_{6}&=0\\ 2 a^{4} a_{4}+a^{4} b_{5}&=0\\ c^{4} a_{5}-4 A \,c^{2} a_{6}&=0\\ 12 a^{2} b c a_{5}+4 a \,b^{3} a_{5}&=0\\ 4 a^{3} c a_{5}+6 a^{2} b^{2} a_{5}&=0\\ -8 a \,c^{3} a_{6}-12 b^{2} c^{2} a_{6}&=0\\ -24 a b \,c^{2} a_{6}-8 b^{3} c a_{6}&=0\\ -24 a^{2} b c a_{6}-8 a \,b^{3} a_{6}&=0\\ -8 a^{3} c a_{6}-12 a^{2} b^{2} a_{6}&=0\\ -a^{4} a_{3}-4 a^{3} b a_{5}&=0\\ a^{4} b_{2}+8 a^{3} b b_{4}&=0\\ 2 a^{4} b_{2}+8 a^{3} b b_{4}&=0\\ -4 b \,c^{3} a_{3}-c^{4} a_{5}&=0\\ 4 b \,c^{3} a_{5}-8 A b c a_{6}&=0\\ -12 a^{2} c^{2} a_{6}-24 a \,b^{2} c a_{6}-2 b^{4} a_{6}&=0\\ -4 a \,c^{3} a_{3}-6 b^{2} c^{2} a_{3}-4 b \,c^{3} a_{5}&=0\\ -4 a^{3} b a_{3}-4 a^{3} c a_{5}-6 a^{2} b^{2} a_{5}&=0\\ 4 a^{3} b b_{2}+8 a^{3} c b_{4}+12 a^{2} b^{2} b_{4}&=0\\ 12 a b \,c^{2} a_{5}+4 b^{3} c a_{5}-8 A a b a_{6}&=0\\ -12 a b \,c^{2} a_{3}-4 a \,c^{3} a_{5}-4 b^{3} c a_{3}-6 b^{2} c^{2} a_{5}&=0\\ -4 a^{3} c a_{3}-6 a^{2} b^{2} a_{3}-12 a^{2} b c a_{5}-4 a \,b^{3} a_{5}&=0\\ 4 a^{3} c b_{2}+6 a^{2} b^{2} b_{2}+24 a^{2} b c b_{4}+8 a \,b^{3} b_{4}&=0\\ 4 a \,c^{3} a_{5}+6 b^{2} c^{2} a_{5}-8 A a c a_{6}-4 A \,b^{2} a_{6}&=0\\ 6 a^{2} c^{2} a_{5}+12 a \,b^{2} c a_{5}+b^{4} a_{5}-4 A \,a^{2} a_{6}&=0\\ a^{4} a_{2}+a^{4} b_{3}+8 a^{3} b a_{4}+4 a^{3} b b_{5}&=0\\ c^{4} a_{2}+c^{4} b_{3}-2 A b c a_{6}-2 A \,c^{2} a_{3}&=0\\ -6 a^{2} c^{2} a_{3}-12 a \,b^{2} c a_{3}-12 a b \,c^{2} a_{5}-b^{4} a_{3}-4 b^{3} c a_{5}&=0\\ -12 a^{2} b c a_{3}-6 a^{2} c^{2} a_{5}-4 a \,b^{3} a_{3}-12 a \,b^{2} c a_{5}-b^{4} a_{5}&=0\\ 2 a^{4} b_{1}+a^{4} b_{5}+8 a^{3} b b_{2}+8 a^{3} c b_{4}+12 a^{2} b^{2} b_{4}&=0\\ c^{4} b_{2}-2 A b c a_{1}+A \,c^{2} a_{2}-A \,c^{2} b_{3}-A^{2} a_{3}&=0\\ 4 a^{3} b a_{2}+4 a^{3} b b_{3}+8 a^{3} c a_{4}+4 a^{3} c b_{5}+12 a^{2} b^{2} a_{4}+6 a^{2} b^{2} b_{5}&=0\\ 8 a^{3} b b_{1}+4 a^{3} b b_{5}+8 a^{3} c b_{2}+12 a^{2} b^{2} b_{2}+24 a^{2} b c b_{4}+8 a \,b^{3} b_{4}&=0\\ 8 b \,c^{3} b_{1}+4 b \,c^{3} b_{5}+2 c^{4} b_{2}-4 A a c a_{3}-2 A \,b^{2} a_{3}-4 A b c b_{6}&=0\\ 2 c^{4} b_{1}+c^{4} b_{5}-2 A b c a_{3}+A \,c^{2} a_{5}-2 A \,c^{2} b_{6}-2 A^{2} a_{6}&=0\\ 12 a^{2} b c b_{2}+12 a^{2} c^{2} b_{4}+4 a \,b^{3} b_{2}+24 a \,b^{2} c b_{4}+2 b^{4} b_{4}-2 A \,a^{2} a_{4}-A \,a^{2} b_{5}&=0\\ 4 a^{3} c a_{2}+4 a^{3} c b_{3}+6 a^{2} b^{2} a_{2}+6 a^{2} b^{2} b_{3}+24 a^{2} b c a_{4}+12 a^{2} b c b_{5}+8 a \,b^{3} a_{4}+4 a \,b^{3} b_{5}&=0\\ 4 b \,c^{3} b_{2}+2 c^{4} b_{4}-4 A a c a_{1}-2 A \,b^{2} a_{1}-2 A b c b_{3}+2 A \,c^{2} a_{4}-A \,c^{2} b_{5}-A^{2} a_{5}&=0\\ 4 b \,c^{3} a_{2}+4 b \,c^{3} b_{3}+2 c^{4} a_{4}+c^{4} b_{5}-4 A a c a_{6}-2 A \,b^{2} a_{6}-4 A b c a_{3}-2 A \,c^{2} a_{5}&=0\\ 24 a^{2} b c b_{1}+12 a^{2} b c b_{5}+12 a^{2} c^{2} b_{2}+8 a \,b^{3} b_{1}+4 a \,b^{3} b_{5}+24 a \,b^{2} c b_{2}+24 a b \,c^{2} b_{4}+2 b^{4} b_{2}+8 b^{3} c b_{4}&=0\\ 8 a^{3} c b_{1}+4 a^{3} c b_{5}+12 a^{2} b^{2} b_{1}+6 a^{2} b^{2} b_{5}+24 a^{2} b c b_{2}+12 a^{2} c^{2} b_{4}+8 a \,b^{3} b_{2}+24 a \,b^{2} c b_{4}+2 b^{4} b_{4}&=0\\ 12 a b \,c^{2} b_{2}+8 a \,c^{3} b_{4}+4 b^{3} c b_{2}+12 b^{2} c^{2} b_{4}-4 A \,a^{2} a_{1}-4 A a b a_{2}-2 A a b b_{3}-2 A a c b_{5}-A \,b^{2} b_{5}&=0\\ 6 a^{2} c^{2} b_{2}+12 a \,b^{2} c b_{2}+24 a b \,c^{2} b_{4}+b^{4} b_{2}+8 b^{3} c b_{4}-3 A \,a^{2} a_{2}-A \,a^{2} b_{3}-2 A a b a_{4}-2 A a b b_{5}&=0\\ 4 a \,c^{3} b_{2}+6 b^{2} c^{2} b_{2}+8 b \,c^{3} b_{4}-6 A a b a_{1}-2 A a c a_{2}-2 A a c b_{3}-A \,b^{2} a_{2}-A \,b^{2} b_{3}+2 A b c a_{4}-2 A b c b_{5}&=0\\ 4 a \,c^{3} a_{2}+4 a \,c^{3} b_{3}+6 b^{2} c^{2} a_{2}+6 b^{2} c^{2} b_{3}+8 b \,c^{3} a_{4}+4 b \,c^{3} b_{5}-6 A a b a_{6}-4 A a c a_{3}-2 A \,b^{2} a_{3}-4 A b c a_{5}&=0\\ 24 a b \,c^{2} b_{1}+12 a b \,c^{2} b_{5}+8 a \,c^{3} b_{2}+8 b^{3} c b_{1}+4 b^{3} c b_{5}+12 b^{2} c^{2} b_{2}+8 b \,c^{3} b_{4}-4 A \,a^{2} a_{3}-4 A a b a_{5}-4 A a b b_{6}&=0\\ 12 a^{2} b c a_{2}+12 a^{2} b c b_{3}+12 a^{2} c^{2} a_{4}+6 a^{2} c^{2} b_{5}+4 a \,b^{3} a_{2}+4 a \,b^{3} b_{3}+24 a \,b^{2} c a_{4}+12 a \,b^{2} c b_{5}+2 b^{4} a_{4}+b^{4} b_{5}-2 A \,a^{2} a_{5}&=0\\ 8 a \,c^{3} b_{1}+4 a \,c^{3} b_{5}+12 b^{2} c^{2} b_{1}+6 b^{2} c^{2} b_{5}+8 b \,c^{3} b_{2}+2 c^{4} b_{4}-6 A a b a_{3}-2 A a c a_{5}-4 A a c b_{6}-A \,b^{2} a_{5}-2 A \,b^{2} b_{6}&=0\\ 6 a^{2} c^{2} a_{2}+6 a^{2} c^{2} b_{3}+12 a \,b^{2} c a_{2}+12 a \,b^{2} c b_{3}+24 a b \,c^{2} a_{4}+12 a b \,c^{2} b_{5}+b^{4} a_{2}+b^{4} b_{3}+8 b^{3} c a_{4}+4 b^{3} c b_{5}-2 A \,a^{2} a_{3}-4 A a b a_{5}&=0\\ 12 a^{2} c^{2} b_{1}+6 a^{2} c^{2} b_{5}+24 a \,b^{2} c b_{1}+12 a \,b^{2} c b_{5}+24 a b \,c^{2} b_{2}+8 a \,c^{3} b_{4}+2 b^{4} b_{1}+b^{4} b_{5}+8 b^{3} c b_{2}+12 b^{2} c^{2} b_{4}-3 A \,a^{2} a_{5}-2 A \,a^{2} b_{6}&=0\\ 12 a b \,c^{2} a_{2}+12 a b \,c^{2} b_{3}+8 a \,c^{3} a_{4}+4 a \,c^{3} b_{5}+4 b^{3} c a_{2}+4 b^{3} c b_{3}+12 b^{2} c^{2} a_{4}+6 b^{2} c^{2} b_{5}-4 A \,a^{2} a_{6}-4 A a b a_{3}-4 A a c a_{5}-2 A \,b^{2} a_{5}&=0 \end{align*}

Solving the above equations for the unknowns gives

\begin{align*} a_{1}&=-\frac {c b_{3}}{b}\\ a_{2}&=-b_{3}\\ a_{3}&=0\\ a_{4}&=-\frac {a b_{3}}{b}\\ a_{5}&=0\\ a_{6}&=0\\ b_{1}&=-\frac {a b_{3}}{b}\\ b_{2}&=0\\ b_{3}&=b_{3}\\ b_{4}&=0\\ b_{5}&=\frac {2 a b_{3}}{b}\\ b_{6}&=0 \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 &= -\frac {a \,x^{2}+b x +c}{b} \\ \eta &= \frac {2 y a x +b y -a}{b} \\ \end{align*}
Shifting is now applied to make \(\xi =0\) in order to simplify the rest of the computation
\begin{align*} \eta &= \eta - \omega \left (x,y\right ) \xi \\ &= \frac {2 y a x +b y -a}{b} - \left (-\frac {a^{2} x^{4} y^{2}+2 y^{2} a b \,x^{3}+2 a c \,x^{2} y^{2}+y^{2} b^{2} x^{2}+2 y^{2} b c x +c^{2} y^{2}+A}{\left (a \,x^{2}+b x +c \right )^{2}}\right ) \left (-\frac {a \,x^{2}+b x +c}{b}\right ) \\ &= \frac {\left (2 a x +b \right ) y -a}{b}+\frac {-\left (a \,x^{2}+b x +c \right )^{2} y^{2}-A}{\left (a \,x^{2}+b x +c \right ) b}\\ \xi &= 0 \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)\). Since \(\xi =0\) then in this special case

\begin{align*} R = x \end{align*}

\(S\) is found from

\begin{align*} S &= \int { \frac {1}{\eta }} dy\\ &= \int { \frac {1}{\frac {\left (2 a x +b \right ) y -a}{b}+\frac {-\left (a \,x^{2}+b x +c \right )^{2} y^{2}-A}{\left (a \,x^{2}+b x +c \right ) b}}} dy \end{align*}

Which results in

\begin{align*} S&= -\frac {2 \left (a \,x^{2}+b x +c \right ) b \arctan \left (\frac {2 y \left (a^{2} x^{4}+2 a b \,x^{3}+2 a c \,x^{2}+b^{2} x^{2}+2 b c x +c^{2}\right )-2 a^{2} x^{3}-3 b a \,x^{2}-2 a c x -b^{2} x -c b}{\sqrt {4 a^{3} c \,x^{4}-a^{2} b^{2} x^{4}+4 A \,a^{2} x^{4}+8 a^{2} b c \,x^{3}-2 a \,b^{3} x^{3}+8 A a b \,x^{3}+8 a^{2} c^{2} x^{2}+2 a \,b^{2} c \,x^{2}-b^{4} x^{2}+8 A a c \,x^{2}+4 A \,b^{2} x^{2}+8 a b \,c^{2} x -2 b^{3} c x +8 A b c x +4 c^{3} a -b^{2} c^{2}+4 A \,c^{2}}}\right )}{\sqrt {4 a^{3} c \,x^{4}-a^{2} b^{2} x^{4}+4 A \,a^{2} x^{4}+8 a^{2} b c \,x^{3}-2 a \,b^{3} x^{3}+8 A a b \,x^{3}+8 a^{2} c^{2} x^{2}+2 a \,b^{2} c \,x^{2}-b^{4} x^{2}+8 A a c \,x^{2}+4 A \,b^{2} x^{2}+8 a b \,c^{2} x -2 b^{3} c x +8 A b c x +4 c^{3} a -b^{2} c^{2}+4 A \,c^{2}}} \end{align*}

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 {a^{2} x^{4} y^{2}+2 y^{2} a b \,x^{3}+2 a c \,x^{2} y^{2}+y^{2} b^{2} x^{2}+2 y^{2} b c x +c^{2} y^{2}+A}{\left (a \,x^{2}+b x +c \right )^{2}} \end{align*}

Evaluating all the partial derivatives gives

\begin{align*} R_{x} &= 1\\ R_{y} &= 0\\ S_{x} &= -\frac {2 \left (4 y a x +2 b y -2 a \right ) b}{\left (4 a c -b^{2}+4 A \right ) \left (\frac {\left (2 a \,x^{2} y +2 b x y -2 a x +2 c y -b \right )^{2}}{4 a c -b^{2}+4 A}+1\right )}\\ S_{y} &= -\frac {2 \left (2 a \,x^{2}+2 b x +2 c \right ) b}{\left (4 a c -b^{2}+4 A \right ) \left (\frac {\left (2 a \,x^{2} y +2 b x y -2 a x +2 c y -b \right )^{2}}{4 a c -b^{2}+4 A}+1\right )} \end{align*}

Substituting all the above in (2) and simplifying gives the ode in canonical coordinates.

\begin{align*} \frac {dS}{dR} &= \frac {b}{a \,x^{2}+b x +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 {b}{R^{2} a +R b +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 {b}{R^{2} a +R b +c}\, dR}\\ S \left (R \right ) &= \frac {2 b \arctan \left (\frac {2 R a +b}{\sqrt {4 a c -b^{2}}}\right )}{\sqrt {4 a c -b^{2}}} + c_2 \end{align*}
\begin{align*} S \left (R \right )&= \frac {2 b \arctan \left (\frac {2 R a +b}{\sqrt {4 a c -b^{2}}}\right )}{\sqrt {4 a c -b^{2}}}+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*} -\frac {2 \arctan \left (\frac {2 a \,x^{2} y+2 b x y-2 a x +2 c y-b}{\sqrt {4 a c -b^{2}+4 A}}\right ) b}{\sqrt {4 a c -b^{2}+4 A}} = \frac {2 b \arctan \left (\frac {2 a x +b}{\sqrt {4 a c -b^{2}}}\right )}{\sqrt {4 a c -b^{2}}}+c_2 \end{align*}

Simplifying the above gives

\begin{align*} -\frac {2 \arctan \left (\frac {2 y \left (a \,x^{2}+b x +c \right )-2 a x -b}{\sqrt {4 a c -b^{2}+4 A}}\right ) b}{\sqrt {4 a c -b^{2}+4 A}} &= \frac {2 b \arctan \left (\frac {2 a x +b}{\sqrt {4 a c -b^{2}}}\right )}{\sqrt {4 a c -b^{2}}}+c_2 \\ \end{align*}
Solving for \(y\) gives
\begin{align*} y &= -\frac {\tan \left (\frac {\sqrt {4 a c -b^{2}+4 A}\, \left (c_2 \sqrt {4 a c -b^{2}}+2 b \arctan \left (\frac {2 a x +b}{\sqrt {4 a c -b^{2}}}\right )\right )}{2 \sqrt {4 a c -b^{2}}\, b}\right ) \sqrt {4 a c -b^{2}+4 A}-2 a x -b}{2 \left (a \,x^{2}+b x +c \right )} \\ \end{align*}

Summary of solutions found

\begin{align*} y &= -\frac {\tan \left (\frac {\sqrt {4 a c -b^{2}+4 A}\, \left (c_2 \sqrt {4 a c -b^{2}}+2 b \arctan \left (\frac {2 a x +b}{\sqrt {4 a c -b^{2}}}\right )\right )}{2 \sqrt {4 a c -b^{2}}\, b}\right ) \sqrt {4 a c -b^{2}+4 A}-2 a x -b}{2 \left (a \,x^{2}+b x +c \right )} \\ \end{align*}
2.2.18.2 Maple. Time used: 0.006 (sec). Leaf size: 493
ode:=(a*x^2+b*x+c)^2*(diff(y(x),x)+y(x)^2)+A = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = \frac {2 a \left (c_1 \left (i \sqrt {\frac {-4 a c +b^{2}-4 A}{a^{2}}}\, a \sqrt {4 a c -b^{2}}-2 \sqrt {-4 a c +b^{2}}\, \left (x a +\frac {b}{2}\right )\right ) {\left (\frac {i \sqrt {4 a c -b^{2}}-2 x a -b}{2 x a +b +i \sqrt {4 a c -b^{2}}}\right )}^{-\frac {a \sqrt {\frac {-4 a c +b^{2}-4 A}{a^{2}}}}{2 \sqrt {-4 a c +b^{2}}}}-{\left (\frac {i \sqrt {4 a c -b^{2}}-2 x a -b}{2 x a +b +i \sqrt {4 a c -b^{2}}}\right )}^{\frac {a \sqrt {\frac {-4 a c +b^{2}-4 A}{a^{2}}}}{2 \sqrt {-4 a c +b^{2}}}} \left (i \sqrt {\frac {-4 a c +b^{2}-4 A}{a^{2}}}\, a \sqrt {4 a c -b^{2}}+2 \sqrt {-4 a c +b^{2}}\, \left (x a +\frac {b}{2}\right )\right )\right )}{\sqrt {-4 a c +b^{2}}\, \left (2 x a +b +i \sqrt {4 a c -b^{2}}\right ) \left (i \sqrt {4 a c -b^{2}}-2 x a -b \right ) \left (c_1 {\left (\frac {i \sqrt {4 a c -b^{2}}-2 x a -b}{2 x a +b +i \sqrt {4 a c -b^{2}}}\right )}^{-\frac {a \sqrt {\frac {-4 a c +b^{2}-4 A}{a^{2}}}}{2 \sqrt {-4 a c +b^{2}}}}+{\left (\frac {i \sqrt {4 a c -b^{2}}-2 x a -b}{2 x a +b +i \sqrt {4 a c -b^{2}}}\right )}^{\frac {a \sqrt {\frac {-4 a c +b^{2}-4 A}{a^{2}}}}{2 \sqrt {-4 a c +b^{2}}}}\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 to 2nd Order 
   -> Calling odsolve with the ODE, diff(diff(y(x),x),x) = -1/(a^2*x^4+2*a*b*x^ 
3+2*a*c*x^2+b^2*x^2+2*b*c*x+c^2)*A*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 
         A Liouvillian solution exists 
         Group is reducible or imprimitive 
      <- Kovacics algorithm successful 
   <- Riccati to 2nd Order successful
 

Maple step by step

\[ \begin {array}{lll} & {} & \textrm {Let's solve}\hspace {3pt} \\ {} & {} & \left (a \,x^{2}+b x +c \right )^{2} \left (\frac {d}{d x}y \left (x \right )+y \left (x \right )^{2}\right )+A =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} a^{2} x^{4}+2 y \left (x \right )^{2} a b \,x^{3}+2 y \left (x \right )^{2} a c \,x^{2}+y \left (x \right )^{2} b^{2} x^{2}+2 y \left (x \right )^{2} b c x +y \left (x \right )^{2} c^{2}+A}{\left (a \,x^{2}+b x +c \right )^{2}} \end {array} \]
2.2.18.3 Mathematica. Time used: 1.49 (sec). Leaf size: 397
ode=(a*x^2+b*x+c)^2*(D[y[x],x]+y[x]^2)+A==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to \frac {2 (x (a x+b)+c) \exp \left (-2 \int _1^x\frac {b+2 a K[1]-\sqrt {b^2-4 a c} \sqrt {1-\frac {4 A}{b^2-4 a c}}}{2 (c+K[1] (b+a K[1]))}dK[1]\right )+\left (-\sqrt {b^2-4 a c} \sqrt {1-\frac {4 A}{b^2-4 a c}}+2 a x+b\right ) \int _1^x\exp \left (-2 \int _1^{K[2]}\frac {b+2 a K[1]-\sqrt {b^2-4 a c} \sqrt {1-\frac {4 A}{b^2-4 a c}}}{2 (c+K[1] (b+a K[1]))}dK[1]\right )dK[2]+c_1 \left (-\sqrt {b^2-4 a c} \sqrt {1-\frac {4 A}{b^2-4 a c}}+2 a x+b\right )}{2 (x (a x+b)+c) \left (\int _1^x\exp \left (-2 \int _1^{K[2]}\frac {b+2 a K[1]-\sqrt {b^2-4 a c} \sqrt {1-\frac {4 A}{b^2-4 a c}}}{2 (c+K[1] (b+a K[1]))}dK[1]\right )dK[2]+c_1\right )}\\ y(x)&\to \frac {-\sqrt {b^2-4 a c} \sqrt {1-\frac {4 A}{b^2-4 a c}}+2 a x+b}{2 (x (a x+b)+c)} \end{align*}
2.2.18.4 Sympy
from sympy import * 
x = symbols("x") 
A = symbols("A") 
a = symbols("a") 
b = symbols("b") 
c = symbols("c") 
y = Function("y") 
ode = Eq(A + (y(x)**2 + Derivative(y(x), x))*(a*x**2 + b*x + c)**2,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
NotImplementedError : The given ODE Derivative(y(x), x) - (-A - a**2*x**4*y(x)**2 - 2*a*b*x**3*y(x)*
 
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', '1st_power_series', 'lie_group')