29.15.34 problem 442

Internal problem ID [5040]
Book : Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section : Various 15
Problem number : 442
Date solved : Sunday, March 30, 2025 at 06:31:38 AM
CAS classification : [[_homogeneous, `class C`], _rational, [_Abel, `2nd type`, `class A`]]

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

Maple. Time used: 0.079 (sec). Leaf size: 29
ode:=(x+y(x)+1)*diff(y(x),x)+1+4*x+3*y(x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = -3-\frac {\left (x -2\right ) \left (2 \operatorname {LambertW}\left (c_1 \left (x -2\right )\right )+1\right )}{\operatorname {LambertW}\left (c_1 \left (x -2\right )\right )} \]
Mathematica. Time used: 1.26 (sec). Leaf size: 159
ode=(1+x+y[x])D[y[x],x]+1+4 x+3 y[x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ \text {Solve}\left [\frac {(-2)^{2/3} \left (-2 x \log \left (\frac {3 (-2)^{2/3} (y(x)+2 x-1)}{y(x)+x+1}\right )+(2 x-1) \log \left (-\frac {3 (-2)^{2/3} (x-2)}{y(x)+x+1}\right )+\log \left (\frac {3 (-2)^{2/3} (y(x)+2 x-1)}{y(x)+x+1}\right )+y(x) \left (\log \left (-\frac {3 (-2)^{2/3} (x-2)}{y(x)+x+1}\right )-\log \left (\frac {3 (-2)^{2/3} (y(x)+2 x-1)}{y(x)+x+1}\right )+1\right )+x+1\right )}{9 (y(x)+2 x-1)}=\frac {1}{9} (-2)^{2/3} \log (x-2)+c_1,y(x)\right ] \]
Sympy. Time used: 1.193 (sec). Leaf size: 19
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(4*x + (x + y(x) + 1)*Derivative(y(x), x) + 3*y(x) + 1,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = - 2 x + e^{C_{1} + W\left (\left (2 - x\right ) e^{- C_{1}}\right )} + 1 \]