64.2.10 problem 6(b)

Internal problem ID [13199]
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 : Monday, March 31, 2025 at 07:37:12 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,ic],y(x), singsol=all);
 
\[ y = 0 \]
Mathematica. Time used: 0.002 (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]
 
\[ y(x)\to 0 \]
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