Internal
problem
ID
[13369]
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.4-2.
Equations
with
hyperbolic
tangent
and
cotangent.
Problem
number
:
25
Date
solved
:
Wednesday, October 01, 2025 at 08:44:20 AM
CAS
classification
:
[_Riccati]
ode:=(a*coth(lambda*x)+b)*diff(y(x),x) = y(x)^2+c*coth(x*mu)*y(x)-d^2+c*d*coth(x*mu); dsolve(ode,y(x), singsol=all);
ode=(a*Coth[\[Lambda]*x]+b)*D[y[x],x]==y[x]^2+c*Coth[\[Mu]*x]*y[x]-d^2+c*d*Coth[\[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/tanh(mu*x) - c*y(x)/tanh(mu*x) + d**2 + (a/tanh(lambda_*x) + b)*Derivative(y(x), x) - y(x)**2,0) ics = {} dsolve(ode,func=y(x),ics=ics)
TypeError : Invalid NaN comparison