28.1.92 problem 113

Internal problem ID [4398]
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
Date solved : Monday, January 27, 2025 at 09:14:18 AM
CAS classification : [_separable]

\begin{align*} y^{\prime }&=\frac {y+2}{1+x} \end{align*}

Solution by Maple

Time used: 0.001 (sec). Leaf size: 10

dsolve(diff(y(x),x)= (y(x)+2)/(x+1),y(x), singsol=all)
 
\[ y \left (x \right ) = c_{1} x +c_{1} -2 \]

Solution by Mathematica

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

DSolve[D[y[x],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*}