1.2 problem 2

Internal problem ID [449]

Book: Elementary differential equations and boundary value problems, 10th ed., Boyce and DiPrima
Section: Section 2.1. Page 40
Problem number: 2.
ODE order: 1.
ODE degree: 1.

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

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

Solution by Maple

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

dsolve(-2*y(t)+diff(y(t),t) = exp(2*t)*t^2,y(t), singsol=all)
 

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

Solution by Mathematica

Time used: 0.049 (sec). Leaf size: 22

DSolve[-2*y[t]+y'[t]== Exp[2*t]*t^2,y[t],t,IncludeSingularSolutions -> True]
 

\begin{align*} y(t)\to \frac {1}{3} e^{2 t} \left (t^3+3 c_1\right ) \\ \end{align*}