Dirac Delta Function from Closure Relation of Orthonormal Basis and its Use in Expanding Analytic Functions