10.1.30 problem 30

Internal problem ID [1127]
Book : Elementary differential equations and boundary value problems, 10th ed., Boyce and DiPrima
Section : Section 2.1. Page 40
Problem number : 30
Date solved : Monday, January 27, 2025 at 04:34:58 AM
CAS classification : [[_linear, `class A`]]

\begin{align*} -y+y^{\prime }&=1+3 \sin \left (t \right ) \end{align*}

Solution by Maple

Time used: 0.001 (sec). Leaf size: 18

dsolve(-y(t)+diff(y(t),t) = 1+3*sin(t),y(t), singsol=all)
 
\[ y = -1-\frac {3 \cos \left (t \right )}{2}-\frac {3 \sin \left (t \right )}{2}+{\mathrm e}^{t} c_1 \]

Solution by Mathematica

Time used: 0.064 (sec). Leaf size: 25

DSolve[-y[t]+D[y[t],t] == 1+3*Sin[t],y[t],t,IncludeSingularSolutions -> True]
 
\[ y(t)\to -\frac {3 \sin (t)}{2}-\frac {3 \cos (t)}{2}+c_1 e^t-1 \]