Given the problem: $y’’+16y=\cos(4x)$
It’s particular $y$ is equal to zero. I know how to get the complementary $y$ but I had problem with the particular $y. $
\begin{align*} y_p&=A\sin(4x)+B\sin(4x)\\ y_p’&=4A\cos(4x)-4B\sin(4x)\\ y_p''&=-16A\sin(4x)-16B\cos(4x) \end{align*}
As we substitute the $y_p''$ and $y_p’$ to $y''+16y=\cos(4x),$ we get:
\begin{align*} -16A\sin(4x)-16B\cos(4x)+16(A\sin(4x)+B\sin(4x))&=\cos(4x)\\ -16A\sin(4x)-16B\cos(4x)+16A\sin(4x)+16B\sin(4x)&=\cos(4x) \end{align*}
Notice that $-16A\sin(4x)$ will cancel with $16A\sin(4x),$ the same with the $-16B\cos(4x),$ which will also cancel with $16B\cos(4x).$ The $A$ will equal $0$ and also the $B$ will equal $0.$
Is there anything wrong with the equation?
Thanks for those who could help.