5.10 problem 13

Internal problem ID [2614]

Book: Differential equations with applications and historial notes, George F. Simmons, 1971
Section: Chapter 2, End of chapter, page 61
Problem number: 13.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

Solve \begin {gather*} \boxed {y^{\prime } x +y-\cos \relax (x ) x^{2}=0} \end {gather*}

Solution by Maple

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

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

\[ y \relax (x ) = \frac {x^{2} \sin \relax (x )-2 \sin \relax (x )+2 x \cos \relax (x )+c_{1}}{x} \]

Solution by Mathematica

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

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

\begin{align*} y(x)\to \frac {\left (x^2-2\right ) \sin (x)+2 x \cos (x)+c_1}{x} \\ \end{align*}