12.4 problem 323

Internal problem ID [3579]

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

CAS Maple gives this as type [_linear]

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

Solution by Maple

Time used: 0.015 (sec). Leaf size: 46

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

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

Solution by Mathematica

Time used: 0.064 (sec). Leaf size: 42

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

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