71.13.3 problem 3

Internal problem ID [14523]
Book : Ordinary Differential Equations by Charles E. Roberts, Jr. CRC Press. 2010
Section : Chapter 5. The Laplace Transform Method. Exercises 5.2, page 248
Problem number : 3
Date solved : Tuesday, January 28, 2025 at 06:42:57 AM
CAS classification : [_quadrature]

\begin{align*} y^{\prime }+2 y&=4 \end{align*}

Using Laplace method

Solution by Maple

Time used: 9.592 (sec). Leaf size: 15

dsolve(diff(y(x),x)+2*y(x)=4,y(x), singsol=all)
 
\[ y = \left (y \left (0\right )-2\right ) {\mathrm e}^{-2 x}+2 \]

Solution by Mathematica

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

DSolve[D[y[x],x]+2*y[x]==4,y[x],x,IncludeSingularSolutions -> True]
 
\begin{align*} y(x)\to 2+c_1 e^{-2 x} \\ y(x)\to 2 \\ \end{align*}