12.6 problem 325

Internal problem ID [3073]

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

CAS Maple gives this as type [_separable]

Solve \begin {gather*} \boxed {\left (x -a \right ) \left (x -b \right ) y^{\prime }+k \left (y-a \right ) \left (y-b \right )=0} \end {gather*}

Solution by Maple

Time used: 0.031 (sec). Leaf size: 131

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

\[ y \relax (x ) = \frac {b \left (\frac {-x +b}{-x +a}\right )^{-k} {\mathrm e}^{a k c_{1}-b k c_{1}}+\left (x -b \right )^{-k} \left (x -a \right )^{k} a \,{\mathrm e}^{a k c_{1}-b k c_{1}}-\left (x -b \right )^{-k} \left (x -a \right )^{k} b \,{\mathrm e}^{a k c_{1}-b k c_{1}}-b}{-1+\left (\frac {-x +b}{-x +a}\right )^{-k} {\mathrm e}^{a k c_{1}-b k c_{1}}} \]

Solution by Mathematica

Time used: 1.662 (sec). Leaf size: 68

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

\begin{align*} y(x)\to a+\frac {(b-a) e^{a c_1} (x-b)^k}{e^{a c_1} (x-b)^k-e^{b c_1} (x-a)^k} \\ y(x)\to a \\ y(x)\to b \\ \end{align*}