Solution (source code)

= Solution

The <homogeneous linear differential equation> is $y''+y=0$. Its <characteristic equation> is $\lambda^2+1=0$, with roots $\pm i$. The general real <complementary function> is therefore
$$
\boxed{y_h(x)=C_1\cos x+C_2\sin x.}
$$
The two trigonometric solutions are linearly independent, supplying the two arbitrary constants required for this second-order <linear ordinary differential equation>.