77.1.19 problem 35 (page 40)

Internal problem ID [17830]
Book : V.V. Stepanov, A course of differential equations (in Russian), GIFML. Moscow (1958)
Section : All content
Problem number : 35 (page 40)
Date solved : Thursday, March 13, 2025 at 10:58:38 AM
CAS classification : [_linear]

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

Maple. Time used: 0.003 (sec). Leaf size: 24
ode:=diff(y(x),x)+x/(x^2+1)*y(x) = 1/x/(x^2+1); 
dsolve(ode,y(x), singsol=all);
 
\[ y = \frac {-\operatorname {arctanh}\left (\frac {1}{\sqrt {x^{2}+1}}\right )+c_{1}}{\sqrt {x^{2}+1}} \]
Mathematica. Time used: 0.556 (sec). Leaf size: 56
ode=D[y[x],x]+x/1(1+x^2)*y[x]==1/ ( x*(1+x^2) ); 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to e^{-\frac {1}{4} x^2 \left (x^2+2\right )} \left (\int _1^x\frac {e^{\frac {1}{4} K[1]^2 \left (K[1]^2+2\right )}}{K[1]^3+K[1]}dK[1]+c_1\right ) \]
Sympy. Time used: 3.292 (sec). Leaf size: 39
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x*y(x)/(x**2 + 1) + Derivative(y(x), x) - 1/(x*(x**2 + 1)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = \frac {C_{1} + \frac {\log {\left (\sqrt {x^{2} + 1} - 1 \right )}}{2} - \frac {\log {\left (\sqrt {x^{2} + 1} + 1 \right )}}{2}}{\sqrt {x^{2} + 1}} \]