1.12 problem 14

Internal problem ID [14945]

Book: A book of problems in ordinary differential equations. M.L. KRASNOV, A.L. KISELYOV, G.I. MARKARENKO. MIR, MOSCOW. 1983
Section: Section 1. Basic concepts and definitions. Exercises page 18
Problem number: 14.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

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

Solution by Maple

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

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

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

Solution by Mathematica

Time used: 0.038 (sec). Leaf size: 14

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

\[ y(x)\to \frac {\sin (x)+c_1}{x} \]