6.11 problem 157

Internal problem ID [3413]

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]

\[ \boxed {x y^{\prime }+\left (3-x \right ) y=-2} \]

Solution by Maple

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

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

\[ y \left (x \right ) = \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.041 (sec). Leaf size: 25

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

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