11.17 problem 32

Internal problem ID [235]

Book: Differential equations and linear algebra, 3rd ed., Edwards and Penney
Section: Section 5.5, Nonhomogeneous equations and undetermined coefficients Page 351
Problem number: 32.
ODE order: 2.
ODE degree: 1.

CAS Maple gives this as type [[_2nd_order, _with_linear_symmetries]]

\[ \boxed {y^{\prime \prime }+3 y^{\prime }+2 y={\mathrm e}^{x}} \] With initial conditions \begin {align*} [y \left (0\right ) = 0, y^{\prime }\left (0\right ) = 3] \end {align*}

Solution by Maple

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

dsolve([diff(y(x),x$2)+3*diff(y(x),x)+2*y(x)=exp(x),y(0) = 0, D(y)(0) = 3],y(x), singsol=all)
 

\[ y \left (x \right ) = \frac {\left ({\mathrm e}^{3 x}+15 \,{\mathrm e}^{x}-16\right ) {\mathrm e}^{-2 x}}{6} \]

Solution by Mathematica

Time used: 0.025 (sec). Leaf size: 26

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

\[ y(x)\to \frac {1}{6} e^{-2 x} \left (15 e^x+e^{3 x}-16\right ) \]