6.10 problem 10

Internal problem ID [11684]

Book: Differential Equations by Shepley L. Ross. Third edition. John Willey. New Delhi. 2004.
Section: Chapter 2, Miscellaneous Review. Exercises page 60
Problem number: 10.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

\[ \boxed {\left (1+x \right ) y^{\prime }+y x={\mathrm e}^{-x}} \]

Solution by Maple

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

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

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

Solution by Mathematica

Time used: 0.062 (sec). Leaf size: 19

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

\[ y(x)\to e^{-x} (-1+c_1 (x+1)) \]