I am having difficulty normalizing the wavefunction for a free particle in 1 dimension. I have sent an attachment of my working out.
My attempt at the normalisation
Free electron:
$$-\frac{\hbar^2}{2m}\frac{\mathrm d^2 \psi(x)}{\mathrm dx^2} = E\,\psi(x)$$
\begin{align} \psi(x) &= A\sin(kx) + B\cos(kx) \\ \psi(x) &= \psi^*(x) \end{align}
$$\therefore \int^\infty_{-\infty} \left[ A\sin(kx) + B \cos(ks)\right]^2 = 1$$
$$\int^\infty_{-\infty}\left[A^2\sin^2(kx) + AB\sin(kx)\cos(kx) + AB\cos(kx)\sin(kx) +B^2\cos^2(kx)\right]\mathrm dx = 1$$
Since, $\sin^2 x + \cos^2 x = 1$,
$$\implies \int^\infty_{-\infty}\left(A^2 + B^2 + 2AB\sin(kx)\cos(kx\right)\mathrm dx) = 1$$
Since, $\sin(2x) = \sin x\cdot\cos x$,
$$\int^\infty_{-\infty}\left(A^2 + B^2 + 2AB\sin(2kx)\right)\mathrm dx = 1$$
$$\int^\infty_{-\infty}\left(A^2 + B^2\right) + AB\sin(2kx)dx = 1$$
\begin{align} A^2 + B^2 + AB\int^\infty_{-\infty}&\sin(2kx)dx \\ &=A^2+ B^2 +AB\left[-\frac{1}{2}cos(2kx)\right]^\infty_{-\infty} \neq 1 \end{align}
Could someone please let me know of my mistake?