9.3 problem Problem 3

Internal problem ID [2776]

Book: Differential equations and linear algebra, Stephen W. Goode and Scott A Annin. Fourth edition, 2015
Section: Chapter 8, Linear differential equations of order n. Section 8.7, The Variation of Parameters Method. page 556
Problem number: Problem 3.
ODE order: 2.
ODE degree: 1.

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

\[ \boxed {y^{\prime \prime }+9 y=18 \sec \left (3 x \right )^{3}} \]

Solution by Maple

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

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

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

Solution by Mathematica

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

DSolve[y''[x]+9*y[x]==18*Sec[3*x]^3,y[x],x,IncludeSingularSolutions -> True]
 

\[ y(x)\to \frac {1}{2} \sec (3 x) ((-2+c_1) \cos (6 x)+c_2 \sin (6 x)+c_1) \]