29.15.24 problem 432

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

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

Maple. Time used: 0.787 (sec). Leaf size: 66
ode:=(1+y(x))*diff(y(x),x) = x+y(x); 
dsolve(ode,y(x), singsol=all);
 
\[ -\frac {\ln \left (\frac {y^{2}+\left (-x +3\right ) y-x^{2}+x +1}{\left (x -1\right )^{2}}\right )}{2}-\frac {\sqrt {5}\, \operatorname {arctanh}\left (\frac {\left (-3-2 y+x \right ) \sqrt {5}}{5 x -5}\right )}{5}-\ln \left (x -1\right )-c_1 = 0 \]
Mathematica. Time used: 0.098 (sec). Leaf size: 71
ode=(1+y[x])D[y[x],x]==x+y[x]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ \text {Solve}\left [\frac {1}{2} \log \left (\frac {x^2-y(x)^2+(x-3) y(x)-x-1}{(x-1)^2}\right )+\log (1-x)=\frac {\text {arctanh}\left (\frac {y(x)+2 x-1}{\sqrt {5} (y(x)+1)}\right )}{\sqrt {5}}+c_1,y(x)\right ] \]
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-x + (y(x) + 1)*Derivative(y(x), x) - y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
Timed Out