Internal problem ID [14972]
Book: A book of problems in ordinary differential equations. M.L. KRASNOV, A.L. KISELYOV,
G.I. MARKARENKO. MIR, MOSCOW. 1983
Section: Section 3. The method of successive approximation. Exercises page 31
Problem number: 45.
ODE order: 1.
ODE degree: 1.
CAS Maple gives this as type [_linear]
\[ \boxed {y^{\prime } x +y=2 x} \] With initial conditions \begin {align*} [y \left (1\right ) = 2] \end {align*}
✓ Solution by Maple
Time used: 0.0 (sec). Leaf size: 9
dsolve([x*diff(y(x),x)=2*x-y(x),y(1) = 2],y(x), singsol=all)
\[ y \left (x \right ) = x +\frac {1}{x} \]
✓ Solution by Mathematica
Time used: 0.024 (sec). Leaf size: 10
DSolve[{x*y'[x]==2*x-y[x],{y[1]==2}},y[x],x,IncludeSingularSolutions -> True]
\[ y(x)\to x+\frac {1}{x} \]