Lecture 11 - Orthogonal and Orthonormal Bases, Projections

Updated 4 Oct 2026

Orthogonal Vectors

  • เวกเตอร์ที่ตั้งฉากกัน
  • ดูได้ที่ Inner product (Dot product นั่นแหละ)— u⃗⋅v⃗=0\vec{u}\cdot \vec{v}=0 ดังนั้น u⃗⊥v⃗\vec{u}\perp\vec{v}

Orthogonal Basis

A={u⃗1,u⃗2,… ,u⃗P}A=\{\vec{u}_1,\vec{u}_2,\dotso,\vec{u}_P\}
  • ตามนิยามของ Basis เลย
    1. Vector ทุกตัวข้างในต้อง Linear Independent ต่อกัน + (Span the space ด้วยแหละ)
  • และการที่จะถือว่าเป็น Orthogonal ได้เนี่ย ต้องมีคุณสมบัตินี้
    • ทุก ๆ Vector ใน Set AA ต้องตั้งฉากกันทุกคู่! u⃗1⋅u⃗2=0,u⃗1⋅u⃗3=0,⋮u⃗1⋅u⃗p=0,u⃗2⋅u⃗3=0,⋮u⃗p−1⋅u⃗p=0.\begin{align*} \vec{u}_1 \cdot \vec{u}_2 &= 0, \\ \vec{u}_1 \cdot \vec{u}_3 &= 0, \\ &\vdots \\ \vec{u}_1 \cdot \vec{u}_p &= 0, \\ \vec{u}_2 \cdot \vec{u}_3 &= 0, \\ &\vdots \\ \vec{u}_{p-1} \cdot \vec{u}_p &= 0. \end{align*}
    • u⃗i⋅u⃗j=0\vec{u}_i \cdot \vec{u}_j=0; ∀i\forall i และ ∀j\forall j (โดย i≠ji \ne j ด้วยนะ)

Orthonormal Basis

  • จะต้องมีเงื่อนไข 3 จาก Orthogonal Basis ∣u⃗1∣=∣u⃗2∣=…=∣u⃗p∣=1|\vec{u}_1|=|\vec{u}_2|=\dotso=|\vec{u}_p|=1
    • ทุกตัวในนั้นต้องเป็น Unit Vector ด้วย

Example

A={[2−3],[64]}A=\left\{\begin{bmatrix} 2 \\ -3 \end{bmatrix}, \begin{bmatrix} 6 \\ 4 \end{bmatrix}\right\}

  • แล้วถามว่าเป็น Orthogonal Basis มั้ย?
    1. Linearly Independent ทั้งสองตัว ✅
    2. u1⋅u2=2(6)+(−3)(4)=0u_1 \cdot u_2=2(6)+(-3)(4)=0 ✅
    3. (แต่ถ้าอยากให้เป็น Orthonormal ด้วย ก็ต้องทำให้ทุกตัวเป็น Unit Vector)

Orthonormal, then whaaattttt?

  • พอทำให้เป็น Orthonormal แล้ว (กล่าวคือ Vector ที่อยู่ในโลก BB → กลายเป็น Basis แบบ Norm คือ 1)— Lecture 10 - Change of Basis
    • ก็คือไม่ต้องใช้ Transformation Matrix เลยนะ แบบนี้อะ
  • การที่จะเปลี่ยนจาก vBSv_{B_S} เป็น vBv_B ก็แค่คูณ (Dot Product) ด้วย Orthonormal Basis แต่ละตัวได้เลย

Example

v=[1−3]BSB={12[11],12[1−1]}v=\begin{bmatrix} 1\\ -3 \end{bmatrix}_{B_S}\quad \quad \quad B=\left\{ \frac{1}{\sqrt{2}}\begin{bmatrix} 1 \\ 1 \end{bmatrix}, \frac{1}{\sqrt{2}}\begin{bmatrix} 1 \\ -1 \end{bmatrix}\right\}

  • Vector ใน BB เป็น Orthonormal Basis หมดแล้วนะ!
  • การที่จะหา vBv_B (v,v1)=[1−3]⋅12[11]=−2(v,v_1)=\begin{bmatrix} 1\\ -3 \end{bmatrix}\cdot\frac{1}{\sqrt{2}}\begin{bmatrix} 1 \\ 1 \end{bmatrix}=-\sqrt{2} (v,v2)=[1−3]⋅12[1−1]=22(v,v_2)=\begin{bmatrix} 1\\ -3 \end{bmatrix}\cdot\frac{1}{\sqrt{2}}\begin{bmatrix} 1 \\ -1 \end{bmatrix}=2\sqrt{2} ∴vB=[−22]\therefore v_B=\begin{bmatrix} -\sqrt2\\ 2 \end{bmatrix}
  • ในที่อาจารย์สอนจะมีตัวที่ยังเป็น Orthogonal แล้วก็บอกอีกด้วยว่า ก็ต้องทำให้เป็น Orthonormal ก่อน

Orthogonal Projection

  • ทวนอีกรอบได้ที่ Projections — Lecture 7

    จากรูป AB→=u⃗\overrightarrow{AB}=\vec{u} และ AC→=v⃗​\overrightarrow{AC}=\vec{v}​
AD→=(u⃗⋅v⃗)v⃗∣v⃗∣2=Projv⃗u⃗\overrightarrow{AD}=(\vec{u}\cdot\vec{v})\frac{\vec{v}}{|\vec{v}|^2}=\text{Proj}_{\vec{v}}\vec{u}

What about projection onto basis?

  • ให้ HH เป็น Subspace ของ R3\mathbb{R}^3 ที่มี Orthonormal basis BB

B=\left{ \begin{bmatrix} 0 \ 1 \0 \end{bmatrix}, \frac{1}{\sqrt{2}}\begin{bmatrix} 1 \ 0 \ 1 \end{bmatrix}\right}
$$
อยากรู้ว่า projHv\text{proj}_H v เป็นอะไร ถ้า v=[122]v= \begin{bmatrix} 1\\ 2 \\ 2 \end{bmatrix}

  • เข้าสูตรตามนี้เลย
projHv=(v,v1)v1+(v,v2)v2\boxed{\large{\text{proj}_H v=(v,v_1)v_1+(v,v_2)v_2}}
  • โดยอันนี้จะเหมือนว่าเป็น Projection ของ vv onto a plane in R3\mathbb{R}^3— แต่ Plane นั้น represent ด้วย two vectors นั่นเองงงงง!

The Gram–Schmidt Process

Normal Basis→Gram–Schmidt (GSO)Orthogonal Basis→NormalizeOrthonormal Basis\boxed{\text{Normal Basis}}\xrightarrow{\text{Gram–Schmidt (GSO)}}\boxed{\text{Orthogonal Basis}}\xrightarrow{\text{Normalize}}\boxed{\text{Orthonormal Basis}}
  • สมมติให้ Normal Basis เป็น {x⃗1,x⃗2,… ,x⃗p}\{\vec{x}_1,\vec{x}_2,\dotso,\vec{x}_p\}
  • เราอยากได้ Orthogonal Basis เป็น {v⃗1,v⃗2,… ,v⃗p}\{\vec{v}_1,\vec{v}_2,\dotso,\vec{v}_p\}
  • Process คือได้ดังนี้
v⃗1=x⃗1,v⃗2=x⃗2−projv⃗1(x⃗2),v⃗3=x⃗3−projv⃗1(x⃗3)−projv⃗2(x⃗3), ⋮v⃗k=x⃗k−projv⃗1(x⃗k)−projv⃗2(x⃗k)−⋯−projv⃗k−1(x⃗k).\begin{align*} \vec{v}_1 &= \vec{x}_1, \\ \vec{v}_2 &= \vec{x}_2 - \text{proj}_{\vec{v}_1}(\vec{x}_2), \\ \vec{v}_3 &= \vec{x}_3 - \text{proj}_{\vec{v}_1}(\vec{x}_3) - \text{proj}_{\vec{v}_2}(\vec{x}_3), \\ &\ \vdots \\ \vec{v}_k &= \vec{x}_k - \text{proj}_{\vec{v}_1}(\vec{x}_k) - \text{proj}_{\vec{v}_2}(\vec{x}_k) - \cdots - \text{proj}_{\vec{v}_{k-1}}(\vec{x}_k). \end{align*}
  • ในรูปคือให้เห็นเป็นภาพว่ามันจะทำให้เป็น Orthogonal Basis ได้ยังไง
  • สรุปสุดท้ายจะได้ Orthogonal Basis={v1,v2,v3}\text{Orthogonal Basis} = \{v_1,v_2,v_3\} Orthonormal Basis={v1∣∣v1∣∣,v2∣∣v2∣∣,v3∣∣v3∣∣}\text{Orthonormal Basis} = \{\frac{v_1}{||v_1||},\frac{v_2}{||v_2||},\frac{v_3}{||v_3||}\}

Orthogonal Complement

  • The orthogonal complement of a subspace HH of VV, denoted by H⊥H^\perp, is the set of all vectors in VV that are orthogonal to every vector in HH. That is S⊥={v⃗∈Rn:v⃗⋅u⃗=0 for every u⃗ in S}\mathcal{S}^\perp=\{\vec{v}\in\mathcal{R}^n:\vec{v}\cdot\vec{u}=0\text{ for every }\vec{u}\text{ in }\mathcal{S}\}
  • For example, if S=Rn\mathcal{S}=\mathcal{R}^n , then S⊥={0}\mathcal{S}^\perp=\{0\}; and if S={0}\mathcal{S}=\{0\}, then S⊥=Rn\mathcal{S}^\perp=\mathcal{R}^n
  • If basis of HH is given by {v1,v2,… ,vk}\{v_1,v_2,\dotso,v_k\} then basis of H⊥H^\perp is derived from: (v,v1)=0(v,v2)=0⋮(v,vk)=0\begin{aligned} (v,v_1)&=0 \\ (v,v_2)&=0 \\ \vdots \\ (v,v_k)&=0 \end{aligned} where v=(x1,x2,… ,xk)∈H⊥v=(x_1,x_2,\dotso,x_k) \in H^\perp
    Therefore, basis of H⊥H^\perp basis of the solution of the following system of equations
  • ง่าย ๆ ก็คือเอา Vector แต่ละตัวใน Basis เนี่ยไป Dot กับ (x, y, z) = 0

  • ไม่จำเป็นต้องทำเป็น Orthonormal basis นะ!