10.21 problem 31

Internal problem ID [703]

Book: Elementary differential equations and boundary value problems, 10th ed., Boyce and DiPrima
Section: Chapter 3, Second order linear equations, section 3.6, Variation of Parameters. page 190
Problem number: 31.
ODE order: 2.
ODE degree: 1.

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

\[ \boxed {t y^{\prime \prime }-\left (t +1\right ) y^{\prime }+y={\mathrm e}^{2 t} t^{2}} \]

Solution by Maple

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

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

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

Solution by Mathematica

Time used: 0.033 (sec). Leaf size: 31

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

\[ y(t)\to \frac {1}{2} e^{2 t} (t-1)+c_1 e^t-c_2 (t+1) \]