5.9 problem 108

Internal problem ID [15015]

Book: A book of problems in ordinary differential equations. M.L. KRASNOV, A.L. KISELYOV, G.I. MARKARENKO. MIR, MOSCOW. 1983
Section: Section 5. Homogeneous equations. Exercises page 44
Problem number: 108.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

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

Solution by Maple

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

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

\[ y = \left (-1+x \right ) \ln \left (-1+x \right )+1+c_{1} \left (-1+x \right ) \]

Solution by Mathematica

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

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

\[ y(x)\to (x-1) \left (\frac {1}{x-1}+\log (x-1)+c_1\right ) \]