1.92 problem 113

Internal problem ID [2728]

Book: Differential equations for engineers by Wei-Chau XIE, Cambridge Press 2010
Section: Chapter 2. First-Order and Simple Higher-Order Differential Equations. Page 78
Problem number: 113.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_separable]

Solve \begin {gather*} \boxed {y^{\prime }-\frac {y+2}{x +1}=0} \end {gather*}

Solution by Maple

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

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

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

Solution by Mathematica

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

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

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