5.10 problem 10.5

Internal problem ID [10665]

Book: AN INTRODUCTION TO ORDINARY DIFFERENTIAL EQUATIONS by JAMES C. ROBINSON. Cambridge University Press 2004
Section: Chapter 10, Two tricks for nonlinear equations. Exercises page 97
Problem number: 10.5.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_quadrature]

\[ \boxed {x^{\prime }-k x+x^{2}=0} \]

Solution by Maple

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

dsolve(diff(x(t),t)=k*x(t)-x(t)^2,x(t), singsol=all)
 

\[ x \left (t \right ) = \frac {k}{1+{\mathrm e}^{-k t} c_{1} k} \]

Solution by Mathematica

Time used: 0.598 (sec). Leaf size: 31

DSolve[x'[t]==k*x[t]-x[t]^2,x[t],t,IncludeSingularSolutions -> True]
 

\begin{align*} x(t)\to k \left (1+\frac {1}{-1+e^{k (t+c_1)}}\right ) \\ x(t)\to 0 \\ x(t)\to k \\ \end{align*}