Show solutionHide solution
Given \(y=5\cos x-3\sin x\). We differentiate twice with respect to \(x\).
First derivative: using \(\frac{d}{dx}(\cos x)=-\sin x\) and \(\frac{d}{dx}(\sin x)=\cos x\),
\[\frac{dy}{dx}=5(-\sin x)-3(\cos x)=-5\sin x-3\cos x.\]Second derivative: differentiate again,
\[\frac{d^2y}{dx^2}=-5(\cos x)-3(-\sin x)=-5\cos x+3\sin x.\]Now add \(y\):
\[\frac{d^2y}{dx^2}+y=(-5\cos x+3\sin x)+(5\cos x-3\sin x).\]The \(\cos x\) terms cancel: \(-5\cos x+5\cos x=0\). The \(\sin x\) terms cancel: \(3\sin x-3\sin x=0\). Hence
\[\frac{d^2y}{dx^2}+y=0,\]as required. This holds for all real \(x\), since \(\sin x\) and \(\cos x\) are defined and differentiable everywhere.