8.24 problem 229

Internal problem ID [3485]

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

CAS Maple gives this as type [_linear]

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

Solution by Maple

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

dsolve((a+x)*diff(y(x),x) = b*x+y(x),y(x), singsol=all)
 

\[ y \left (x \right ) = \left (b \left (\ln \left (x +a \right )+\frac {a}{x +a}\right )+c_{1} \right ) \left (x +a \right ) \]

Solution by Mathematica

Time used: 0.036 (sec). Leaf size: 26

DSolve[(a+x) y'[x]==b x+ y[x],y[x],x,IncludeSingularSolutions -> True]
 

\[ y(x)\to (a+x) \left (\frac {a b}{a+x}+b \log (a+x)+c_1\right ) \]