57.1.38 problem 38

Internal problem ID [9022]
Book : First order enumerated odes
Section : section 1
Problem number : 38
Date solved : Wednesday, March 05, 2025 at 07:14:51 AM
CAS classification : [_quadrature]

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

Maple. Time used: 0.002 (sec). Leaf size: 8
ode:=x*diff(y(x),x) = sin(x); 
dsolve(ode,y(x), singsol=all);
 
\[ y = \operatorname {Si}\left (x \right )+c_{1} \]
Mathematica. Time used: 0.008 (sec). Leaf size: 10
ode=x*D[y[x],x]==Sin[x]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to \text {Si}(x)+c_1 \]
Sympy. Time used: 0.378 (sec). Leaf size: 7
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x*Derivative(y(x), x) - sin(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{1} + \operatorname {Si}{\left (x \right )} \]