设\((\alpha_1,\dots ,\alpha_n)\)、\((\beta_1,\dots ,\beta_n)\)是\(V\)的两组基,且
\begin{equation*}
(\alpha,\dots ,\alpha_n)=(\beta_1,\dots ,\beta_n)P.
\end{equation*}
设\(A\)是基\((\alpha_1,\dots ,\alpha_n)\)的度量矩阵,\(B\)是基\((\beta_1,\dots ,\beta_n)\)的度量矩阵,即
\begin{equation*}
A=\left((\alpha_i,\alpha_j)\right)_{n\times n},\ B=\left((\beta_i,\beta_j)\right)_{n\times n},
\end{equation*}
下证\(A\)合同于\(B\)。 取定\(V\)的一个标准正交基\((\xi_1,\dots ,\xi_n)\),若
\begin{equation*}
(\alpha_1,\dots \alpha_n)=(\xi_1,\dots ,\xi_n)Q,\ (\beta_1,\dots ,\beta_n)= (\xi_1,\dots ,\xi_n)R,
\end{equation*}
则\(Q=RP\)。记\(Q=(\gamma_1,\dots ,\gamma_n),\ R=(\kappa_1,\dots ,\kappa_n)\),其中\(\gamma_i,\kappa_i\in\mathbb{R}^n\),则
\begin{equation*}
(\alpha_i,\alpha_j)=\gamma_i^T \gamma_j,\ (\beta_i,\beta_j)=\kappa_i^T \kappa_j.
\end{equation*}
于是,
\begin{equation*}
A=\begin{pmatrix}
\gamma_1^T\\\gamma_2^T\\\vdots\\\gamma_n^T
\end{pmatrix}\begin{pmatrix}
\gamma_1^T&\gamma_2^T&\cdots&\gamma_n^T
\end{pmatrix}=Q^TQ,
\end{equation*}
同理,\(B=R^TR\)。由\(Q=RP\)可知
\begin{equation*}
A=(RP)^T(RP)=P^T(R^TR)P=P^TBP.
\end{equation*}
因此\(A\)合同于\(B\)。