5.6 problem 8

Internal problem ID [2610]

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

CAS Maple gives this as type [_linear]

\[ \boxed {y^{\prime } x +y-x \cos \left (x \right )=0} \]

Solution by Maple

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

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

\[ y \left (x \right ) = \frac {\cos \left (x \right )+x \sin \left (x \right )+c_{1}}{x} \]

Solution by Mathematica

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

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

\begin{align*} y(x)\to \sin (x)+\frac {\cos (x)+c_1}{x} \\ \end{align*}