16.3 problem 10B

Internal problem ID [5451]

Book: Schaums Outline. Theory and problems of Differential Equations, 1st edition. Frank Ayres. McGraw Hill 1952
Section: Chapter 25. Integration in series. Supplemetary problems. Page 205
Problem number: 10B.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

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

Solution by Maple

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

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

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

Solution by Mathematica

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

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

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