6.14 problem 22

Internal problem ID [13003]

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: 22.
ODE order: 1.
ODE degree: 1.

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

\[ \boxed {y^{\prime }+y=t^{3}+\sin \left (3 t \right )} \]

Solution by Maple

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

dsolve(diff(y(t),t)+y(t)=t^3+sin(3*t),y(t), singsol=all)
 

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

Solution by Mathematica

Time used: 0.19 (sec). Leaf size: 42

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

\[ y(t)\to t^3-3 t^2+6 t+\frac {1}{10} \sin (3 t)-\frac {3}{10} \cos (3 t)+c_1 e^{-t}-6 \]