29.19.24 problem 537

Internal problem ID [5133]
Book : Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section : Various 19
Problem number : 537
Date solved : Sunday, March 30, 2025 at 06:43:28 AM
CAS classification : [_separable]

\begin{align*} y \left (1-x \right ) y^{\prime }+x \left (1-y\right )&=0 \end{align*}

Maple. Time used: 0.022 (sec). Leaf size: 22
ode:=y(x)*(1-x)*diff(y(x),x)+x*(1-y(x)) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = \operatorname {LambertW}\left (\frac {{\mathrm e}^{-x -1}}{\left (x -1\right ) c_1}\right )+1 \]
Mathematica. Time used: 7.14 (sec). Leaf size: 28
ode=y[x]*(1-x)*D[y[x],x]+x*(1-y[x])==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)\to 1+W\left (\frac {e^{-x-1+c_1}}{x-1}\right ) \\ y(x)\to 1 \\ \end{align*}
Sympy. Time used: 0.405 (sec). Leaf size: 17
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x*(1 - y(x)) + (1 - x)*y(x)*Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = W\left (\frac {C_{1} e^{- x - 1}}{x - 1}\right ) + 1 \]