40.13.2 problem 22

Internal problem ID [6756]
Book : Schaums Outline. Theory and problems of Differential Equations, 1st edition. Frank Ayres. McGraw Hill 1952
Section : Chapter 18. Linear equations with variable coefficients (Equations of second order). Supplemetary problems. Page 120
Problem number : 22
Date solved : Monday, January 27, 2025 at 02:27:37 PM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

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

Solution by Maple

Time used: 0.005 (sec). Leaf size: 17

dsolve((1+x^2)*diff(y(x),x$2)-2*x*diff(y(x),x)+2*y(x)=2,y(x), singsol=all)
 
\[ y = c_1 \,x^{2}+c_2 x -c_1 +1 \]

Solution by Mathematica

Time used: 0.044 (sec). Leaf size: 22

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