Title: A general method for the exact inverse of symmetric tri-diagonal matrices and its application in solving socio-economic problems