 To see the inner product connection, consider a vector in an -dimensional real Euclidean space.Written with respect to an orthonormal basis, the squared length of is .If a linear transformation, in matrix form , preserves vector lengths, then

Thus finite-dimensional linear isometries—rotations, reflections, and their combinations—produce orthogonal matrices.