23.1.287 problem 281 (a)

Internal problem ID [4894]
Book : Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section : Part II. Chapter 1. THE DIFFERENTIAL EQUATION IS OF FIRST ORDER AND OF FIRST DEGREE, page 223
Problem number : 281 (a)
Date solved : Tuesday, September 30, 2025 at 08:55:52 AM
CAS classification : [_linear]

\begin{align*} \left (-x^{2}+1\right ) y^{\prime }+1&=x y \end{align*}
Maple. Time used: 0.002 (sec). Leaf size: 45
ode:=(-x^2+1)*diff(y(x),x)+1 = x*y(x); 
dsolve(ode,y(x), singsol=all);
 
\[ y = \frac {\sqrt {x^{2}-1}\, \ln \left (x +\sqrt {x^{2}-1}\right )}{\left (x -1\right ) \left (x +1\right )}+\frac {c_1}{\sqrt {x -1}\, \sqrt {x +1}} \]
Mathematica. Time used: 0.021 (sec). Leaf size: 30
ode=(1-x^2)*D[y[x],x]+1==x*y[x]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to \frac {\log \left (\sqrt {x^2-1}+x\right )+c_1}{\sqrt {x^2-1}} \end{align*}
Sympy. Time used: 0.213 (sec). Leaf size: 24
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-x*y(x) + (1 - x**2)*Derivative(y(x), x) + 1,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = \frac {C_{1} + \log {\left (x + \sqrt {x^{2} - 1} \right )}}{\sqrt {x^{2} - 1}} \]