56.1.26 problem 27

Internal problem ID [8738]
Book : Own collection of miscellaneous problems
Section : section 1.0
Problem number : 27
Date solved : Wednesday, March 05, 2025 at 06:43:28 AM
CAS classification : [_quadrature]

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

Maple. Time used: 0.001 (sec). Leaf size: 5
ode:=1/(x+y(x))*diff(y(x),x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = c_{1} \]
Mathematica. Time used: 0.002 (sec). Leaf size: 7
ode=1/(x+y[x])*D[y[x],x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to c_1 \]
Sympy. Time used: 0.033 (sec). Leaf size: 3
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(Derivative(y(x), x)/(x + y(x)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{1} \]