63.1.130 problem 189

Internal problem ID [15570]
Book : DIFFERENTIAL and INTEGRAL CALCULUS. VOL I. by N. PISKUNOV. MIR PUBLISHERS, Moscow 1969.
Section : Chapter 8. Differential equations. Exercises page 595
Problem number : 189
Date solved : Thursday, October 02, 2025 at 10:20:10 AM
CAS classification : [[_homogeneous, `class C`], _rational, [_Abel, `2nd type`, `class A`]]

\begin{align*} 2 x +2 y-1+\left (x +y-2\right ) y^{\prime }&=0 \end{align*}
Maple. Time used: 0.018 (sec). Leaf size: 21
ode:=2*x+2*y(x)-1+(x+y(x)-2)*diff(y(x),x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = -x -3 \operatorname {LambertW}\left (-\frac {c_1 \,{\mathrm e}^{-\frac {1}{3}+\frac {x}{3}}}{3}\right )-1 \]
Mathematica. Time used: 2.228 (sec). Leaf size: 35
ode=(2*x+2*y[x]-1)+(x+y[x]-2)*D[y[x],x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to -3 W\left (-e^{\frac {x}{3}-1+c_1}\right )-x-1\\ y(x)&\to -x-1 \end{align*}
Sympy. Time used: 1.868 (sec). Leaf size: 97
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(2*x + (x + y(x) - 2)*Derivative(y(x), x) + 2*y(x) - 1,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ \left [ y{\left (x \right )} = - x - 3 W\left (\frac {\sqrt [3]{C_{1} e^{x}}}{3 e^{\frac {1}{3}}}\right ) - 1, \ y{\left (x \right )} = - x - 3 W\left (- \frac {\sqrt [3]{C_{1} e^{x}} \left (1 - \sqrt {3} i\right )}{6 e^{\frac {1}{3}}}\right ) - 1, \ y{\left (x \right )} = - x - 3 W\left (- \frac {\sqrt [3]{C_{1} e^{x}} \left (1 + \sqrt {3} i\right )}{6 e^{\frac {1}{3}}}\right ) - 1\right ] \]