26.5.17 problem 21

Internal problem ID [4291]
Book : Differential equations with applications and historial notes, George F. Simmons. Second edition. 1971
Section : Chapter 2, End of chapter, page 61
Problem number : 21
Date solved : Monday, January 27, 2025 at 08:49:21 AM
CAS classification : [_linear]

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

Solution by Maple

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

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

Solution by Mathematica

Time used: 0.033 (sec). Leaf size: 19

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