1.5 problem 5

Internal problem ID [2039]

Book: Differential equations and linear algebra, Stephen W. Goode, second edition, 2000
Section: 1.4, page 36
Problem number: 5.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_separable]

Solve \begin {gather*} \boxed {y-\left (-2+x \right ) y^{\prime }=0} \end {gather*}

Solution by Maple

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

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

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

Solution by Mathematica

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

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

\begin{align*} y(x)\to c_1 (x-2) \\ y(x)\to 0 \\ \end{align*}