83.8.20 problem 21

Internal problem ID [19075]
Book : A Text book for differentional equations for postgraduate students by Ray and Chaturvedi. First edition, 1958. BHASKAR press. INDIA
Section : Chapter II. Equations of first order and first degree. Misc examples on chapter II at page 25
Problem number : 21
Date solved : Monday, March 31, 2025 at 06:44:20 PM
CAS classification : [[_homogeneous, `class C`], _rational, [_Abel, `2nd type`, `class A`]]

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

Maple. Time used: 0.025 (sec). Leaf size: 23
ode:=(2*x+2*y(x)+3)*diff(y(x),x) = x+y(x)+1; 
dsolve(ode,y(x), singsol=all);
 
\[ y = \frac {\operatorname {LambertW}\left (2 \,{\mathrm e}^{9 x +8-9 c_1}\right )}{6}-x -\frac {4}{3} \]
Mathematica. Time used: 3.862 (sec). Leaf size: 37
ode=(2*x+2*y[x]+3)*D[y[x],x]==x+y[x]+1; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)\to \frac {1}{6} \left (W\left (-e^{9 x-1+c_1}\right )-6 x-8\right ) \\ y(x)\to -x-\frac {4}{3} \\ \end{align*}
Sympy. Time used: 0.977 (sec). Leaf size: 19
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-x + (2*x + 2*y(x) + 3)*Derivative(y(x), x) - y(x) - 1,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = - x + \frac {W\left (C_{1} e^{9 x + 8}\right )}{6} - \frac {4}{3} \]