In this paper, explicit formulae for the elements of the inverse of a general tridiagonal matrix are presented by first extending results on the explicit solution of a second-order linear homogeneous difference equation with variable coefficients to the nonhomogeneous case, and then applying these extended results to a boundary value problem. A formula for the characteristic polynomial is obtained in the process. We also establish a connection between the matrix inverse and orthogonal polynomials. In addition, the case of a cyclic tridiagonal system is discussed.