Verify that the differential equation $d^{2} y / d x^{2}=-k y$ has as its solution
$$
y=A \cos (k x)+B \sin (k x)
$$
where $A$ and $B$ are arbitrary constants. Show also that this solution can be written in the form
$$
y=C \cos (k x+\alpha)=C \operatorname{Re}\left[e^{i i k r+a)}\right]=\operatorname{Re}\left[\left(C e^{i a}\right) e^{j k r}\right]
$$
and express $C$ and $\alpha$ as functions of $A$ and $B$.