74.12.33 problem 33

Internal problem ID [16340]
Book : INTRODUCTORY DIFFERENTIAL EQUATIONS. Martha L. Abell, James P. Braselton. Fourth edition 2014. ElScAe. 2014
Section : Chapter 4. Higher Order Equations. Exercises 4.4, page 163
Problem number : 33
Date solved : Tuesday, January 28, 2025 at 09:05:28 AM
CAS classification : [[_2nd_order, _linear, _nonhomogeneous]]

\begin{align*} y^{\prime \prime }+9 y&=\sec \left (3 t \right ) \end{align*}

Solution by Maple

Time used: 0.003 (sec). Leaf size: 33

dsolve(diff(y(t),t$2)+9*y(t)=sec(3*t),y(t), singsol=all)
 
\[ y = -\frac {\ln \left (\sec \left (3 t \right )\right ) \cos \left (3 t \right )}{9}+\cos \left (3 t \right ) c_{1} +\frac {\sin \left (3 t \right ) \left (t +3 c_{2} \right )}{3} \]

Solution by Mathematica

Time used: 0.033 (sec). Leaf size: 37

DSolve[D[y[t],{t,2}]+9*y[t]==Sec[3*t],y[t],t,IncludeSingularSolutions -> True]
 
\[ y(t)\to \frac {1}{3} (t+3 c_2) \sin (3 t)+\cos (3 t) \left (\frac {1}{9} \log (\cos (3 t))+c_1\right ) \]