Internal problem ID [14219]
Book: INTRODUCTORY DIFFERENTIAL EQUATIONS. Martha L. Abell, James P. Braselton.
Fourth edition 2014. ElScAe. 2014
Section: Chapter 2. First Order Equations. Exercises 2.2, page 39
Problem number: 59.
ODE order: 1.
ODE degree: 1.
CAS Maple gives this as type [_separable]
\[ \boxed {y^{\prime }+\frac {y-2}{x -2}=0} \] With initial conditions \begin {align*} [y \left (0\right ) = 0] \end {align*}
✓ Solution by Maple
Time used: 0.016 (sec). Leaf size: 12
dsolve([diff(y(x),x)=-(y(x)-2)/(x-2),y(0) = 0],y(x), singsol=all)
\[ y \left (x \right ) = \frac {2 x}{x -2} \]
✓ Solution by Mathematica
Time used: 0.025 (sec). Leaf size: 13
DSolve[{y'[x]==-(y[x]-2)/(x-2),{y[0]==0}},y[x],x,IncludeSingularSolutions -> True]
\[ y(x)\to \frac {2 x}{x-2} \]