Internal
problem
ID
[13341]
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
:
23
Date
solved
:
Friday, December 19, 2025 at 03:10:39 AM
CAS
classification
:
[_Riccati]
ode:=diff(y(x),x) = y(x)^2-lambda^2+3*lambda*a-a*(a+lambda)*coth(lambda*x)^2; dsolve(ode,y(x), singsol=all);
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 Special trying Riccati sub-methods: trying Riccati_symmetries trying Riccati to 2nd Order -> Calling odsolve with the ODE, diff(diff(y(x),x),x) = (a^2*coth(lambda*x)^ 2+a*coth(lambda*x)^2*lambda-3*a*lambda+lambda^2)*y(x), y(x) *** Sublevel 2 *** Methods for second order ODEs: --- Trying classification methods --- trying a symmetry of the form [xi=0, eta=F(x)] checking if the LODE is missing y -> Heun: Equivalence to the GHE or one of its 4 confluent cases under a \ power @ Moebius -> trying a solution of the form r0(x) * Y + r1(x) * Y where Y = exp(int\ (r(x), dx)) * 2F1([a1, a2], [b1], f) -> Trying changes of variables to rationalize or make the ODE simpler 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 Reducible group (found an exponential solution) Group is reducible, not completely reducible Solution has integrals. Trying a special function solution free of \ integrals... -> Trying a solution in terms of special functions: -> Bessel -> elliptic -> Legendre <- Legendre successful <- special function solution successful -> Trying to convert hypergeometric functions to elementary form\ ... <- elementary form could result into a too large expression - re\ turning special function form of solution, free of uncomputed integrals <- Kovacics algorithm successful Change of variables used: [x = arccoth(t)/lambda] Linear ODE actually solved: (-a^2*t^2-a*lambda*t^2+3*a*lambda-lambda^2)*u(t)+(2*lambda^2*t^3-2*\ lambda^2*t)*diff(u(t),t)+(lambda^2*t^4-2*lambda^2*t^2+lambda^2)*diff(diff(u(t),\ t),t) = 0 <- change of variables successful <- Riccati to 2nd Order successful
Maple step by step
ode=D[y[x],x]==y[x]^2-\[Lambda]^2+3*a*\[Lambda]-a*(a+\[Lambda])*Coth[\[Lambda]*x]^2; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") a = symbols("a") lambda_ = symbols("lambda_") y = Function("y") ode = Eq(-3*a*lambda_ + a*(a + lambda_)/tanh(lambda_*x)**2 + lambda_**2 - y(x)**2 + Derivative(y(x), x),0) ics = {} dsolve(ode,func=y(x),ics=ics)
NotImplementedError : The given ODE a**2/tanh(lambda_*x)**2 - 3*a*lambda_ + a*lambda_/tanh(lambda_*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', 'lie_group')