10.2 problem 11

Internal problem ID [5381]

Book: Schaums Outline. Theory and problems of Differential Equations, 1st edition. Frank Ayres. McGraw Hill 1952
Section: Chapter 15. Linear equations with constant coefficients (Variation of parameters). Supplemetary problems. Page 98
Problem number: 11.
ODE order: 2.
ODE degree: 1.

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

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

Solution by Maple

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

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

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

Solution by Mathematica

Time used: 0.075 (sec). Leaf size: 44

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

\[ y(x)\to 2 \sin (2 x) \arctan (\tan (x))+2 x \sin (2 x)+c_2 \sin (2 x)+\cos (2 x) (4 \log (\cos (x))+2+c_1)-2 \]