1.92 problem 113

Internal problem ID [3237]

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]

\[ \boxed {y^{\prime }-\frac {2+y}{x +1}=0} \]

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 \left (x \right ) = -2+c_{1} \left (x +1\right ) \]

Solution by Mathematica

Time used: 0.044 (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*}