6.11 problem 157

Internal problem ID [2905]

Book: Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section: Various 6
Problem number: 157.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

Solve \begin {gather*} \boxed {y^{\prime } x +2+\left (3-x \right ) y=0} \end {gather*}

Solution by Maple

Time used: 0.004 (sec). Leaf size: 27

dsolve(x*diff(y(x),x)+2+(3-x)*y(x) = 0,y(x), singsol=all)
 

\[ y \relax (x ) = \frac {2}{x}+\frac {4}{x^{2}}+\frac {4}{x^{3}}+\frac {{\mathrm e}^{x} c_{1}}{x^{3}} \]

Solution by Mathematica

Time used: 0.046 (sec). Leaf size: 23

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

\begin{align*} y(x)\to \frac {2 x (x+2)+c_1 e^x+4}{x^3} \\ \end{align*}