The wave function of a quantum particle of mass $m$ is $$
\psi(x)=A \cos (k x)+B \sin (k x) $$ where $A, B,$ and $k$ are constants. (a) Assuming the particle is free $(U=0),$ show that $\psi(x)$ is a solution of the Schrödinger equation (Eq. 40.15 ). (b) Find the corresponding energy $E$ of the particle.