# Congruent matrices - why do we require invertiblility?

If $A$, $B$ $\in K^{n \times n}$ are $n \times n$ matrices over a field $K$, then we say that $A$ and $B$ are congruent if there exists an invertible $P \in GL(n, K)$ such that $B = P^TAP$, where $P^T$ denotes the transpose of $P$.

Why do we require $P$ to be invertible?

Congruence of matrices is usually compared to similarity of matrices, where we say that $A$ and $B$ are similar if there exists an invertible $P \in GL(n, K)$ such that $B = P^{-1}AP$. Here it is obvious why we need $P$ to be invertible. However, in the case of congruent matrices, the invertibility requirement doesn't seem to be obvious.

We need that congruence is an equivalence relation. If we have $A\sim B$ iff $B=P^tAP$ for some $P$, then reflexivity says that also $B\sim A$ should hold, i.e., $A=Q^tBQ$ for some $Q$. If $P$ is invertible, this follows easily. If not, we have a problem. For example, for every matrix $A$ we would have $A\sim 0$ with $P=0$, but $0\sim A$ would force $A=0$, which is not true for all $A$.

The idea of congruent matrices comes from matrix representations of bilinear form.

When you are given a bilinear form $$f$$ on a finite-dimensional vector space $$V$$, and two ordered bases $$\alpha,\beta$$ for $$V$$ are given, you can obtain two matrix representations of $$f$$, one for each ordered basis. Say, the two matrices are $$A$$ (the representation in $$\alpha$$) and $$B$$ (the representation in $$\beta$$).

It turns out the two matrices are related by a formula. Let $$P$$ be the change-of-basis matrix from $$\beta$$ to $$\alpha$$. Then $$A=P^TBP.$$ As you know, a change-of-basis matrix is automatically invertible.

The definition of congruent leaves out the background details that $$A,B$$ are representing the same bilinear form. You should keep in mind that saying "$$A,B$$ are congruent" shall mean "$$A,B$$ represents the same bilinear form in different bases", just as saying "$$A,B$$ are similar" shall mean "$$A,B$$ represents the same linear transformation in different bases".

The word "congruent" (and the fact that you write "$A$ and $B$ are congruent", rather than "$A$ is congruent to $B$") suggests an equivalence relation. In particular, in order for this relation to be symmetric, you will need $P$ to be invertible in general.

Of course, you could take the equivalence relation generated by the relation you suggest, but this is the total relation, as then any matrix will be "congruent" to the zero matrix.