10.1 problem 1

Internal problem ID [1754]

Book: Differential equations and their applications, 3rd ed., M. Braun
Section: Section 2.4, The method of variation of parameters. Page 154
Problem number: 1.
ODE order: 2.
ODE degree: 1.

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

Solve \begin {gather*} \boxed {y^{\prime \prime }+y-\sec \relax (t )=0} \end {gather*}

Solution by Maple

Time used: 0.016 (sec). Leaf size: 26

dsolve(diff(y(t),t$2)+y(t)=sec(t),y(t), singsol=all)
 

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

Solution by Mathematica

Time used: 0.011 (sec). Leaf size: 22

DSolve[y''[t]+y[t]==Sec[t],y[t],t,IncludeSingularSolutions -> True]
 

\begin{align*} y(t)\to (t+c_2) \sin (t)+\cos (t) (\log (\cos (t))+c_1) \\ \end{align*}