55.21.14 problem 14

Internal problem ID [13541]
Book : Handbook of exact solutions for ordinary differential equations. By Polyanin and Zaitsev. Second edition
Section : Chapter 1, section 1.2. Riccati Equation. subsection 1.2.9. Some Transformations
Problem number : 14
Date solved : Wednesday, October 01, 2025 at 04:25:05 PM
CAS classification : [_Riccati]

\begin{align*} y^{\prime }&=y^{2}+\lambda ^{2}+\frac {f \left (\frac {\sin \left (\lambda x +a \right )}{\sin \left (\lambda x +b \right )}\right )}{\sin \left (\lambda x +b \right )^{4}} \end{align*}
Maple
ode:=diff(y(x),x) = y(x)^2+lambda^2+1/sin(lambda*x+b)^4*f(sin(lambda*x+a)/sin(lambda*x+b)); 
dsolve(ode,y(x), singsol=all);
 
\[ \text {No solution found} \]
Mathematica
ode=D[y[x],x]==y[x]^2+\[Lambda]^2+Sin[\[Lambda]*x+b]^(-4)*f[Sin[\[Lambda]*x+a]/Sin[\[Lambda]*x+b]]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 

Not solved

Sympy
from sympy import * 
x = symbols("x") 
a = symbols("a") 
b = symbols("b") 
lambda_ = symbols("lambda_") 
y = Function("y") 
f = Function("f") 
ode = Eq(-lambda_**2 - f(sin(a + lambda_*x)/sin(b + lambda_*x))/sin(b + lambda_*x)**4 - y(x)**2 + Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
NotImplementedError : The given ODE -lambda_**2 - f(sin(a + lambda_*x)/sin(b + lambda_*x))/sin(b + lambda_*x)**4 - y(x)**2 + Derivative(y(x), x) cannot be solved by the lie group method