29.14.8 problem 389

Internal problem ID [4987]
Book : Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section : Various 14
Problem number : 389
Date solved : Tuesday, March 04, 2025 at 07:40:25 PM
CAS classification : [_linear]

\begin{align*} y^{\prime } \sqrt {x^{2}+1}&=2 x -y \end{align*}

Maple. Time used: 0.003 (sec). Leaf size: 34
ode:=diff(y(x),x)*(x^2+1)^(1/2) = 2*x-y(x); 
dsolve(ode,y(x), singsol=all);
 
\[ y \left (x \right ) = \frac {x^{2}+x \sqrt {x^{2}+1}-\operatorname {arcsinh}\left (x \right )+c_{1}}{x +\sqrt {x^{2}+1}} \]
Mathematica. Time used: 0.067 (sec). Leaf size: 33
ode=D[y[x],x] Sqrt[1+x^2]==2 x -y[x]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to e^{-\text {arcsinh}(x)} \left (-\text {arcsinh}(x)+x^2+\sqrt {x^2+1} x+c_1\right ) \]
Sympy. Time used: 0.353 (sec). Leaf size: 27
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-2*x + sqrt(x**2 + 1)*Derivative(y(x), x) + y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{1} e^{- \operatorname {asinh}{\left (x \right )}} + x \operatorname {asinh}{\left (x \right )} + x - \sqrt {x^{2} + 1} \operatorname {asinh}{\left (x \right )} \]