58.2.10 problem 6(b)

Internal problem ID [14551]
Book : Differential Equations by Shepley L. Ross. Third edition. John Willey. New Delhi. 2004.
Section : Chapter 1, section 1.3. Exercises page 22
Problem number : 6(b)
Date solved : Thursday, October 02, 2025 at 09:38:40 AM
CAS classification : [_separable]

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

With initial conditions

\begin{align*} y \left (1\right )&=0 \\ \end{align*}
Maple. Time used: 0.008 (sec). Leaf size: 5
ode:=diff(y(x),x) = y(x)^2/(x-2); 
ic:=[y(1) = 0]; 
dsolve([ode,op(ic)],y(x), singsol=all);
 
\[ y = 0 \]
Mathematica. Time used: 0.001 (sec). Leaf size: 6
ode=D[y[x],x]==y[x]^2/(x-2); 
ic={y[1]==0}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to 0 \end{align*}
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(Derivative(y(x), x) - y(x)**2/(x - 2),0) 
ics = {y(1): 0} 
dsolve(ode,func=y(x),ics=ics)
 
ValueError : Couldnt solve for initial conditions