Internal problem ID [11988]
Book: AN INTRODUCTION TO ORDINARY DIFFERENTIAL EQUATIONS by JAMES C.
ROBINSON. Cambridge University Press 2004
Section: Chapter 8, Separable equations. Exercises page 72
Problem number: 8.2 .
ODE order: 1.
ODE degree: 1.
CAS Maple gives this as type [_quadrature]
\[ \boxed {x^{\prime }+p x=q} \]
✓ Solution by Maple
Time used: 0.0 (sec). Leaf size: 18
dsolve(diff(x(t),t)+p*x(t)=q,x(t), singsol=all)
\[ x \left (t \right ) = \frac {{\mathrm e}^{-p t} c_{1} p +q}{p} \]
✓ Solution by Mathematica
Time used: 0.063 (sec). Leaf size: 29
DSolve[x'[t]+p*x[t]==q,x[t],t,IncludeSingularSolutions -> True]
\begin{align*} x(t)\to \frac {q}{p}+c_1 e^{-p t} \\ x(t)\to \frac {q}{p} \\ \end{align*}