6.2 problem Ex 2

Internal problem ID [11154]

Book: An elementary treatise on differential equations by Abraham Cohen. DC heath publishers. 1906
Section: Chapter 2, differential equations of the first order and the first degree. Article 13. Linear equations of first order. Page 19
Problem number: Ex 2.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

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

Solution by Maple

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

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

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

Solution by Mathematica

Time used: 0.078 (sec). Leaf size: 25

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

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