7.4.1 problem 1

Internal problem ID [73]
Book : Elementary Differential Equations. By C. Henry Edwards, David E. Penney and David Calvis. 6th edition. 2008
Section : Chapter 1. First order differential equations. Section 1.5 (linear equations). Problems at page 54
Problem number : 1
Date solved : Friday, February 07, 2025 at 07:48:19 AM
CAS classification : [_quadrature]

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

With initial conditions

\begin{align*} y \left (0\right )&=0 \end{align*}

Solution by Maple

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

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

Solution by Mathematica

Time used: 0.023 (sec). Leaf size: 14

DSolve[{D[y[x],x]+ y[x]==2,{y[0]==0}},y[x],x,IncludeSingularSolutions -> True]
 
\[ y(x)\to 2-2 e^{-x} \]