85.7.14 problem 4 (b)

Internal problem ID [22468]
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 : 4 (b)
Date solved : Thursday, October 02, 2025 at 08:40:23 PM
CAS classification : [_separable]

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