12.34 problem 34

Internal problem ID [14609]

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

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

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

Solution by Maple

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

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

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

Solution by Mathematica

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

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

\[ y(t)\to -\frac {1}{9} \cos (3 t) \text {arctanh}(\sin (3 t))+c_1 \cos (3 t)+c_2 \sin (3 t) \]