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`]]

\[ \boxed {y^{\prime }+1-{\mathrm e}^{2 x}-y=0} \]

Solution by Maple

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

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

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

Solution by Mathematica

Time used: 0.046 (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*}