65.4.1 problem 9.1 (i)

Internal problem ID [13731]
Book : AN INTRODUCTION TO ORDINARY DIFFERENTIAL EQUATIONS by JAMES C. ROBINSON. Cambridge University Press 2004
Section : Chapter 9, First order linear equations and the integrating factor. Exercises page 86
Problem number : 9.1 (i)
Date solved : Tuesday, January 28, 2025 at 06:00:07 AM
CAS classification : [_linear]

\begin{align*} y^{\prime }+\frac {y}{x}&=x^{2} \end{align*}

Solution by Maple

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

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

Solution by Mathematica

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

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