29.5.11 problem 127

Internal problem ID [4728]
Book : Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section : Various 5
Problem number : 127
Date solved : Sunday, March 30, 2025 at 03:50:31 AM
CAS classification : [`y=_G(x,y')`]

\begin{align*} y^{\prime }+f \left (x \right )+g \left (x \right ) \tan \left (y\right )&=0 \end{align*}

Maple
ode:=diff(y(x),x)+f(x)+g(x)*tan(y(x)) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ \text {No solution found} \]
Mathematica
ode=D[y[x],x]+f[x]+g[x] Tan[ y[x]]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 

Not solved

Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(f(x) + g(x)*tan(y(x)) + Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
IndexError : Index out of range: a[1]