72.16.31 problem 32

Internal problem ID [14927]
Book : DIFFERENTIAL EQUATIONS by Paul Blanchard, Robert L. Devaney, Glen R. Hall. 4th edition. Brooks/Cole. Boston, USA. 2012
Section : Chapter 4. Forcing and Resonance. Section 4.1 page 399
Problem number : 32
Date solved : Tuesday, January 28, 2025 at 07:20:54 AM
CAS classification : [[_2nd_order, _missing_y]]

\begin{align*} y^{\prime \prime }+2 y^{\prime }&=3 t +2 \end{align*}

With initial conditions

\begin{align*} y \left (0\right )&=0\\ y^{\prime }\left (0\right )&=0 \end{align*}

Solution by Maple

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

dsolve([diff(y(t),t$2)+2*diff(y(t),t)=3*t+2,y(0) = 0, D(y)(0) = 0],y(t), singsol=all)
 
\[ y = \frac {3 t^{2}}{4}+\frac {{\mathrm e}^{-2 t}}{8}+\frac {t}{4}-\frac {1}{8} \]

Solution by Mathematica

Time used: 4.976 (sec). Leaf size: 124

DSolve[{D[y[t],{t,2}]+2*D[y[t],t]==3*t+2,{y[0]==0,Derivative[1][y][0] ==0}},y[t],t,IncludeSingularSolutions -> True]
 
\[ y(t)\to \int _1^te^{-2 K[2]} \left (\int _1^{K[2]}e^{2 K[1]} (3 K[1]+2)dK[1]-\int _1^0e^{2 K[1]} (3 K[1]+2)dK[1]\right )dK[2]-\int _1^0e^{-2 K[2]} \left (\int _1^{K[2]}e^{2 K[1]} (3 K[1]+2)dK[1]-\int _1^0e^{2 K[1]} (3 K[1]+2)dK[1]\right )dK[2] \]