General investigation of the convergence of trigonometric series into which arbitrary functions are expanded and some new applications of the same