84.9.1 problem 5.1

Internal problem ID [22124]
Book : Schaums outline series. Differential Equations By Richard Bronson. 1973. McGraw-Hill Inc. ISBN 0-07-008009-7
Section : Chapter 5. Homogeneous differential equations. Solved problems. Page 19
Problem number : 5.1
Date solved : Thursday, October 02, 2025 at 08:25:39 PM
CAS classification : [_linear]

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