6.1 problem 1

Internal problem ID [1987]

Book: Differential Equations by Alfred L. Nelson, Karl W. Folley, Max Coral. 3rd ed. DC heath. Boston. 1964
Section: Exercise 10, page 41
Problem number: 1.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

\[ \boxed {y^{\prime } x +2 y=x^{2}} \]

Solution by Maple

Time used: 0.0 (sec). Leaf size: 15

dsolve(x*diff(y(x),x)+2*y(x)=x^2,y(x), singsol=all)
 

\[ y = \frac {\frac {x^{4}}{4}+c_{1}}{x^{2}} \]

Solution by Mathematica

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

DSolve[x*y'[x]+2*y[x]==x^2,y[x],x,IncludeSingularSolutions -> True]
 

\[ y(x)\to \frac {x^2}{4}+\frac {c_1}{x^2} \]