Suppose $f$ is a smooth real-valued function such that $f''+f=0$
It's easy to see that $f'(x) \cos x + f(x) \sin x = f(\pi/2)$
This somehow implies that $\frac{f(x)-f(\pi/2)\sin x}{\cos x}$ is constant on $(-\pi/2, \pi/2)$
(this is part of a linear algebra exercise)