10.6 problem 6

Internal problem ID [688]

Book: Elementary differential equations and boundary value problems, 10th ed., Boyce and DiPrima
Section: Chapter 3, Second order linear equations, section 3.6, Variation of Parameters. page 190
Problem number: 6.
ODE order: 2.
ODE degree: 1.

CAS Maple gives this as type [[_2nd_order, _linear, _nonhomogeneous]]

\[ \boxed {y^{\prime \prime }+9 y-9 \sec \left (3 t \right )^{2}=0} \]

Solution by Maple

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

dsolve(diff(y(t),t$2)+9*y(t) = 9*sec(3*t)^2,y(t), singsol=all)
 

\[ y \left (t \right ) = c_{2} \sin \left (3 t \right )+c_{1} \cos \left (3 t \right )+\ln \left (\sec \left (3 t \right )+\tan \left (3 t \right )\right ) \sin \left (3 t \right )-1 \]

Solution by Mathematica

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

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

\begin{align*} y(t)\to \sin (3 t) (\text {arctanh}(\sin (3 t))+c_2)+c_1 \cos (3 t)-1 \\ \end{align*}