71.1.2 problem 16

Internal problem ID [14240]
Book : Ordinary Differential Equations by Charles E. Roberts, Jr. CRC Press. 2010
Section : Chapter 1. Introduction. Exercises page 14
Problem number : 16
Date solved : Monday, March 31, 2025 at 12:13:52 PM
CAS classification : [_separable]

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

Maple. Time used: 0.001 (sec). Leaf size: 7
ode:=-y(x)+x*diff(y(x),x) = 0; 
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]==0; 
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.111 (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 \]