81.6.8 problem 8

Internal problem ID [18691]
Book : A short course on differential equations. By Donald Francis Campbell. Maxmillan company. London. 1907
Section : Chapter V. Homogeneous linear differential equations. Exact equations. Exercises at page 69
Problem number : 8
Date solved : Tuesday, January 28, 2025 at 12:10:28 PM
CAS classification : [[_2nd_order, _exact, _linear, _nonhomogeneous]]

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

Solution by Maple

Time used: 0.002 (sec). Leaf size: 25

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

Solution by Mathematica

Time used: 0.028 (sec). Leaf size: 29

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