1.9 problem 9

Internal problem ID [2043]

Book: Differential equations and linear algebra, Stephen W. Goode, second edition, 2000
Section: 1.4, page 36
Problem number: 9.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_separable]

Solve \begin {gather*} \boxed {y^{\prime }-\frac {x \left (-1+y^{2}\right )}{2 \left (-2+x \right ) \left (x -1\right )}=0} \end {gather*}

Solution by Maple

Time used: 0.01 (sec). Leaf size: 21

dsolve(diff(y(x),x)=(x*( y(x)^2-1))/(2*(x-2)*(x-1)),y(x), singsol=all)
 

\[ y \relax (x ) = -\tanh \left (-\frac {\ln \left (x -1\right )}{2}+\ln \left (-2+x \right )+\frac {c_{1}}{2}\right ) \]

Solution by Mathematica

Time used: 0.614 (sec). Leaf size: 51

DSolve[y'[x]==(x*( y[x]^2-1))/(2*(x-2)*(x-1)),y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to -\frac {x+e^{2 c_1} (x-2)^2-1}{-x+e^{2 c_1} (x-2)^2+1} \\ y(x)\to -1 \\ y(x)\to 1 \\ \end{align*}