78.1.16 problem 2 (b)

Internal problem ID [18000]
Book : DIFFERENTIAL EQUATIONS WITH APPLICATIONS AND HISTORICAL NOTES by George F. Simmons. 3rd edition. 2017. CRC press, Boca Raton FL.
Section : Chapter 1. The Nature of Differential Equations. Separable Equations. Section 2. Problems at page 9
Problem number : 2 (b)
Date solved : Monday, March 31, 2025 at 04:56:07 PM
CAS classification : [_quadrature]

\begin{align*} x y^{\prime }&=1 \end{align*}

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