5.19 problem 26

Internal problem ID [561]

Book: Elementary differential equations and boundary value problems, 10th ed., Boyce and DiPrima
Section: Section 2.6. Page 100
Problem number: 26.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [[_linear, class A]]

Solve \begin {gather*} \boxed {y^{\prime }+1-{\mathrm e}^{2 x}-y=0} \end {gather*}

Solution by Maple

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

dsolve(diff(y(x),x) = -1+exp(2*x)+y(x),y(x), singsol=all)
 

\[ y \relax (x ) = 1+{\mathrm e}^{2 x}+c_{1} {\mathrm e}^{x} \]

Solution by Mathematica

Time used: 0.056 (sec). Leaf size: 17

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

\begin{align*} y(x)\to 1+e^x \left (e^x+c_1\right ) \\ \end{align*}