8.6.21 problem 21

Internal problem ID [791]
Book : Differential equations and linear algebra, 3rd ed., Edwards and Penney
Section : Chapter 1 review problems. Page 78
Problem number : 21
Date solved : Monday, January 27, 2025 at 03:06:51 AM
CAS classification : [_linear]

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

Solution by Maple

Time used: 0.000 (sec). Leaf size: 16

dsolve((-1+x)*y(x)+(x^2-1)*diff(y(x),x) = 1,y(x), singsol=all)
 
\[ y = \frac {\ln \left (x -1\right )+c_1}{x +1} \]

Solution by Mathematica

Time used: 0.030 (sec). Leaf size: 18

DSolve[(-1+x)*y[x]+(x^2-1)*D[y[x],x] == 1,y[x],x,IncludeSingularSolutions -> True]
 
\[ y(x)\to \frac {\log (x-1)+c_1}{x+1} \]