6.4.1 problem 1

Internal problem ID [1608]
Book : Elementary differential equations with boundary value problems. William F. Trench. Brooks/Cole 2001
Section : Chapter 2, First order equations. Existence and Uniqueness of Solutions of Nonlinear Equations. Section 2.3 Page 60
Problem number : 1
Date solved : Tuesday, September 30, 2025 at 04:39:51 AM
CAS classification : [_Riccati]

\begin{align*} y^{\prime }&=\frac {x^{2}+y^{2}}{\sin \left (x \right )} \end{align*}
Maple
ode:=diff(y(x),x) = (x^2+y(x)^2)/sin(x); 
dsolve(ode,y(x), singsol=all);
 
\[ \text {No solution found} \]
Mathematica
ode=D[y[x],x]==(x^2+y[x]^2)/Sin[x]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 

Not solved

Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq((-x**2 - y(x)**2)/sin(x) + Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
NotImplementedError : The given ODE -(x**2 + y(x)**2)/sin(x) + Derivative(y(x), x) cannot be solved by the factorable group method