35.3.1 problem 1

Internal problem ID [6105]
Book : Mathematical Methods in the Physical Sciences. third edition. Mary L. Boas. John Wiley. 2006
Section : Chapter 8, Ordinary differential equations. Section 3. Linear First-Order Equations. page 403
Problem number : 1
Date solved : Monday, January 27, 2025 at 01:36:20 PM
CAS classification : [[_linear, `class A`]]

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

Solution by Maple

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

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

Solution by Mathematica

Time used: 0.040 (sec). Leaf size: 21

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