Bases in MAT240H1 were all equally good. With an inner product they stop being equal: orthonormal bases make every computation collapse to a dot product. Gram–Schmidt says you can always build one.
Finding coordinates in a general basis means solving a linear system. In an orthonormal basis the $i$-th coordinate is just $\langle v,e_i\rangle$ — no system, no inversion. That single simplification is why orthonormal bases are worth the effort of constructing.
The QR factorization used by every least-squares solver is Gram–Schmidt in matrix form. Fourier series are coordinates in an orthonormal basis of a function space. JPEG compression is a change to an orthonormal cosine basis, keeping the large coordinates.
Laplace used the procedure before either namesake; Gram published in 1883 and Schmidt in 1907. Naive Gram–Schmidt is numerically unstable — small rounding errors destroy orthogonality — so numerical linear algebra uses a modified version or Householder reflections instead.
Vectors $u,v$ are orthogonal if $\langle u,v\rangle=0$, written $u\perp v$. A set is orthogonal if distinct members are pairwise orthogonal, and orthonormal if in addition every member has norm $1$. An orthonormal basis is a basis that is an orthonormal set.
An orthogonal set of nonzero vectors is linearly independent.
Suppose $\sum_i c_iv_i=0$. Take the inner product with $v_j$: every term with $i\ne j$ dies by orthogonality, leaving $c_j\|v_j\|^2=0$. Since $v_j\ne0$, $c_j=0$. ∎
If $\{e_1,\dots,e_n\}$ is an orthonormal basis of $V$, then every $v\in V$ satisfies $v=\sum_{i=1}^n\langle v,e_i\rangle e_i$, and $\|v\|^2=\sum_i|\langle v,e_i\rangle|^2$ (Parseval).
Write $v=\sum c_ie_i$ and pair with $e_j$: orthonormality leaves $\langle v,e_j\rangle=c_j$. The norm identity follows by expanding $\langle v,v\rangle$.
Every finite-dimensional inner product space has an orthonormal basis. Given independent $v_1,\dots,v_n$, define
Take $v_1=(1,1,0)$, $v_2=(1,0,1)$.
For a subset $S\subseteq V$, the orthogonal complement is $S^\perp=\{v\in V:\langle v,s\rangle=0\text{ for all }s\in S\}$. It is always a subspace, even when $S$ is not.
If $W$ is a finite-dimensional subspace of $V$, then $V=W\oplus W^\perp$: every $v$ splits uniquely as $v=w+w'$ with $w\in W$ and $w'\in W^\perp$. The map $P_W(v)=w$ is the orthogonal projection onto $W$, and in an orthonormal basis $\{e_1,\dots,e_k\}$ of $W$,
For existence, define $w$ by that formula and set $w'=v-w$; a direct check gives $\langle w',e_j\rangle=\langle v,e_j\rangle-\langle v,e_j\rangle=0$ for each $j$, so $w'\in W^\perp$. For uniqueness, a vector in $W\cap W^\perp$ is orthogonal to itself, hence $0$.
$P_W(v)$ is the unique closest point of $W$ to $v$: for every $w\in W$ with $w\ne P_W(v)$, $\|v-P_W(v)\|<\|v-w\|$.
Write $v-w=(v-P_W v)+(P_W v-w)$. The first term is in $W^\perp$ and the second in $W$, so they are orthogonal and Pythagoras gives $\|v-w\|^2=\|v-P_Wv\|^2+\|P_Wv-w\|^2$. The second term is positive unless $w=P_Wv$.
In $\mathbb{R}^3$, let $W=\operatorname{span}\{(1,1,0)\}$. Then $W^\perp$ is the plane $x+y=0$, spanned by $(1,-1,0)$ and $(0,0,1)$. Indeed $\dim W+\dim W^\perp=1+2=3$, and $(W^\perp)^\perp=W$.
• Forgetting to normalise. The projection formula
$\sum\langle v,e_i\rangle e_i$ needs an orthonormal basis; with merely
orthogonal vectors divide by $\|w_i\|^2$.
• Applying Gram–Schmidt to a dependent list. Some $w_k$ becomes $0$
and the division blows up — the process assumes independence.
• Writing $W^\perp$ without saying which inner product. Change the inner
product and the complement changes.
• Assuming $(W^\perp)^\perp=W$ in infinite dimensions. It needs $W$ closed;
in finite dimensions it is automatic.
Original problems written for this guide in the style of Friedberg, Insel & Spence exercises. Write a full solution before opening the answer.
Apply Gram–Schmidt to $(1,1)$, $(2,0)$ in $\mathbb{R}^2$.
Using that orthonormal basis, write $(3,5)$ in coordinates.
In $P_2(\mathbb{R})$ with $\langle f,g\rangle=\int_{-1}^1 fg$, apply Gram–Schmidt to $1,t,t^2$.
Find the orthogonal projection of $(1,2,3)$ onto $W=\operatorname{span}\{(1,0,0),(0,1,0)\}$.
Find $W^\perp$ for $W=\operatorname{span}\{(1,2,1)\}$ in $\mathbb{R}^3$.
Prove $\dim W+\dim W^\perp=\dim V$ for finite-dimensional $V$.
Find the polynomial of degree $\le1$ closest to $t^2$ on $[-1,1]$ in the integral inner product.
Prove that if $u\perp v$ then $\|u+v\|^2=\|u\|^2+\|v\|^2$, and show the converse can fail over $\mathbb{C}$.
Course coverage. This unit is part of the complete MAT247H1 topic map. It should cover the following items before you move on:
Use the current UofT MAT247H1 calendar topics as the coverage spine, and pair lecture notes with a Friedberg-Insel-Spence-style linear algebra text for extra reading. The exact assigned textbook should still be checked against the instructor syllabus.
Orthogonal sets are independent; Gram–Schmidt manufactures them; an orthonormal basis of $W$ builds $P_W$; and $P_W$ solves the best approximation problem. Every later projection argument in the course reuses this chain.
Use these after the main practice set. They are designed to force definition-level reasoning, theorem selection, and mixed application rather than routine calculation only.
What changes in the projection formula if the basis is orthogonal but not orthonormal?
What happens if Gram–Schmidt is run on a dependent list?
Is $(W^\perp)^\perp=W$ always?
Why does the best approximation theorem matter for fitting data?