51.1.39 problem 39

Internal problem ID [10309]
Book : First order enumerated odes
Section : section 1
Problem number : 39
Date solved : Tuesday, September 30, 2025 at 07:19:17 PM
CAS classification : [_quadrature]

\begin{align*} \left (x -1\right ) y^{\prime }&=0 \end{align*}
Maple. Time used: 0.001 (sec). Leaf size: 5
ode:=(x-1)*diff(y(x),x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = c_1 \]
Mathematica. Time used: 0.002 (sec). Leaf size: 7
ode=(x-1)*D[y[x],x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to c_1 \end{align*}
Sympy. Time used: 0.017 (sec). Leaf size: 3
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq((x - 1)*Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{1} \]