2.12 problem 12

Internal problem ID [898]

Book: Elementary differential equations with boundary value problems. William F. Trench. Brooks/Cole 2001
Section: Chapter 2, First order equations. Linear first order. Section 2.1 Page 41
Problem number: 12.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_quadrature]

\[ \boxed {3 y+y^{\prime }=1} \]

Solution by Maple

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

dsolve(diff(y(x),x) +3*y(x)=1,y(x), singsol=all)
 

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

Solution by Mathematica

Time used: 0.022 (sec). Leaf size: 24

DSolve[y'[x] +3*y[x]==1,y[x],x,IncludeSingularSolutions -> True]
 

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