Internal
problem
ID
[13440]
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.6-4.
Equations
with
cotangent.
Problem
number
:
46
Date
solved
:
Wednesday, October 01, 2025 at 12:12:22 PM
CAS
classification
:
[_Riccati]
ode:=(a*cot(lambda*x)+b)*diff(y(x),x) = y(x)^2+c*cot(x*mu)*y(x)-d^2+c*d*cot(x*mu); dsolve(ode,y(x), singsol=all);
ode=(a*Cot[\[Lambda]*x]+b)*D[y[x],x]==y[x]^2+c*Cot[\[Mu]*x]*y[x]-d^2+c*d*Cot[\[Mu]*x]; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") a = symbols("a") b = symbols("b") c = symbols("c") d = symbols("d") lambda_ = symbols("lambda_") mu = symbols("mu") y = Function("y") ode = Eq(-c*d/tan(mu*x) - c*y(x)/tan(mu*x) + d**2 + (a/tan(lambda_*x) + b)*Derivative(y(x), x) - y(x)**2,0) ics = {} dsolve(ode,func=y(x),ics=ics)
TypeError : Invalid NaN comparison