11.51 problem 62 (b)

Internal problem ID [14569]

Book: INTRODUCTORY DIFFERENTIAL EQUATIONS. Martha L. Abell, James P. Braselton. Fourth edition 2014. ElScAe. 2014
Section: Chapter 4. Higher Order Equations. Exercises 4.3, page 156
Problem number: 62 (b).
ODE order: 1.
ODE degree: 1.

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

\[ \boxed {y^{\prime }+y=\cos \left (2 t \right )} \] With initial conditions \begin {align*} [y \left (0\right ) = 0] \end {align*}

Solution by Maple

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

dsolve([diff(y(t),t)+y(t)=cos(2*t),y(0) = 0],y(t), singsol=all)
 

\[ y \left (t \right ) = \frac {\cos \left (2 t \right )}{5}+\frac {2 \sin \left (2 t \right )}{5}-\frac {{\mathrm e}^{-t}}{5} \]

Solution by Mathematica

Time used: 0.084 (sec). Leaf size: 27

DSolve[{y'[t]+y[t]==Cos[2*t],{y[0]==0}},y[t],t,IncludeSingularSolutions -> True]
 

\[ y(t)\to \frac {1}{5} \left (-e^{-t}+2 \sin (2 t)+\cos (2 t)\right ) \]