If \(y=A \cos \mathrm{n} x+\mathrm{B} \sin \mathrm{nx}\), then \(\frac{\mathrm{d}^2 y}{\mathrm{~d} x^2}=\)