We can multiply TD(Term Document) matrix with its transpose ie DT (Document Term) matrix and that would result in a square TT(Term Term) matrix.
If the resulting matrix is a diagonal matrix, we know that is because each term matches itself.
But if it is not a diagonal matrix then we can add the related terms to the query and enhance our search results.
We can further normalize the resultant square matrix to intuitively see the co-relations between the terms.
-Anwasha Dhar