6.12 problem 20

Internal problem ID [13001]

Book: DIFFERENTIAL EQUATIONS by Paul Blanchard, Robert L. Devaney, Glen R. Hall. 4th edition. Brooks/Cole. Boston, USA. 2012
Section: Chapter 1. First-Order Differential Equations. Exercises section 1.8 page 121
Problem number: 20.
ODE order: 1.
ODE degree: 1.

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

\[ \boxed {y^{\prime }+2 y=3 t^{2}+2 t -1} \]

Solution by Maple

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

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

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

Solution by Mathematica

Time used: 0.193 (sec). Leaf size: 28

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

\[ y(t)\to \frac {1}{4} \left (6 t^2-2 t-1\right )+c_1 e^{-2 t} \]