5.8 problem 8

Internal problem ID [11645]

Book: Differential Equations by Shepley L. Ross. Third edition. John Willey. New Delhi. 2004.
Section: Chapter 2, section 2.3 (Linear equations). Exercises page 56
Problem number: 8.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

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

Solution by Maple

Time used: 0.016 (sec). Leaf size: 24

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

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

Solution by Mathematica

Time used: 0.041 (sec). Leaf size: 34

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

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