5.7 problem 7

Internal problem ID [11644]

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: 7.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

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

Solution by Maple

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

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

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

Solution by Mathematica

Time used: 0.037 (sec). Leaf size: 28

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

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