50.17.14 problem 2(a) solving directly

Internal problem ID [8085]
Book : Differential Equations: Theory, Technique, and Practice by George Simmons, Steven Krantz. McGraw-Hill NY. 2007. 1st Edition.
Section : Chapter 4. Power Series Solutions and Special Functions. Section 4.2. Series Solutions of First-Order Differential Equations Page 162
Problem number : 2(a) solving directly
Date solved : Wednesday, March 05, 2025 at 05:29:32 AM
CAS classification : [_separable]

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

Maple. Time used: 0.002 (sec). Leaf size: 7
ode:=x*diff(y(x),x) = y(x); 
dsolve(ode,y(x), singsol=all);
 
\[ y = c_{1} x \]
Mathematica. Time used: 0.022 (sec). Leaf size: 14
ode=x*D[y[x],x]==y[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.110 (sec). Leaf size: 5
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x*Derivative(y(x), x) - y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{1} x \]