15.1.4 problem 4

Internal problem ID [2844]
Book : Differential Equations by Alfred L. Nelson, Karl W. Folley, Max Coral. 3rd ed. DC heath. Boston. 1964
Section : Exercise 5, page 21
Problem number : 4
Date solved : Sunday, March 30, 2025 at 12:33:55 AM
CAS classification : [_separable]

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

Maple. Time used: 0.001 (sec). Leaf size: 9
ode:=y(x)+x*diff(y(x),x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = \frac {c_1}{x} \]
Mathematica. Time used: 0.024 (sec). Leaf size: 16
ode=y[x]+x*D[y[x],x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)\to \frac {c_1}{x} \\ y(x)\to 0 \\ \end{align*}
Sympy. Time used: 0.134 (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 )} = \frac {C_{1}}{x} \]