78.14.14 problem 4 (f)

Internal problem ID [18350]
Book : DIFFERENTIAL EQUATIONS WITH APPLICATIONS AND HISTORICAL NOTES by George F. Simmons. 3rd edition. 2017. CRC press, Boca Raton FL.
Section : Chapter 3. Second order linear equations. Section 19. The Method of Variation of Parameters. Problems at page 135
Problem number : 4 (f)
Date solved : Tuesday, January 28, 2025 at 11:48:05 AM
CAS classification : [[_2nd_order, _linear, _nonhomogeneous]]

\begin{align*} y^{\prime \prime }+y&=\sec \left (x \right ) \tan \left (x \right ) \end{align*}

Solution by Maple

Time used: 0.237 (sec). Leaf size: 23

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

Solution by Mathematica

Time used: 0.031 (sec). Leaf size: 29

DSolve[D[y[x],{x,2}] +y[x]==Sec[x]*Tan[x],y[x],x,IncludeSingularSolutions -> True]
 
\[ y(x)\to \cos (x) \arctan (\tan (x))+c_1 \cos (x)+\sin (x) (-\log (\cos (x))-1+c_2) \]