23.1.123 problem 126

Internal problem ID [4731]
Book : Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section : Part II. Chapter 1. THE DIFFERENTIAL EQUATION IS OF FIRST ORDER AND OF FIRST DEGREE, page 223
Problem number : 127
Date solved : Tuesday, September 30, 2025 at 08:20:26 AM
CAS classification : [[_homogeneous, `class C`], _dAlembert]

\begin{align*} y^{\prime }&=a +b \sin \left (A x +B y\right ) \end{align*}
Maple. Time used: 0.007 (sec). Leaf size: 44
ode:=diff(y(x),x) = a+b*sin(y(x)); 
dsolve(ode,y(x), singsol=all);
 
\[ y = 2 \arctan \left (\frac {-b +\tan \left (\frac {\sqrt {a^{2}-b^{2}}\, \left (c_1 +x \right )}{2}\right ) \sqrt {a^{2}-b^{2}}}{a}\right ) \]
Mathematica. Time used: 0.138 (sec). Leaf size: 40
ode=D[y[x],x]==a+b*Sin[y[x]]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to \text {InverseFunction}\left [\int _1^{\text {$\#$1}}\frac {1}{a+b \sin (K[1])}dK[1]\&\right ][x+c_1]\\ y(x)&\to -\arcsin \left (\frac {a}{b}\right ) \end{align*}
Sympy
from sympy import * 
x = symbols("x") 
a = symbols("a") 
b = symbols("b") 
y = Function("y") 
ode = Eq(-a - b*sin(y(x)) + Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
TypeError : < not supported between instances of NoneType and y