Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Orthogonal Sets






Bases Where Coordinates Come Free

An orthogonal set consists of vectors that are pairwise perpendicular. An orthonormal set adds the requirement that each vector has unit length. These sets are automatically linearly independent, and when they form a basis, coordinates are computed by dot products alone — no system solving, no row reduction, no matrix inversion.



Orthogonal Sets

A set of vectors {v1,v2,,vk}\{\mathbf{v}_1, \mathbf{v}_2, \dots, \mathbf{v}_k\} is orthogonal if every pair has dot product zero:

vivj=0for all ij\mathbf{v}_i \cdot \mathbf{v}_j = 0 \quad \text{for all } i \neq j


The vectors in an orthogonal set must all be nonzero — the zero vector is excluded because including it would trivialize the structure (every vector is orthogonal to 0\mathbf{0}, so 0\mathbf{0} carries no directional information).

For example, {(1,0,0),(0,2,0),(0,0,3)}\{(1, 0, 0), (0, 2, 0), (0, 0, -3)\} is orthogonal in R3\mathbb{R}^3: every pair of distinct vectors has dot product zero. The vectors need not have the same length, and their lengths can be anything nonzero.

A less obvious example: {(1,1,1),(1,2,1),(1,0,1)}\{(1, 1, 1), (1, -2, 1), (1, 0, -1)\}. Checking: (1)(1)+(1)(2)+(1)(1)=0(1)(1) + (1)(-2) + (1)(1) = 0, (1)(1)+(1)(0)+(1)(1)=0(1)(1) + (1)(0) + (1)(-1) = 0, (1)(1)+(2)(0)+(1)(1)=0(1)(1) + (-2)(0) + (1)(-1) = 0. All three pairwise products vanish — the set is orthogonal despite none of the vectors being aligned with the coordinate axes.
U3×3v1,1v1,2v1,3v2,1c2,1u1,1v2,2c2,1u1,2v2,3c2,1u1,3v3,1c3,1u1,1c3,2u2,1v3,2c3,1u1,2c3,2u2,2v3,3c3,1u1,3c3,2u2,3E3×3u1,1/u1u1,2/u1u1,3/u1u2,1/u2u2,2/u2u2,3/u2u3,1/u3u3,2/u3u3,3/u3
A set with every pair at right angles

Every pair in this set has a dot product of zero. That single condition forces independence — no vector can be a combination of the others without picking up a non-zero dot product with one of them. Independence therefore comes free with orthogonality rather than needing a separate check. Build such a set from arbitrary vectors on the Gram-Schmidt visualizer.

The zero vector has to be excluded by hand, since it is orthogonal to everything and would wreck the independence it otherwise guarantees.

Orthogonal Set Notation

Notation

Orthogonal Set Notation

Two conditions — mutual perpendicularity and unit length — that most of this subject states in prose, compressed by one symbol into a single equation. Around it sit a hat that means a specific normalisation and a matrix letter whose name does not match its defining property. All catalogued among the linear algebra symbols.
The dot and \perp come from dot product and inner product notation; v\|\mathbf{v}\| and the hat from norm notation; ATA^{T}, II and A1A^{-1} from matrix operation and inverse notation; subscripted index pairs from matrix entry notation.
vivj=δij\mathbf{v}_i \cdot \mathbf{v}_j = \delta_{ij}
the dot product is one when the indices agree and zero otherwise
The Kronecker delta is a switch written as a symbol: δij=1\delta_{ij} = 1 when i=ji = j and 00 otherwise. It compresses the whole definition of an orthonormal set into one equation — perpendicularity is the iji \neq j case, unit length the i=ji = j case, as Orthonormal Sets below states.
CasesThe same symbol is the identity matrix entrywise, I=[δij]I = [\delta_{ij}], which is why QTQ=IQ^{T}Q = I and "the columns are orthonormal" are the same statement written two ways — one in matrix marks, one in index marks.
Do not confuseThe Δ\Delta and δ\delta of calculus — an increment or a small quantity. Here δ\delta takes two subscripts and returns one of two values; it is a function of a pair of indices, not a magnitude, and nothing about it is small.
u^=vv\hat{\mathbf{u}} = \dfrac{\mathbf{v}}{\|\mathbf{v}\|}
u-hat — the unit vector in the direction of v
The hat is a claim about length, not about identity: it says this vector has been divided by its own norm and now measures 11. Normalising is the single step that turns an orthogonal set into an orthonormal one, so the hat marks exactly what the extra word "normal" contributes.
CasesThe standard basis carries hats for the same reason — ı^,ȷ^,k^\hat{\imath}, \hat{\jmath}, \hat{k} in physics for what this site writes e1,e2,e3\mathbf{e}_1, \mathbf{e}_2, \mathbf{e}_3 — and the hat is dropped once every vector in play is known to be a unit vector.
Same glyph elsewhereIn statistics the same hat marks an estimate rather than a length — μ^\hat{\mu} is an estimated mean, with no implication that anything equals one. The two-hats convention keeps the jobs apart.
QTQ=IQ^{T}Q = I, so Q1=QTQ^{-1} = Q^{T}
Q is orthogonal: its transpose is its inverse
QQ is the reserved letter for a matrix with orthonormal columns, and the defining equation is the payoff — Orthogonal Matrices below — since it replaces inversion, normally expensive, with transposition, which is free.
CasesThe equation is a statement about columns, and it forces the same of rows, so QQT=IQQ^{T} = I holds too — one of the few places where a matrix identity is symmetric in that way.
Do not confuseThe name itself. An "orthogonal matrix" has orthonormal columns, not merely orthogonal ones — unit length is part of the definition, and a matrix whose columns are perpendicular but not normalised satisfies no such identity. The terminology is a historical accident the notation does not repeat.

Orthogonal Sets Are Independent

Every orthogonal set of nonzero vectors is linearly independent:

Orthogonal Set Independence
{v1,,vk} orthogonal, all nonzero    linearly independent\{\mathbf{v}_1, \dots, \mathbf{v}_k\} \text{ orthogonal, all nonzero} \implies \text{linearly independent}

The proof is short and reveals exactly why orthogonality is so powerful.

Suppose c1v1+c2v2++ckvk=0c_1\mathbf{v}_1 + c_2\mathbf{v}_2 + \cdots + c_k\mathbf{v}_k = \mathbf{0}. Dot both sides with vj\mathbf{v}_j:

c1(v1vj)+c2(v2vj)++ck(vkvj)=0c_1(\mathbf{v}_1 \cdot \mathbf{v}_j) + c_2(\mathbf{v}_2 \cdot \mathbf{v}_j) + \cdots + c_k(\mathbf{v}_k \cdot \mathbf{v}_j) = 0


Every term with iji \neq j vanishes because vivj=0\mathbf{v}_i \cdot \mathbf{v}_j = 0. Only the jj-th term survives: cjvj2=0c_j \|\mathbf{v}_j\|^2 = 0. Since vj0\mathbf{v}_j \neq \mathbf{0}, vj2>0\|\mathbf{v}_j\|^2 > 0, so cj=0c_j = 0. This works for every jj, so all coefficients are zero.

The key mechanism is that orthogonality isolates each coefficient. Dotting with vj\mathbf{v}_j kills every other term, leaving cjc_j alone. This is why orthogonal bases make coordinates computable by individual dot products — the same isolation principle that proves independence also extracts coordinates.

Orthonormal Sets

An orthonormal set is an orthogonal set where every vector additionally has unit length: vi=1\|\mathbf{v}_i\| = 1 for all ii. The two conditions together can be written compactly using the Kronecker delta:

Orthonormal Set
vivj=δij={1if i=j0if ij\mathbf{v}_i \cdot \mathbf{v}_j = \delta_{ij} = \begin{cases} 1 & \text{if } i = j \\ 0 & \text{if } i \neq j \end{cases}

Any orthogonal set can be made orthonormal by normalizing each vector: v^i=vi/vi\hat{\mathbf{v}}_i = \mathbf{v}_i / \|\mathbf{v}_i\|. The directions are preserved, only the lengths change to 11.

The standard basis {e1,e2,,en}\{\mathbf{e}_1, \mathbf{e}_2, \dots, \mathbf{e}_n\} for Rn\mathbb{R}^n is orthonormal: eiej=δij\mathbf{e}_i \cdot \mathbf{e}_j = \delta_{ij} because each basis vector has a single 11 in a different position. It is the simplest orthonormal set, but far from the only one.
Aspect Orthogonal set Orthonormal set
Pairwise dot products vi · vj = 0 for i ≠ j vi · vj = 0 for i ≠ j
Vector lengths any nonzero value each ‖vi‖ = 1
Compact condition vi · vj = 0 (i ≠ j) plus each vi ≠ 0 vi · vj = δij (the Kronecker delta)
Coordinate of x along vi ci = (vi · x) / (vi · vi) ci = qi · x
Linear independence automatic (nonzero vectors) automatic (unit vectors are nonzero)
Going between the two divide each vi by ‖vi‖ → orthonormal already orthogonal as a special case

Orthogonal and Orthonormal Bases

An orthogonal basis is an orthogonal set that spans the space. An orthonormal basis is an orthonormal set that spans the space.

In Rn\mathbb{R}^n, an orthogonal set of nn nonzero vectors is automatically a basis — independence is guaranteed by orthogonality, and nn independent vectors in an nn-dimensional space automatically span. So the only check needed is: do I have nn pairwise-orthogonal nonzero vectors? If yes, they form a basis.

Orthonormal bases exist for every finite-dimensional inner product space. The Gram-Schmidt process constructs one from any given basis. This means the computational advantages of orthonormal bases are always available — any space that has a basis at all has an orthonormal one.

Coordinates via Dot Products

The defining computational advantage of orthogonal bases is that coordinates are extracted by individual dot products.

For an orthogonal basis {v1,,vn}\{\mathbf{v}_1, \dots, \mathbf{v}_n\}, the coordinate of x\mathbf{x} along vi\mathbf{v}_i is

ci=xvivivic_i = \frac{\mathbf{x} \cdot \mathbf{v}_i}{\mathbf{v}_i \cdot \mathbf{v}_i}


For an orthonormal basis {q1,,qn}\{\mathbf{q}_1, \dots, \mathbf{q}_n\}, the denominator is 11, and the formula simplifies to

Coordinates via Orthonormal Basis
ci=xqic_i = \mathbf{x} \cdot \mathbf{q}_i

No linear system needs to be solved. No matrix needs to be inverted. Each coordinate is computed independently by a single dot product.

Worked Example


Let {q1,q2,q3}\{\mathbf{q}_1, \mathbf{q}_2, \mathbf{q}_3\} be an orthonormal basis for R3\mathbb{R}^3 with q1=12(1,1,0)\mathbf{q}_1 = \frac{1}{\sqrt{2}}(1, 1, 0), q2=16(1,1,2)\mathbf{q}_2 = \frac{1}{\sqrt{6}}(1, -1, 2), q3=13(1,1,1)\mathbf{q}_3 = \frac{1}{\sqrt{3}}(-1, 1, 1).

For x=(3,1,2)\mathbf{x} = (3, 1, 2): c1=xq1=12(3+1+0)=42=22c_1 = \mathbf{x} \cdot \mathbf{q}_1 = \frac{1}{\sqrt{2}}(3 + 1 + 0) = \frac{4}{\sqrt{2}} = 2\sqrt{2}, c2=xq2=16(31+4)=66=6c_2 = \mathbf{x} \cdot \mathbf{q}_2 = \frac{1}{\sqrt{6}}(3 - 1 + 4) = \frac{6}{\sqrt{6}} = \sqrt{6}, c3=xq3=13(3+1+2)=0c_3 = \mathbf{x} \cdot \mathbf{q}_3 = \frac{1}{\sqrt{3}}(-3 + 1 + 2) = 0.

So x=22q1+6q2+0q3\mathbf{x} = 2\sqrt{2}\,\mathbf{q}_1 + \sqrt{6}\,\mathbf{q}_2 + 0 \cdot \mathbf{q}_3. The zero third coordinate means x\mathbf{x} has no component in the q3\mathbf{q}_3 direction — it is orthogonal to q3\mathbf{q}_3.

Orthogonal Matrices

An n×nn \times n matrix QQ is orthogonal if its columns form an orthonormal set. This is equivalent to QTQ=QQT=IQ^TQ = QQ^T = I, which is equivalent to Q1=QTQ^{-1} = Q^T.

The rows of an orthogonal matrix also form an orthonormal set — orthogonality of columns and rows go together.

The determinant of an orthogonal matrix is ±1\pm 1, since 1=det(I)=det(QTQ)=det(Q)21 = \det(I) = \det(Q^TQ) = \det(Q)^2. When det(Q)=+1\det(Q) = +1, the matrix represents a rotation. When det(Q)=1\det(Q) = -1, it represents a rotation composed with a reflection.

The defining geometric property is that orthogonal matrices preserve the dot product: (Qu)(Qv)=(Qu)T(Qv)=uTQTQv=uTv=uv(Q\mathbf{u}) \cdot (Q\mathbf{v}) = (Q\mathbf{u})^T(Q\mathbf{v}) = \mathbf{u}^TQ^TQ\mathbf{v} = \mathbf{u}^T\mathbf{v} = \mathbf{u} \cdot \mathbf{v}. Preserving the dot product automatically preserves lengths (Qx=x\|Q\mathbf{x}\| = \|\mathbf{x}\|), angles, and distances. An orthogonal matrix is a rigid motion of Rn\mathbb{R}^n — it rearranges vectors without distorting any geometric relationship.
Q2×20.866−0.50.50.866x21=Q x1.23211.866,Q2×20.866−0.50.50.866y10=Q y0.8660.5
Columns of length one, pairwise orthogonal

Each column has unit length and every pair is orthogonal, which is exactly the condition that makes the transpose an inverse. Nothing stronger is being asked of the matrix, and nothing weaker would do. Check the transpose-times-itself product on the orthogonal matrices visualizer.

Because the inverse is free, orthogonal matrices are the ones numerical work prefers wherever a choice exists.

Matrices with Orthonormal Columns

An m×nm \times n matrix QQ with m>nm > n can have orthonormal columns without being square. Such a matrix satisfies QTQ=InQ^TQ = I_n but QQTImQQ^T \neq I_m (the product QQTQQ^T is m×mm \times m and has rank n<mn < m).

The matrix QQTQQ^T is the projection matrix onto the column space of QQ. For any bRm\mathbf{b} \in \mathbb{R}^m, the vector QQTbQQ^T\mathbf{b} is the orthogonal projection of b\mathbf{b} onto the nn-dimensional subspace spanned by the columns of QQ.

These rectangular matrices with orthonormal columns are the natural output of the Gram-Schmidt process applied to the columns of a matrix. If AA is m×nm \times n with independent columns, Gram-Schmidt produces an m×nm \times n matrix QQ with orthonormal columns and an n×nn \times n upper triangular matrix RR such that A=QRA = QR. This is the thin QR decomposition.
Property Square orthogonal matrix Q (n × n) Rectangular Q with orthonormal columns (m × n, m > n)
Qᵀ Q In In
Q Qᵀ In NOT the identity; equals the projection matrix onto Col(Q)
Inverse Q⁻¹ = Qᵀ no two-sided inverse (Q is not square)
det(Q) ±1 undefined (Q is not square)
Rows also form an orthonormal set rows are not orthonormal in general
Preserves dot product? yes for all u, v ∈ ℝⁿ — full isometry of ℝⁿ yes from source to image: (Q u) · (Q v) = u · v for u, v ∈ ℝⁿ
Geometric role rotation (det +1) or rotation composed with reflection (det −1) embedding ℝⁿ into ℝᵐ as an n-dimensional subspace
Typical source stored basis change, rotation matrix, Householder/Givens factor output of Gram–Schmidt; the Q in thin QR decomposition A = Q R

Parseval&apos;s Identity and Bessel&apos;s Inequality

For an orthonormal basis {q1,,qn}\{\mathbf{q}_1, \dots, \mathbf{q}_n\} of Rn\mathbb{R}^n and any vector x\mathbf{x}, the coordinates ci=xqic_i = \mathbf{x} \cdot \mathbf{q}_i satisfy Parseval&apos;s identity:

Parseval Identity
x2=i=1n(xqi)2\|\mathbf{x}\|^2 = \sum_{i=1}^{n} (\mathbf{x} \cdot \mathbf{q}_i)^2

The squared length of x\mathbf{x} equals the sum of the squares of its coordinates. This is the Pythagorean theorem applied to the orthonormal decomposition x=c1q1++cnqn\mathbf{x} = c_1\mathbf{q}_1 + \cdots + c_n\mathbf{q}_n.

When the orthonormal set does not span — when k<nk < n — the sum accounts for only part of the length:

i=1k(xqi)2x2\sum_{i=1}^{k} (\mathbf{x} \cdot \mathbf{q}_i)^2 \leq \|\mathbf{x}\|^2


This is Bessel&apos;s inequality. The left side is the squared length of the projection of x\mathbf{x} onto Span{q1,,qk}\text{Span}\{\mathbf{q}_1, \dots, \mathbf{q}_k\}. The deficit x2(xqi)2\|\mathbf{x}\|^2 - \sum(\mathbf{x} \cdot \mathbf{q}_i)^2 is the squared length of the component orthogonal to the span. Equality holds if and only if x\mathbf{x} is already in the span, leaving no perpendicular remainder.

Summary: Operations in an Orthonormal Basis

An orthonormal basis converts every routine vector operation into something that uses only dot products — no system solving, no matrix inversion, no (AᵀA)⁻¹ factor. The table below collects each operation alongside its formula in an orthonormal basis and a brief note on why orthonormality makes it simple, including Parseval&apos;s identity for length and Bessel&apos;s inequality for partial projections.
Every row below is an operation that becomes simpler in an orthonormal basis, and the simplification is always the same one: a linear system turns into a dot product. Reading them together shows that these are not six separate conveniences but six consequences of a single fact about the basis vectors.
Orthogonality · orthonormal bases

Operations in an orthonormal basis

Each row is an operation that costs a linear system in a general basis and costs a dot product here. The saving is not incremental — the system disappears entirely, because orthogonality makes the coordinates independent of each other.

6operations
Coordinates2
1
one dot product per coordinate
ci=xqic_i = \mathbf{x} \cdot \mathbf{q}_i
In a general basis this means solving Bc=xB\mathbf{c} = \mathbf{x} — all coordinates at once, none available before the rest. Here each is an independent dot product, so any single coordinate can be computed without the others. This is the entry the rest depend on.
2
over a full orthonormal basis
x=(xqi)qi\mathbf{x} = \sum (\mathbf{x} \cdot \mathbf{q}_i)\,\mathbf{q}_i
The expansion written out. Each term is the component of x\mathbf{x} along one basis direction, so the sum is a decomposition into perpendicular pieces rather than an arbitrary combination that happens to work.
Lengths and angles2
3
Parseval’s identity
x2=ci2\|\mathbf{x}\|^2 = \sum c_i^2
Pythagoras in nn dimensions. The length of a vector is recoverable from its coordinates alone — which fails in a general basis, where the coordinates say nothing about length without the Gram matrix to weight them.
4
coordinates in the same basis
xy=cidi\mathbf{x} \cdot \mathbf{y} = \sum c_i d_i
The inner product of the vectors is the ordinary dot product of their coordinate vectors. Geometry is preserved exactly under the change of coordinates, which is what makes an orthonormal basis a rigid motion rather than a distortion.
Projection onto a subspace2
5
{qi}\{\mathbf{q}_i\} orthonormal basis for WW
projWx=i=1k(xqi)qi\operatorname{proj}_W \mathbf{x} = \sum_{i=1}^{k} (\mathbf{x} \cdot \mathbf{q}_i)\,\mathbf{q}_i
No (ATA)1(A^{\mathsf{T}}A)^{-1} anywhere — compare the general projection formula, which needs a matrix inverse. Orthonormality makes ATA=IA^{\mathsf{T}}A = I, so the inverse is the identity and the formula collapses to a sum of independent terms.
6
equality iff xW\mathbf{x} \in W
i=1kci2x2\sum_{i=1}^{k} c_i^2 \leq \|\mathbf{x}\|^2
A truncated sum can only lose length. The deficit is exactly the squared distance from x\mathbf{x} to WW, so the inequality measures how much of the vector the subspace fails to capture — which is the least-squares error before any least-squares problem is posed.
One fact produces all of them: qiqj\mathbf{q}_i \cdot \mathbf{q}_j is 11 when i=ji = j and 00 otherwise, so every cross term in every expansion vanishes. That is why an orthonormal basis is worth the Gram–Schmidt cost of constructing one — the expense is paid once and every operation afterwards is cheaper.
Operations in an orthonormal basis·/linear-algebra/orthogonality/orthogonal-setsLearn Math Class
What changes is that the coordinates stop depending on each other. In a general basis, finding one coordinate of x\mathbf{x} means solving for all of them at once — the system Bc=xB\mathbf{c} = \mathbf{x} couples every unknown to every other. With an orthonormal basis each coordinate is an independent dot product, so a single one can be computed alone, and adding a new basis vector does not change the coordinates already found.
The projection row is where this pays off most visibly. The general formula requires (ATA)1(A^{\mathsf{T}}A)^{-1}, a matrix inverse computed before anything can be projected. When the columns are orthonormal, ATAA^{\mathsf{T}}A is the identity, the inverse disappears, and the projection is a sum of independent terms — which is precisely why Gram–Schmidt is worth running before a projection-heavy computation rather than after.

Orthogonal Sets FAQ

Does an "orthogonal matrix" just have orthogonal columns?

+
No, they must be orthonormal, so unit length is part of the definition despite the name. A matrix whose columns are merely perpendicular satisfies no identity of this kind. The terminology is a historical accident that the notation refuses to repeat, which is why the condition is always written QTQ=IQ^{T}Q = I rather than described in words.Read more →

What is δij\delta_{ij}?

+
The Kronecker delta, a function of two indices returning 11 when they agree and 00 otherwise. It is the identity matrix written entrywise, I=[δij]I = [\delta_{ij}]. Do not read it as the δ\delta of calculus: nothing here is small or an increment, and this symbol takes two subscripts rather than measuring a magnitude.Read more →

If QTQ=IQ^{T}Q = I, does QQT=IQQ^{T} = I as well?

+
Yes, for square QQ, and this is one of the few places where such a swap is safe. The equation is a statement about the columns being orthonormal, and it forces the rows to be orthonormal too. Most matrix identities are not symmetric in that way, so the fact is worth noting rather than assuming.Read more →