Solve by the use of variation of parameter method: $(D^2 + 16)y = \sec 4x$.
Tarun Kumar Yadav, AIR 49, 2025
Solⁿ of Homogenous eqⁿ: $(D^2+16)\,y = 0$ are
$y = C_1 \cos 4x + C_2 \sin 4x$
Let $u = \cos 4x$ and $v = \sin 4x$ then
assume the solⁿ of given eqⁿ by $A(x)$ and $B(x)$ then
Variation of parameters states
$A(x) = -\int \frac{v}{W} R\,dx$ and $B(x) = \int \frac{uR}{W}\,dx$
where $W = \begin{vmatrix} u & u' \\ v & v' \end{vmatrix} = \begin{vmatrix} \cos 4x & -4\sin 4x \\ \sin 4x & 4\cos 4x \end{vmatrix}$
$= 4$
and $R = \sec 4x$
thus
$B(x) = +\int \frac{\cos 4x}{4}\sec 4x\,dx = +\frac{x}{4}$
and $A(x) = -\int \frac{\sin 4x \, \sec 4x}{4}\, dx$
$= -\int \frac{\tan 4x}{4}\, dx$
$= -\frac{1}{4} \log(\sec 4x)$
$= \frac{1}{4} \log \cos 4x$
thus solⁿ is $y = y_{CF} + y_{PI}$