In R. Shankar book "Principles of quantum mechanics" $2$nd edition on page $170$ he states that for a step potential the following is energy eigenfunction, where $k = \sqrt{2mE/\hbar^2}$.
$$ \Psi_k (x) = A \left( \left( e^{ikx} + B(k) e^{-ikx} \right)\theta(-x) + C(k) e^{i\sqrt{k^2 - q^2}x} \theta(x) \right) $$
Here, $B(k)$ and $C(k)$ are some given functions only of variable $k$, and $q^2$ is a fixed real number. $\theta(x)$ is Heaviside step function which is non zero for $x>0$ where it has value $1$.
Then, he says that for this function to be normalized we must choose $A = 1/\sqrt{2\pi}$.
Question: How do I verify that with this choice of $A$ this eigenfunction is normalized? I tried computing inner product where I separated parts $x<0$ and $x>0$, but then I am unable to simplify expressions to get something proportional to $\delta(k-k')$.
My attempt is the following.
$$ \langle \Psi_{k'}(x) | \Psi_{k} (x) \rangle = \int_{-\infty}^{0} \Psi_{k'}^*(x) \Psi_{k'}(x) \mathrm{d}x + \int_{0}^{\infty} \Psi_{k'}^*(x) \Psi_{k'}(x) \mathrm{d}x $$ $$ = |A|^2 \int_{-\infty}^{0} (e^{ik'x} + B(k')e^{-ik'x})^* (e^{ikx} + B(k) e^{-ikx}) \mathrm{d}x $$ $$ + |A|^2 \int_0^{\infty} \left(C(k')e^{i\sqrt{k'^2-q^2}x}\right)^* \left(C(k)e^{-i\sqrt{k^2-q^2}x} \right) \mathrm{d}x $$
For example, consider the first integral. I am not sure how to proceed further.
$$ |A|^2 \int_{-\infty}^{0} (e^{ik'x} + B(k')e^{-ik'x})^* (e^{ikx} + B(k) e^{-ikx}) \mathrm{d}x $$ $$ = |A|^2 \Bigg( \int_{-\infty}^{0} e^{i(k-k')x}\mathrm{d}x + \int_{-\infty}^{0} B(k) e^{i(-k-k')x} \mathrm{d}x $$ $$ + \int_{-\infty}^{0}B(k') e^{i(k'+ k)x} \mathrm{d}x + \int_{-\infty}^{0} B(k)B(k') e^{i(k'-k)x} \mathrm{d}x \Bigg) $$ $$ = |A|^2 \Bigg( \pi \delta(k-k') + \frac{i}{k'-k} + B(k) \left(\pi \delta(k+k') + \frac{i}{k+k'} \right) $$ $$ + B(k') \left(\pi \delta(k+k') - \frac{i}{k+k'} \right) + B(k)B(k') \left( \pi \delta(k-k') + \frac{i}{k-k'} \right)\Bigg)$$
Here, $B(k)$ and $C(k)$ are the following functions solved from the boundary conditions (taken from Shankar equations 5.4.9, 5.4.10).
$$ B(k) = \frac{k-\sqrt{k^2-q^2}}{k+\sqrt{k^2-q^2}} $$ $$ C(k) = \frac{2k}{k+\sqrt{k^2-q^2}} $$