14.24 problem 3(h)

Internal problem ID [5640]

Book: Differential Equations: Theory, Technique, and Practice by George Simmons, Steven Krantz. McGraw-Hill NY. 2007. 1st Edition.
Section: Chapter 2. Problems for Review and Discovery. Drill excercises. Page 105
Problem number: 3(h).
ODE order: 2.
ODE degree: 1.

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

\[ \boxed {y^{\prime \prime }+4 y-\tan \left (x \right )^{2}=0} \]

Solution by Maple

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

dsolve(diff(y(x),x$2)+4*y(x)=tan(x)^2,y(x), singsol=all)
 

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

Solution by Mathematica

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

DSolve[y''[x]+4*y[x]==Tan[x]^2,y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to (x+c_2) \sin (2 x)+\cos (2 x) \left (\log (\cos (x))+\frac {1}{4}+c_1\right )-\frac {3}{4} \\ \end{align*}