In Griffiths' Introduction to Quantum Mechanics he gives the eigenfunctions of the Hermitian operator $\hat{x}=x$ as being
$$g_{\lambda}\left(x\right)~=~B_{\lambda}\delta\left(x-\lambda\right).$$
He then says that these eigenfunctions are not square integrable because
$$\int_{-\infty}^{\infty}g_{\lambda}\left(x\right)^{*}g_{\lambda}\left(x\right)dx ~=~\left|B_{\lambda}\right|^{2}\int_{-\infty}^{\infty}\delta\left(x-\lambda\right)\delta\left(x-\lambda\right)dx ~=~\left|B_{\lambda}\right|^{2}\delta\left(\lambda-\lambda\right) ~\rightarrow~\infty.$$
My question is, how does he arrive at the final term, more specifically, where does the $\delta\left(\lambda-\lambda\right)$ bit come from?
My total knowledge of the Dirac delta function was gleaned earlier on in Griffiths and extends to just about understanding
$$\int_{-\infty}^{\infty}f\left(x\right)\delta\left(x-a\right)dx~=~f\left(a\right).$$
