2.1 problem 7.1 (i)

Internal problem ID [11658]

Book: AN INTRODUCTION TO ORDINARY DIFFERENTIAL EQUATIONS by JAMES C. ROBINSON. Cambridge University Press 2004
Section: Chapter 7, Scalar autonomous ODEs. Exercises page 56
Problem number: 7.1 (i).
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_quadrature]

\[ \boxed {x^{\prime }+x=1} \]

Solution by Maple

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

dsolve(diff(x(t),t)=-x(t)+1,x(t), singsol=all)
 

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

Solution by Mathematica

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

DSolve[x'[t]==-x[t]+1,x[t],t,IncludeSingularSolutions -> True]
 

\begin{align*} x(t)\to 1+c_1 e^{-t} x(t)\to 1 \end{align*}