85.7.9 problem 1 (i)

Internal problem ID [22463]
Book : Applied Differential Equations. By Murray R. Spiegel. 3rd edition. 1980. Pearson. ISBN 978-0130400970
Section : Chapter 1. Differential equations in general. A Exercises at page 32
Problem number : 1 (i)
Date solved : Thursday, October 02, 2025 at 08:40:17 PM
CAS classification : [_separable]

\begin{align*} y^{\prime }&=y \csc \left (x \right ) \end{align*}

With initial conditions

\begin{align*} y \left (0\right )&=1 \\ \end{align*}
Maple
ode:=diff(y(x),x) = y(x)*csc(x); 
ic:=[y(0) = 1]; 
dsolve([ode,op(ic)],y(x), singsol=all);
 
\[ \text {No solution found} \]
Mathematica
ode=D[y[x],{x,1}]==y[x]*Csc[x]; 
ic={y[0]==1}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 

{}

Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-y(x)*csc(x) + Derivative(y(x), x),0) 
ics = {y(0): 1} 
dsolve(ode,func=y(x),ics=ics)
 
ValueError : Couldnt solve for initial conditions