1.3 problem 3

Internal problem ID [4569]

Book: Engineering Mathematics. By K. A. Stroud. 5th edition. Industrial press Inc. NY. 2001
Section: Program 24. First order differential equations. Test excercise 24. page 1067
Problem number: 3.
ODE order: 1.
ODE degree: 1.

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

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

Solution by Maple

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

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

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

Solution by Mathematica

Time used: 0.044 (sec). Leaf size: 23

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

\begin{align*} y(x)\to \frac {e^{3 x}}{5}+c_1 e^{-2 x} \\ \end{align*}