57.1.40 problem 40

Internal problem ID [9024]
Book : First order enumerated odes
Section : section 1
Problem number : 40
Date solved : Wednesday, March 05, 2025 at 07:14:53 AM
CAS classification : [_quadrature]

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

Maple. Time used: 0.002 (sec). Leaf size: 11
ode:=y(x)*diff(y(x),x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\begin{align*} y &= 0 \\ y &= -c_{1} \\ \end{align*}
Mathematica. Time used: 0.004 (sec). Leaf size: 12
ode=y[x]*D[y[x],x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)\to 0 \\ y(x)\to c_1 \\ \end{align*}
Sympy. Time used: 0.127 (sec). Leaf size: 3
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(y(x)*Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{1} \]