10.5.19 problem 26

Internal problem ID [1211]
Book : Elementary differential equations and boundary value problems, 10th ed., Boyce and DiPrima
Section : Section 2.6. Page 100
Problem number : 26
Date solved : Monday, January 27, 2025 at 04:45:22 AM
CAS classification : [[_linear, `class A`]]

\begin{align*} y^{\prime }&=-1+{\mathrm e}^{2 x}+y \end{align*}

Solution by Maple

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

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

Solution by Mathematica

Time used: 0.048 (sec). Leaf size: 18

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