2.9 problem 9

Internal problem ID [2588]

Book: Differential equations with applications and historial notes, George F. Simmons, 1971
Section: Chapter 2, section 8, page 41
Problem number: 9.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_separable]

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

Solution by Maple

Time used: 0.015 (sec). Leaf size: 11

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

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

Solution by Mathematica

Time used: 0.03 (sec). Leaf size: 18

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

\begin{align*} y(x)\to -1+c_1 (x-1) \\ y(x)\to -1 \\ \end{align*}