Euclidean Space: Coordinate Vectors, Inner Products, Subspaces, and Orthogonal Projections

Fundamentals of the Standard Inner Product in Euclidean Space

  • Definition of the Standard Inner Product in Rn\mathbb{R}^n:

    • Let u,v∈Rnu, v \in \mathbb{R}^n be column vectors represented by:     u=(u1u2⋮un),v=(v1v2⋮vn)u = \begin{pmatrix} u_1 \\ u_2 \\ \vdots \\ u_n \end{pmatrix}, \quad v = \begin{pmatrix} v_1 \\ v_2 \\ \vdots \\ v_n \end{pmatrix}
    • The standard inner product (or dot product) of uu and vv, denoted (u,v)(u, v) or u⋅vu \cdot v, is defined by matrix multiplication:     (u,v):=u⋅v=uTv=(u1u2…un)(v1v2⋮vn)=u1v1+u2v2+⋯+unvn=∑i=1nuivi(u, v) := u \cdot v = u^T v = \begin{pmatrix} u_1 & u_2 & \dots & u_n \end{pmatrix} \begin{pmatrix} v_1 \\ v_2 \\ \vdots \\ v_n \end{pmatrix} = u_1 v_1 + u_2 v_2 + \dots + u_n v_n = \sum_{i=1}^n u_i v_i
  • Elementary Properties of the Dot Product in Rn\mathbb{R}^n:

    • Geometric definition in geometric vector spaces: a⃗⋅b⃗=∣a⃗∣∣b⃗∣cos⁡(a⃗,b⃗)\vec{a} \cdot \vec{b} = |\vec{a}| |\vec{b}| \cos(\vec{a}, \vec{b})
    • Symmetry (Commutativity): u⋅v=v⋅uu \cdot v = v \cdot u
    • Linearity (Distributivity over addition): (u+v)⋅w=u⋅w+v⋅w(u + v) \cdot w = u \cdot w + v \cdot w
    • Homogeneity (Associativity with scalar multiplication): (cu)⋅v=c(u⋅v)=u⋅(cv)(cu) \cdot v = c(u \cdot v) = u \cdot (cv) for any real scalar cc
    • Positive Definiteness: u⋅u≥0u \cdot u \ge 0, with u⋅u=0u \cdot u = 0 if and only if u=0u = 0
  • Concrete Computation Example:

    • Given the vectors in R3\mathbb{R}^3:     u=(2−5−1),v=(32−3)u = \begin{pmatrix} 2 \\ -5 \\ -1 \end{pmatrix}, \quad v = \begin{pmatrix} 3 \\ 2 \\ -3 \end{pmatrix}
    • The inner product is evaluated as:     u⋅v=uTv=(2−5−1)(32−3)=2×3+(−5)×2+(−1)×(−3)=6−10+3=−1u \cdot v = u^T v = \begin{pmatrix} 2 & -5 & -1 \end{pmatrix} \begin{pmatrix} 3 \\ 2 \\ -3 \end{pmatrix} = 2 \times 3 + (-5) \times 2 + (-1) \times (-3) = 6 - 10 + 3 = -1

Vector Norms, Normalization, and Euclidean Distance

  • Definition of Length and Norm:
    • The length (or norm) of a vector v∈Rnv \in \mathbb{R}^n is the nonnegative real scalar denoted by ∥v∥\|v\|, defined as:     ∥v∥=v⋅v=v12+v22+⋯+vn2\|v\| = \sqrt{v \cdot v} = \sqrt{v_1^2 + v_2^2 + \dots + v_n^2}
    • It follows directly that ∥v∥2=v⋅v\|v\|^2 = v \cdot v.
    • In R2\mathbb{R}^2, if v=(a,b)v = (a, b), the length coincides with the Pythagorean theorem: a2+b2\sqrt{a^2 + b^2}.

Geometric representation of vector norm via Pythagorean theorem

  • Unit Vectors and the Normalization Process:

    • A vector uu is defined as a unit vector if and only if its norm satisfies ∥u∥=1\|u\| = 1.
    • Any nonzero vector vv can be transformed into a unit vector pointing in the same direction by dividing it by its norm (scalar multiplication by 1/∥v∥1 / \|v\|):     u=1∥v∥vu = \frac{1}{\|v\|} v
    • This construction is known as normalizing the vector vv.
  • Normalization Example in R4\mathbb{R}^4:

    • Given v=(1,−2,2,0)Tv = (1, -2, 2, 0)^T:
    • Calculate the squared norm and norm:     ∥v∥2=v⋅v=12+(−2)2+22+02=1+4+4+0=9  ⟹  ∥v∥=9=3\|v\|^2 = v \cdot v = 1^2 + (-2)^2 + 2^2 + 0^2 = 1 + 4 + 4 + 0 = 9 \implies \|v\| = \sqrt{9} = 3
    • Multiply vv by 1/∥v∥1 / \|v\|:     u=13(1−220)=(1/3−2/32/30)u = \frac{1}{3} \begin{pmatrix} 1 \\ -2 \\ 2 \\ 0 \end{pmatrix} = \begin{pmatrix} 1/3 \\ -2/3 \\ 2/3 \\ 0 \end{pmatrix}
    • Verification of unit length:     ∥u∥2=(13)2+(−23)2+(23)2+02=19+49+49+0=1\|u\|^2 = \left(\frac{1}{3}\right)^2 + \left(-\frac{2}{3}\right)^2 + \left(\frac{2}{3}\right)^2 + 0^2 = \frac{1}{9} + \frac{4}{9} + \frac{4}{9} + 0 = 1
  • Normalization Example for Subspace Bases:

    • Let WW be the one-dimensional subspace of R2\mathbb{R}^2 spanned by x=(2/3,1)Tx = (2/3, 1)^T.
    • To find a unit vector zz forming an orthonormal basis for WW, any nonzero scalar multiple of xx spans WW.
    • Eliminate fractions by scaling xx by 33 to define y=3x=(2,3)Ty = 3x = (2, 3)^T.
    • Compute the norm of yy:     ∥y∥2=22+32=4+9=13  ⟹  ∥y∥=13\|y\|^2 = 2^2 + 3^2 = 4 + 9 = 13 \implies \|y\| = \sqrt{13}
    • Normalize yy:     z=113(23)=(2/133/13)z = \frac{1}{\sqrt{13}} \begin{pmatrix} 2 \\ 3 \end{pmatrix} = \begin{pmatrix} 2/\sqrt{13} \\ 3/\sqrt{13} \end{pmatrix}
    • An alternative opposite unit vector basis for WW is:     −z=(−2/13−3/13)-z = \begin{pmatrix} -2/\sqrt{13} \\ -3/\sqrt{13} \end{pmatrix}

Normalizing vector to produce a unit vector

  • Distance Between Vectors in Rn\mathbb{R}^n:
    • For vectors uu and vv in Rn\mathbb{R}^n, the distance between uu and vv, denoted dist(u,v)\text{dist}(u, v), is defined as the length of the displacement vector u−vu - v:     dist(u,v)=∥u−v∥=(u−v)⋅(u−v)=∑i=1n(ui−vi)2\text{dist}(u, v) = \|u - v\| = \sqrt{(u - v) \cdot (u - v)} = \sqrt{\sum_{i=1}^n (u_i - v_i)^2}
    • Concrete calculation for u=(7,1)Tu = (7, 1)^T and v=(3,2)Tv = (3, 2)^T in R2\mathbb{R}^2:     u−v=(71)−(32)=(4−1)u - v = \begin{pmatrix} 7 \\ 1 \end{pmatrix} - \begin{pmatrix} 3 \\ 2 \end{pmatrix} = \begin{pmatrix} 4 \\ -1 \end{pmatrix}dist(u,v)=42+(−1)2=16+1=17\text{dist}(u, v) = \sqrt{4^2 + (-1)^2} = \sqrt{16 + 1} = \sqrt{17}

General Inner Products and Euclidean Spaces

  • Axiomatic Definition of a General Inner Product:

    • An inner product on a real vector space VV is a function that associates a real number (u,v)(u, v) with each pair of vectors u,v∈Vu, v \in V such that the following four axioms are satisfied for all vectors u,v,w∈Vu, v, w \in V and all real scalars cc:
    • Axiom 1 (Symmetry):     (u,v)=(v,u)(u, v) = (v, u)
    • Axiom 2 (Linearity in the First Argument / Additivity):     (u+v,w)=(u,w)+(v,w)(u + v, w) = (u, w) + (v, w)
    • Axiom 3 (Homogeneity in the First Argument):     (cu,v)=c(u,v)=(u,cv)(cu, v) = c(u, v) = (u, cv)
    • Axiom 4 (Positive Definiteness):     (u,u)≥0for all u∈V,and(u,u)=0  ⟺  u=0(u, u) \ge 0 \quad \text{for all } u \in V, \quad \text{and} \quad (u, u) = 0 \iff u = 0
  • Definition of a Euclidean Space:

    • A Euclidean space is defined as any finite-dimensional real vector space VV equipped with an inner product (⋅,⋅):V×V→R(\cdot, \cdot) : V \times V \to \mathbb{R}. The structured pair is denoted (V,(⋅,⋅))(V, (\cdot, \cdot)).
  • Induced Geometric Concepts Under a General Inner Product:

    • Norm (Length): ∥u∥=(u,u)\left\|u\right\| = \sqrt{(u, u)}
    • Unit Vector: Any vector uu satisfying ∥u∥=1\left\|u\right\| = 1
    • Distance: dist(u,v)=∥u−v∥=(u−v,u−v)\text{dist}(u, v) = \left\|u - v\right\| = \sqrt{(u - v, u - v)}
    • Angle θ∈[0,π]\theta \in [0, \pi] between nonzero vectors uu and vv:     cos⁡(θ)=(u,v)∥u∥∥v∥\cos(\theta) = \frac{(u, v)}{\|u\| \|v\|}
    • Orthogonality: Vectors uu and vv are orthogonal (u⊥vu \perp v) if and only if:     (u,v)=0(u, v) = 0
  • Standard Inner Products on Classical Function and Matrix Spaces:

    • On the Euclidean vector space Rn\mathbb{R}^n:     (u,v)=u1v1+u2v2+⋯+unvn(u, v) = u_1 v_1 + u_2 v_2 + \dots + u_n v_n
    • On the function space C[a,b]C[a, b] (continuous real-valued functions on [a,b][a, b]):     (f,g)=∫abf(t)g(t) dt(f, g) = \int_a^b f(t)g(t)\,dt
    • On the matrix space Mn(R)M_n(\mathbb{R}) (Frobenius inner product of real n×nn \times n matrices):     (A,B)=trace(ATB)=trace(ABT)(A, B) = \text{trace}(A^T B) = \text{trace}(A B^T)
  • Analysis of Candidate Inner Product Forms:

    • In R2\mathbb{R}^2, (x,y)=3x1y1+4x2y2(x, y) = 3x_1 y_1 + 4x_2 y_2: Valid inner product. It satisfies symmetry, bilinear linearity, and positive definiteness (3x12+4x22>03x_1^2 + 4x_2^2 > 0 for all nonzero xx).
    • In R2\mathbb{R}^2, (x,y)=x1y1−2x1y2+3x2y1+4x2y2(x, y) = x_1 y_1 - 2x_1 y_2 + 3x_2 y_1 + 4x_2 y_2: Invalid inner product. Symmetry fails because (x,y)≠(y,x)(x, y) \ne (y, x) due to the unequal asymmetric cross-coefficients (−2≠3-2 \ne 3).
    • In R3\mathbb{R}^3, (x,y)=x1y1+x1y2+x2y1+4x2y2+x3y3(x, y) = x_1 y_1 + x_1 y_2 + x_2 y_1 + 4x_2 y_2 + x_3 y_3: Valid inner product. The representation matrix is symmetric with strictly positive leading principal minors (Δ1=1\Delta_1 = 1, Δ2=1(4)−1(1)=3\Delta_2 = 1(4) - 1(1) = 3, Δ3=1×3=3\Delta_3 = 1 \times 3 = 3).
    • In V=M2(R)V = M_2(\mathbb{R}), (A,B)=det⁡(AB)(A, B) = \det(AB): Invalid inner product. Linearity fails because det⁡((A1+A2)B)≠det⁡(A1B)+det⁡(A2B)\det((A_1 + A_2)B) \ne \det(A_1 B) + \det(A_2 B). In addition, determinants can be negative, violating positive definiteness.
    • In V=M2(R)V = M_2(\mathbb{R}), (A,B)=trace(AB)(A, B) = \text{trace}(AB): Invalid inner product. Positive definiteness fails; for example, skew-symmetric matrices yield negative values (trace(A2)<0\text{trace}(A^2) < 0).
    • In V=M2(R)V = M_2(\mathbb{R}), (A,B)=trace(ATB)(A, B) = \text{trace}(A^T B): Valid inner product (the standard Frobenius inner product). It is symmetric, linear, and trace(ATA)=∑i,jAij2≥0\text{trace}(A^T A) = \sum_{i,j} A_{ij}^2 \ge 0, equalling zero if and only if A=0A = 0.
    • In V=C1[0,1]V = C^1[0, 1], (f,g)=f′(t)g′(t)(f, g) = f'(t)g'(t): Invalid inner product. Positive definiteness fails because any non-zero constant function f(t)=kf(t) = k has derivative f′(t)=0f'(t) = 0, yielding (f,f)=0(f, f) = 0 for f≠0f \ne 0.
    • In VV (arbitrary discontinuous functions on [0,1][0, 1]), (f,g)=∫01f(t)g(t) dt(f, g) = \int_0^1 f(t)g(t)\,dt: Invalid inner product. Positive definiteness fails because a function non-zero at isolated points integrates to zero.
    • In V=C[0,1]V = C[0, 1], (f,g)=∫01f(t)g(t) dt(f, g) = \int_0^1 f(t)g(t)\,dt: Valid inner product. Continuity guarantees that ∫01f(t)2 dt=0  ⟺  f(t)=0\int_0^1 f(t)^2\,dt = 0 \iff f(t) = 0 everywhere on [0,1][0, 1].
    • In V=R2[x]V = \mathbb{R}_2[x], (p,q)=2p(−1)q(−1)+3p(0)q(0)+4p(1)q(1)(p, q) = 2p(-1)q(-1) + 3p(0)q(0) + 4p(1)q(1): Valid inner product. A quadratic polynomial having roots at three distinct points −1,0,1-1, 0, 1 must be identically the zero polynomial.

Representation Matrix and Inner Product Geometry

  • Definition of the Representation Matrix:

    • Any inner product (x,y)(x, y) on Rn\mathbb{R}^n defined as a bilinear form (x,y)=∑i=1n∑j=1naijxiyj(x, y) = \sum_{i=1}^n \sum_{j=1}^n a_{ij} x_i y_j can be represented in matrix form as:     (x,y)=xTRy(x, y) = x^T R y
    • Here, the vectors and matrix are given by:     xT=(x1x2…xn),R=(a11a12…a1na21a22…a2n⋮⋮⋱⋮an1an2…ann),y=(y1y2⋮yn)x^T = \begin{pmatrix} x_1 & x_2 & \dots & x_n \end{pmatrix}, \quad R = \begin{pmatrix} a_{11} & a_{12} & \dots & a_{1n} \\ a_{21} & a_{22} & \dots & a_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ a_{n1} & a_{n2} & \dots & a_{nn} \end{pmatrix}, \quad y = \begin{pmatrix} y_1 \\ y_2 \\ \vdots \\ y_n \end{pmatrix}
    • The square matrix R=(aij)R = (a_{ij}) is called the representation matrix of the inner product.
    • For RR to define an inner product, it must be symmetric (R=RTR = R^T) and positive definite (xTRx>0x^T R x > 0 for all x≠0x \ne 0).
  • Gram Matrix Formulation:

    • If U=(xy)U = \begin{pmatrix} x & y \end{pmatrix} is a matrix formed with vector columns xx and yy, the matrix product UTRUU^T R U packages all pairwise inner products:     UTRU=(xTRxxTRyyTRxyTRy)=((x,x)(x,y)(y,x)(y,y))U^T R U = \begin{pmatrix} x^T R x & x^T R y \\ y^T R x & y^T R y \end{pmatrix} = \begin{pmatrix} (x, x) & (x, y) \\ (y, x) & (y, y) \end{pmatrix}
    • This matrix completely captures metric geometry, including lengths, distances, angles, orthogonality, and linear independence.
  • Geometric Interpretation of Unit Sets:

    • Standard Inner Product: The unit sphere set consists of vectors satisfying:     ∥x∥=1  ⟹  x12+x22=1\|x\| = 1 \implies x_1^2 + x_2^2 = 1     This locus corresponds geometrically to a unit circle.
    • General Inner Product: The unit sphere set consists of vectors satisfying:     ∥x∥A=1  ⟹  xTRx=1\|x\|_A = 1 \implies x^T R x = 1     For example, the inner product defined by 4x12+x22=14x_1^2 + x_2^2 = 1 forms an ellipse in R2\mathbb{R}^2.
  • Concrete Exercises on Metric Computations:

    • Standard inner product in R3\mathbb{R}^3 with u=(1,1,2)Tu = (1, 1, 2)^T and v=(2,1,−1)Tv = (2, 1, -1)^T:
    • Norms: ∥u∥=12+12+22=6\left\|u\right\| = \sqrt{1^2 + 1^2 + 2^2} = \sqrt{6}, ∥v∥=22+12+(−1)2=6\left\|v\right\| = \sqrt{2^2 + 1^2 + (-1)^2} = \sqrt{6}
    • Inner Product: (u,v)=1(2)+1(1)+2(−1)=2+1−2=1(u, v) = 1(2) + 1(1) + 2(-1) = 2 + 1 - 2 = 1
    • Distance: u−v=(−1,0,3)T  ⟹  dist(u,v)=(−1)2+02+32=10u - v = (-1, 0, 3)^T \implies \text{dist}(u, v) = \sqrt{(-1)^2 + 0^2 + 3^2} = \sqrt{10}
    • Orthogonality and Angle: (u,v)≠0(u, v) \ne 0, so they are not orthogonal. The angle θ\theta satisfies:       cos⁡(θ)=(u,v)∥u∥∥v∥=166=16  ⟹  θ=arccos⁡(16)\cos(\theta) = \frac{(u, v)}{\|u\| \|v\|} = \frac{1}{\sqrt{6}\sqrt{6}} = \frac{1}{6} \implies \theta = \arccos\left(\frac{1}{6}\right)
    • General inner product in R2\mathbb{R}^2 defined by (u,v)=u1v1−2u1v2−2u2v1+5u2v2(u, v) = u_1 v_1 - 2u_1 v_2 - 2u_2 v_1 + 5u_2 v_2 with u=(1,1)Tu = (1, 1)^T and v=(0,−1)Tv = (0, -1)^T:
    • Matrix R=(1−2−25)R = \begin{pmatrix} 1 & -2 \\ -2 & 5 \end{pmatrix}
    • Norms: ∥u∥2=1(1)−2(1)(1)−2(1)(1)+5(1)(1)=2  ⟹  ∥u∥=2\left\|u\right\|^2 = 1(1) - 2(1)(1) - 2(1)(1) + 5(1)(1) = 2 \implies \left\|u\right\| = \sqrt{2}
    • ∥v∥2=0−0−0+5(−1)(−1)=5  ⟹  ∥v∥=5\left\|v\right\|^2 = 0 - 0 - 0 + 5(-1)(-1) = 5 \implies \left\|v\right\| = \sqrt{5}
    • Inner Product: (u,v)=1(0)−2(1)(−1)−2(1)(0)+5(1)(−1)=2−5=−3(u, v) = 1(0) - 2(1)(-1) - 2(1)(0) + 5(1)(-1) = 2 - 5 = -3
    • Distance: u−v=(1,2)T  ⟹  ∥u−v∥2=1(1)−2(1)(2)−2(2)(1)+5(2)(2)=1−4−4+20=13  ⟹  dist(u,v)=13u - v = (1, 2)^T \implies \left\|u - v\right\|^2 = 1(1) - 2(1)(2) - 2(2)(1) + 5(2)(2) = 1 - 4 - 4 + 20 = 13 \implies \text{dist}(u, v) = \sqrt{13}
    • Angle: Non-orthogonal. The angle is:       cos⁡(θ)=−325=−310  ⟹  θ=arccos⁡(−310)\cos(\theta) = \frac{-3}{\sqrt{2}\sqrt{5}} = -\frac{3}{\sqrt{10}} \implies \theta = \arccos\left(-\frac{3}{\sqrt{10}}\right)
    • General inner product in R3\mathbb{R}^3 defined by (u,v)=u1v1+2u2v2+3u3v3−u1v3−u3v1(u, v) = u_1 v_1 + 2u_2 v_2 + 3u_3 v_3 - u_1 v_3 - u_3 v_1 with u=(1,1,2)Tu = (1, 1, 2)^T and v=(2,1,−1)Tv = (2, 1, -1)^T:
    • Matrix R=(10−1020−103)R = \begin{pmatrix} 1 & 0 & -1 \\ 0 & 2 & 0 \\ -1 & 0 & 3 \end{pmatrix}
    • Norms: ∥u∥2=1(1)+2(1)+3(4)−2(1)(2)=11  ⟹  ∥u∥=11\left\|u\right\|^2 = 1(1) + 2(1) + 3(4) - 2(1)(2) = 11 \implies \left\|u\right\| = \sqrt{11}
    • ∥v∥2=1(4)+2(1)+3(1)−2(2)(−1)=4+2+3+4=13  ⟹  ∥v∥=13\left\|v\right\|^2 = 1(4) + 2(1) + 3(1) - 2(2)(-1) = 4 + 2 + 3 + 4 = 13 \implies \left\|v\right\| = \sqrt{13}
    • Inner Product: (u,v)=1(2)+2(1)(1)+3(2)(−1)−(1(−1)+2(2))=2+2−6−3=−5(u, v) = 1(2) + 2(1)(1) + 3(2)(-1) - (1(-1) + 2(2)) = 2 + 2 - 6 - 3 = -5
    • Distance: u−v=(−1,0,3)T  ⟹  ∥u−v∥2=1(1)+2(0)+3(9)−2(−1)(3)=1+27+6=34  ⟹  dist(u,v)=34u - v = (-1, 0, 3)^T \implies \left\|u - v\right\|^2 = 1(1) + 2(0) + 3(9) - 2(-1)(3) = 1 + 27 + 6 = 34 \implies \text{dist}(u, v) = \sqrt{34}
    • Angle: Non-orthogonal. The angle is:       cos⁡(θ)=−51113=−5143  ⟹  θ=arccos⁡(−5143)\cos(\theta) = \frac{-5}{\sqrt{11}\sqrt{13}} = -\frac{5}{\sqrt{143}} \implies \theta = \arccos\left(-\frac{5}{\sqrt{143}}\right)
  • Expansion Identities and the Pythagorean Theorem:

    • Expansion Identities:     ∥u+v∥2=∥u∥2+∥v∥2+2(u,v)\|u + v\|^2 = \|u\|^2 + \|v\|^2 + 2(u, v)∥u−v∥2=∥u∥2+∥v∥2−2(u,v)\|u - v\|^2 = \|u\|^2 + \|v\|^2 - 2(u, v)
    • The Pythagorean Theorem:     Two vectors uu and vv in a Euclidean vector space VV are orthogonal if and only if:     ∥u+v∥2=∥u∥2+∥v∥2\|u + v\|^2 = \|u\|^2 + \|v\|^2

Orthogonal Complements and Fundamental Subspaces

  • Definitions and Fundamental Theorems:

    • Let WW be a subspace of a Euclidean space VV. A vector uu is orthogonal to WW (u⊥Wu \perp W) if and only if u⊥vu \perp v for every vector v∈Wv \in W.
    • The orthogonal complement of WW, denoted W⊥W^\perp, is defined as the set:     W⊥={z∈V:z⊥W}={z∈V:(z,v)=0,∀v∈W}W^\perp = \{z \in V : z \perp W\} = \{z \in V : (z, v) = 0, \forall v \in W\}
    • Basis Criterion: If E={e1,e2,…,ek}E = \{e_1, e_2, \dots, e_k\} is a basis of WW, then:     W⊥={z∈V:(z,e)=0,∀e∈E}W^\perp = \{z \in V : (z, e) = 0, \forall e \in E\}
    • Theorem: W⊥W^\perp is a subspace of VV.
    • Geometric Duality: In R3\mathbb{R}^3, if WW is a plane passing through the origin and LL is the normal line passing through the origin, then L=W⊥L = W^\perp and W=L⊥W = L^\perp.
  • Orthogonal Sets and Linear Independence:

    • A set of vectors {u1,u2,…,up}\{u_1, u_2, \dots, u_p\} in a Euclidean space is called an orthogonal set if every distinct pair of vectors is orthogonal:     (ui,uj)=0whenever i≠j(u_i, u_j) = 0 \quad \text{whenever } i \ne j
    • Theorem: If S={u1,u2,…,up}S = \{u_1, u_2, \dots, u_p\} is an orthogonal set of nonzero vectors, then SS is linearly independent. Consequently, SS forms an orthogonal basis for the subspace spanned by SS.
  • Subspace Orthogonality Test Example:

    • Given the inner product on R3\mathbb{R}^3:     (u,v)=u1v1+2u2v2+3u3v3−u1v2−u2v1+u2v3+u3v2(u, v) = u_1 v_1 + 2u_2 v_2 + 3u_3 v_3 - u_1 v_2 - u_2 v_1 + u_2 v_3 + u_3 v_2
    • Representation matrix:     R=(1−10−121013)R = \begin{pmatrix} 1 & -1 & 0 \\ -1 & 2 & 1 \\ 0 & 1 & 3 \end{pmatrix}
    • Subspaces: U=span⁡{(8,−6,1)T,(−7,5,0)T}U = \operatorname{span}\{(8, -6, 1)^T, (-7, 5, 0)^T\} and V=span⁡{(1,0,−8)T,(0,1,6)T}V = \operatorname{span}\{(1, 0, -8)^T, (0, 1, 6)^T\}.
    • Test u1=(8,−6,1)Tu_1 = (8, -6, 1)^T and v1=(1,0,−8)Tv_1 = (1, 0, -8)^T:     Rv1=(1−10−121013)(10−8)=(1−9−24)R v_1 = \begin{pmatrix} 1 & -1 & 0 \\ -1 & 2 & 1 \\ 0 & 1 & 3 \end{pmatrix} \begin{pmatrix} 1 \\ 0 \\ -8 \end{pmatrix} = \begin{pmatrix} 1 \\ -9 \\ -24 \end{pmatrix}(u1,v1)=u1TRv1=8(1)+(−6)(−9)+1(−24)=8+54−24=38≠0(u_1, v_1) = u_1^T R v_1 = 8(1) + (-6)(-9) + 1(-24) = 8 + 54 - 24 = 38 \ne 0
    • Conclusion: Subspaces UU and VV are not orthogonal.
  • Orthogonality in Polynomial Spaces:

    • Problem: Find real coefficients aa and bb such that p(x)=ax+bp(x) = ax + b is orthogonal to W=span⁡{x2,1}W = \operatorname{span}\{x^2, 1\} on [0,1][0, 1] under the standard inner product (f,g)=∫01f(t)g(t) dt(f, g) = \int_0^1 f(t)g(t)\,dt.
    • Condition 1: (ax+b,1)=0(ax + b, 1) = 0:     ∫01(at+b) dt=[at22+bt]01=a2+b=0  ⟹  b=−a2\int_0^1 (at + b)\,dt = \left[ \frac{at^2}{2} + bt \right]_0^1 = \frac{a}{2} + b = 0 \implies b = -\frac{a}{2}
    • Condition 2: (ax+b,x2)=0(ax + b, x^2) = 0:     ∫01(at3+bt2) dt=[at44+bt33]01=a4+b3=0\int_0^1 (at^3 + bt^2)\,dt = \left[ \frac{at^4}{4} + \frac{bt^3}{3} \right]_0^1 = \frac{a}{4} + \frac{b}{3} = 0
    • Substitute b=−a/2b = -a/2:     a4+−a/23=a4−a6=a12=0  ⟹  a=0  ⟹  b=0\frac{a}{4} + \frac{-a/2}{3} = \frac{a}{4} - \frac{a}{6} = \frac{a}{12} = 0 \implies a = 0 \implies b = 0
    • The only linear polynomial orthogonal to WW is the zero polynomial (a=0a = 0, b=0b = 0).
  • Duality Relations for Fundamental Subspaces Under a General Inner Product:

    • Theorem: Let AA be an m×nm \times n matrix, and let RR be the symmetric positive definite representation matrix of an inner product on Rn\mathbb{R}^n. The orthogonal complements of the fundamental subspaces satisfy:     Col⁡(A)⊥=Nul⁡(ATR)=R−1Nul⁡(AT)\operatorname{Col}(A)^\perp = \operatorname{Nul}(A^T R) = R^{-1} \operatorname{Nul}(A^T)Nul⁡(A)⊥=Col⁡(R−1AT)=R−1Col⁡(AT)\operatorname{Nul}(A)^\perp = \operatorname{Col}(R^{-1} A^T) = R^{-1} \operatorname{Col}(A^T)
  • Computation of Basis and Dimension of F⊥F^\perp for Spanned Subspaces:

    • Let F=span⁡{(1,1,1),(2,1,0),(1,0,−1)}F = \operatorname{span}\{(1, 1, 1), (2, 1, 0), (1, 0, -1)\} in R3\mathbb{R}^3.
    • Because (1,0,−1)=(2,1,0)−(1,1,1)(1, 0, -1) = (2, 1, 0) - (1, 1, 1), the subspace has dimension dim⁡(F)=2\dim(F) = 2, with basis vectors v1=(1,1,1)Tv_1 = (1, 1, 1)^T and v2=(2,1,0)Tv_2 = (2, 1, 0)^T.
    • Case A: Inner product (x,y)=x1y1+2x2y2+3x3y3−x1y3−x3y1(x, y) = x_1 y_1 + 2x_2 y_2 + 3x_3 y_3 - x_1 y_3 - x_3 y_1, matrix R=(10−1020−103)R = \begin{pmatrix} 1 & 0 & -1 \\ 0 & 2 & 0 \\ -1 & 0 & 3 \end{pmatrix}:
    • dim⁡(F⊥)=3−dim⁡(F)=3−2=1\dim(F^\perp) = 3 - \dim(F) = 3 - 2 = 1
    • A vector z=(x1,x2,x3)T∈F⊥z = (x_1, x_2, x_3)^T \in F^\perp satisfies (z,v1)=0(z, v_1) = 0 and (z,v2)=0(z, v_2) = 0:       (z,v1)=zTRv1=(x1x2x3)(022)=2x2+2x3=0  ⟹  x2=−x3(z, v_1) = z^T R v_1 = \begin{pmatrix} x_1 & x_2 & x_3 \end{pmatrix} \begin{pmatrix} 0 \\ 2 \\ 2 \end{pmatrix} = 2x_2 + 2x_3 = 0 \implies x_2 = -x_3(z,v2)=zTRv2=(x1x2x3)(22−2)=2x1+2x2−2x3=0(z, v_2) = z^T R v_2 = \begin{pmatrix} x_1 & x_2 & x_3 \end{pmatrix} \begin{pmatrix} 2 \\ 2 \\ -2 \end{pmatrix} = 2x_1 + 2x_2 - 2x_3 = 0
    • Substitute x2=−x3x_2 = -x_3:       2x1−2x3−2x3=0  ⟹  2x1=4x3  ⟹  x1=2x32x_1 - 2x_3 - 2x_3 = 0 \implies 2x_1 = 4x_3 \implies x_1 = 2x_3
    • Setting x3=1x_3 = 1 yields x1=2,x2=−1x_1 = 2, x_2 = -1. Thus:       F⊥=span⁡{(2,−1,1)T},dim⁡(F⊥)=1F^\perp = \operatorname{span}\{(2, -1, 1)^T\}, \quad \dim(F^\perp) = 1
    • Case B: Inner product (x,y)=x1y1+2x2y2+3x3y3−x1y2−x2y1+x2y3+x3y2(x, y) = x_1 y_1 + 2x_2 y_2 + 3x_3 y_3 - x_1 y_2 - x_2 y_1 + x_2 y_3 + x_3 y_2, matrix R=(1−10−121013)R = \begin{pmatrix} 1 & -1 & 0 \\ -1 & 2 & 1 \\ 0 & 1 & 3 \end{pmatrix}:
    • dim⁡(F⊥)=3−2=1\dim(F^\perp) = 3 - 2 = 1
    • Orthogonality equations:       (z,v1)=zTRv1=(x1x2x3)(024)=2x2+4x3=0  ⟹  x2=−2x3(z, v_1) = z^T R v_1 = \begin{pmatrix} x_1 & x_2 & x_3 \end{pmatrix} \begin{pmatrix} 0 \\ 2 \\ 4 \end{pmatrix} = 2x_2 + 4x_3 = 0 \implies x_2 = -2x_3(z,v2)=zTRv2=(x1x2x3)(101)=x1+x3=0  ⟹  x1=−x3(z, v_2) = z^T R v_2 = \begin{pmatrix} x_1 & x_2 & x_3 \end{pmatrix} \begin{pmatrix} 1 \\ 0 \\ 1 \end{pmatrix} = x_1 + x_3 = 0 \implies x_1 = -x_3
    • Setting x3=1x_3 = 1 yields x1=−1,x2=−2x_1 = -1, x_2 = -2. Thus:       F⊥=span⁡{(−1,−2,1)T},dim⁡(F⊥)=1F^\perp = \operatorname{span}\{(-1, -2, 1)^T\}, \quad \dim(F^\perp) = 1
  • Computation of Basis and Dimension of F⊥F^\perp for Subspaces Defined by Linear Systems:

    • Let F={(x1,x2,x3)∈R3:x1+x2+x3=0,  2x1+x2−x3=0}F = \{(x_1, x_2, x_3) \in \mathbb{R}^3 : x_1 + x_2 + x_3 = 0, \; 2x_1 + x_2 - x_3 = 0\}.
    • Solve the homogeneous system: subtracting the first from the second equation gives x1−2x3=0  ⟹  x1=2x3x_1 - 2x_3 = 0 \implies x_1 = 2x_3. Then 2x3+x2+x3=0  ⟹  x2=−3x32x_3 + x_2 + x_3 = 0 \implies x_2 = -3x_3.
    • Basis for FF: F=span⁡{(2,−3,1)T}F = \operatorname{span}\{(2, -3, 1)^T\}, with dim⁡(F)=1\dim(F) = 1.
    • Dimension of orthogonal complement: dim⁡(F⊥)=3−dim⁡(F)=3−1=2\dim(F^\perp) = 3 - \dim(F) = 3 - 1 = 2.
    • Case A (Under representation matrix R=(10−1020−103)R = \begin{pmatrix} 1 & 0 & -1 \\ 0 & 2 & 0 \\ -1 & 0 & 3 \end{pmatrix}):
    • Let v=(2,−3,1)Tv = (2, -3, 1)^T. Any vector z=(x1,x2,x3)T∈F⊥z = (x_1, x_2, x_3)^T \in F^\perp satisfies zTRv=0z^T R v = 0:       Rv=(10−1020−103)(2−31)=(1−61)R v = \begin{pmatrix} 1 & 0 & -1 \\ 0 & 2 & 0 \\ -1 & 0 & 3 \end{pmatrix} \begin{pmatrix} 2 \\ -3 \\ 1 \end{pmatrix} = \begin{pmatrix} 1 \\ -6 \\ 1 \end{pmatrix}zT(Rv)=x1−6x2+x3=0z^T (R v) = x_1 - 6x_2 + x_3 = 0
    • Parameterize solutions with free variables x2,x3x_2, x_3:       x1=6x2−x3  ⟹  (x1x2x3)=x2(610)+x3(−101)x_1 = 6x_2 - x_3 \implies \begin{pmatrix} x_1 \\ x_2 \\ x_3 \end{pmatrix} = x_2 \begin{pmatrix} 6 \\ 1 \\ 0 \end{pmatrix} + x_3 \begin{pmatrix} -1 \\ 0 \\ 1 \end{pmatrix}
    • Result: F⊥=span⁡{(6,1,0)T,(−1,0,1)T}F^\perp = \operatorname{span}\{(6, 1, 0)^T, (-1, 0, 1)^T\}, dim⁡(F⊥)=2\dim(F^\perp) = 2
    • Case B (Under representation matrix R=(1−10−121013)R = \begin{pmatrix} 1 & -1 & 0 \\ -1 & 2 & 1 \\ 0 & 1 & 3 \end{pmatrix}):
    • Compute RvR v for v=(2,−3,1)Tv = (2, -3, 1)^T:       Rv=(1−10−121013)(2−31)=(5−70)R v = \begin{pmatrix} 1 & -1 & 0 \\ -1 & 2 & 1 \\ 0 & 1 & 3 \end{pmatrix} \begin{pmatrix} 2 \\ -3 \\ 1 \end{pmatrix} = \begin{pmatrix} 5 \\ -7 \\ 0 \end{pmatrix}zT(Rv)=5x1−7x2+0x3=0z^T (R v) = 5x_1 - 7x_2 + 0x_3 = 0
    • Parameterize solutions:       5x1=7x2  ⟹  basis vectors are (7,5,0)T and (0,0,1)T5x_1 = 7x_2 \implies \text{basis vectors are } (7, 5, 0)^T \text{ and } (0, 0, 1)^T
    • Result: F⊥=span⁡{(7,5,0)T,(0,0,1)T}F^\perp = \operatorname{span}\{(7, 5, 0)^T, (0, 0, 1)^T\}, dim⁡(F⊥)=2\dim(F^\perp) = 2
  • Parameter Solvability Analysis for Subspace Membership in F⊥F^\perp:

    • Consider the inner product on R3\mathbb{R}^3:     (x,y)=4x1y1−2x1y2+2x1y3−2x2y1+6x2y2+4x2y3+2x3y1+4x3y2+8x3y3(x, y) = 4x_1 y_1 - 2x_1 y_2 + 2x_1 y_3 - 2x_2 y_1 + 6x_2 y_2 + 4x_2 y_3 + 2x_3 y_1 + 4x_3 y_2 + 8x_3 y_3     Representation matrix:     R=(4−22−264248)R = \begin{pmatrix} 4 & -2 & 2 \\ -2 & 6 & 4 \\ 2 & 4 & 8 \end{pmatrix}
    • Scenario 1: Subspace F=span⁡{v1,v2}F = \operatorname{span}\{v_1, v_2\} with v1=(1,0,1)Tv_1 = (1, 0, 1)^T and v2=(−1,1,1)Tv_2 = (-1, 1, 1)^T.
    • Dimension of F⊥F^\perp: Since v1,v2v_1, v_2 are linearly independent, dim⁡(F)=2  ⟹  dim⁡(F⊥)=3−2=1\dim(F) = 2 \implies \dim(F^\perp) = 3 - 2 = 1.
    • A direct solve of zTRv1=0z^T R v_1 = 0 and zTRv2=0z^T R v_2 = 0 yields F⊥=span⁡{(−5/4,−5/4,1)T}F^\perp = \operatorname{span}\{(-5/4, -5/4, 1)^T\}.
    • Test membership of u=(1,−1,m)T∈F⊥u = (1, -1, m)^T \in F^\perp:       Rv1=(4−22−264248)(101)=(6210)R v_1 = \begin{pmatrix} 4 & -2 & 2 \\ -2 & 6 & 4 \\ 2 & 4 & 8 \end{pmatrix} \begin{pmatrix} 1 \\ 0 \\ 1 \end{pmatrix} = \begin{pmatrix} 6 \\ 2 \\ 10 \end{pmatrix}(u,v1)=uT(Rv1)=1(6)+(−1)(2)+m(10)=4+10m=0  ⟹  m=−410=−25(u, v_1) = u^T (R v_1) = 1(6) + (-1)(2) + m(10) = 4 + 10m = 0 \implies m = -\frac{4}{10} = -\frac{2}{5}Rv2=(4−22−264248)(−111)=(−4−2+22+6+4−2+4+8)=(−41210)R v_2 = \begin{pmatrix} 4 & -2 & 2 \\ -2 & 6 & 4 \\ 2 & 4 & 8 \end{pmatrix} \begin{pmatrix} -1 \\ 1 \\ 1 \end{pmatrix} = \begin{pmatrix} -4 - 2 + 2 \\ 2 + 6 + 4 \\ -2 + 4 + 8 \end{pmatrix} = \begin{pmatrix} -4 \\ 12 \\ 10 \end{pmatrix}(u,v2)=uT(Rv2)=1(−4)+(−1)(12)+m(10)=−16+10m=0  ⟹  m=1610=85(u, v_2) = u^T (R v_2) = 1(-4) + (-1)(12) + m(10) = -16 + 10m = 0 \implies m = \frac{16}{10} = \frac{8}{5}
    • Conclusion: Since −2/5≠8/5-2/5 \ne 8/5, no real value of mm exists such that u∈F⊥u \in F^\perp.
    • Scenario 2: Subspace F={(x1,x2,x3)∈R3:2x1+3x2−x3=0}F = \{(x_1, x_2, x_3) \in \mathbb{R}^3 : 2x_1 + 3x_2 - x_3 = 0\}.
    • Basis for FF: Setting free variables x1,x2x_1, x_2 produces basis vectors w1=(1,0,2)Tw_1 = (1, 0, 2)^T and w2=(0,1,3)Tw_2 = (0, 1, 3)^T, so dim⁡(F)=2\dim(F) = 2.
    • Dimension: dim⁡(F⊥)=3−2=1\dim(F^\perp) = 3 - 2 = 1.
    • Test membership of u=(1,−1,m)T∈F⊥u = (1, -1, m)^T \in F^\perp:       Rw1=(4−22−264248)(102)=(8618)R w_1 = \begin{pmatrix} 4 & -2 & 2 \\ -2 & 6 & 4 \\ 2 & 4 & 8 \end{pmatrix} \begin{pmatrix} 1 \\ 0 \\ 2 \end{pmatrix} = \begin{pmatrix} 8 \\ 6 \\ 18 \end{pmatrix}(u,w1)=1(8)+(−1)(6)+m(18)=2+18m=0  ⟹  18m+8=0  ⟹  m=−818=−49(u, w_1) = 1(8) + (-1)(6) + m(18) = 2 + 18m = 0 \implies 18m + 8 = 0 \implies m = -\frac{8}{18} = -\frac{4}{9}Rw2=(4−22−264248)(013)=(41828)R w_2 = \begin{pmatrix} 4 & -2 & 2 \\ -2 & 6 & 4 \\ 2 & 4 & 8 \end{pmatrix} \begin{pmatrix} 0 \\ 1 \\ 3 \end{pmatrix} = \begin{pmatrix} 4 \\ 18 \\ 28 \end{pmatrix}(u,w2)=1(4)+(−1)(18)+m(28)=−14+28m=0  ⟹  28m−14=0  ⟹  m=1428=12(u, w_2) = 1(4) + (-1)(18) + m(28) = -14 + 28m = 0 \implies 28m - 14 = 0 \implies m = \frac{14}{28} = \frac{1}{2}
    • Conclusion: The system is contradictory (−4/9≠1/2-4/9 \ne 1/2), so no real value of mm exists.

Orthogonal Projection Theory and Coordinate Calculation

  • The Orthogonal Decomposition Theorem:

    • Let WW be a subspace of an inner product space VV. Each vector x∈Vx \in V can be uniquely represented in the decomposed form:     x=y+z,where y∈W and z∈W⊥x = y + z, \quad \text{where } y \in W \text{ and } z \in W^\perp
    • The unique vector yy is defined as the orthogonal projection of xx onto WW, denoted:     y=proj⁡W(x)y = \operatorname{proj}_W(x)
    • The vector z=x−yz = x - y is orthogonal to WW, satisfying (x−y,v)=0(x - y, v) = 0 for all v∈Wv \in W.
    • Direct Sum Decomposition: If VV is finite-dimensional, and {v1,…,vm}\{v_1, \dots, v_m\} is a basis of WW, and {vm+1,…,vn}\{v_{m+1}, \dots, v_n\} is a basis of W⊥W^\perp, then the union {v1,…,vm,vm+1,…,vn}\{v_1, \dots, v_m, v_{m+1}, \dots, v_n\} constitutes a basis of VV.
  • Normal Equations for General Bases:

    • Let {v1,v2,…,vm}\{v_1, v_2, \dots, v_m\} be any arbitrary basis for WW.
    • Since y=proj⁡W(x)∈Wy = \operatorname{proj}_W(x) \in W, it can be expressed as a linear combination:     y=c1v1+c2v2+⋯+cmvmy = c_1 v_1 + c_2 v_2 + \dots + c_m v_m
    • Since z=x−y⊥Wz = x - y \perp W, the orthogonality condition requires (x−y,vk)=0(x - y, v_k) = 0, or equivalently:     (y,vk)=(x,vk)for each k=1,2,…,m(y, v_k) = (x, v_k) \quad \text{for each } k = 1, 2, \dots, m
    • Expanding yy yields the linear system of normal equations:     ∑i=1m(vi,vk)ci=(x,vk)for k=1,2,…,m\sum_{i=1}^m (v_i, v_k) c_i = (x, v_k) \quad \text{for } k = 1, 2, \dots, m
    • Matrix Formulation:     Let U=([v1]E[v2]E…[vm]E)U = \begin{pmatrix} [v_1]_E & [v_2]_E & \dots & [v_m]_E \end{pmatrix} and coordinate vector C=(c1c2…cm)TC = \begin{pmatrix} c_1 & c_2 & \dots & c_m \end{pmatrix}^T.     (U,U)C=(U,x)(U, U) C = (U, x)     where (U,U)=UTRU(U, U) = U^T R U is the m×mm \times m Gram matrix, and (U,x)=UTRx(U, x) = U^T R x is the right-hand side vector.
  • Comprehensive Projection Examples:

    • Example 1:
    • Space: R3\mathbb{R}^3 equipped with the inner product matrix R=(1−10−121013)R = \begin{pmatrix} 1 & -1 & 0 \\ -1 & 2 & 1 \\ 0 & 1 & 3 \end{pmatrix}
    • Subspace U=span⁡{v1,v2}U = \operatorname{span}\{v_1, v_2\} with v1=(1,1,1)Tv_1 = (1, 1, 1)^T and v2=(2,1,−1)Tv_2 = (2, 1, -1)^T
    • Vector to project: x=(1,2,3)Tx = (1, 2, 3)^T
    • Normal equations: ((v1,v1)(v1,v2)(v2,v1)(v2,v2))(c1c2)=((x,v1)(x,v2))\begin{pmatrix} (v_1, v_1) & (v_1, v_2) \\ (v_2, v_1) & (v_2, v_2) \end{pmatrix} \begin{pmatrix} c_1 \\ c_2 \end{pmatrix} = \begin{pmatrix} (x, v_1) \\ (x, v_2) \end{pmatrix}
    • Metric evaluations:       Rv1=(024)  ⟹  (v1,v1)=v1TRv1=0+2+4=6R v_1 = \begin{pmatrix} 0 \\ 2 \\ 4 \end{pmatrix} \implies (v_1, v_1) = v_1^T R v_1 = 0 + 2 + 4 = 6(v2,v1)=v2TRv1=2(0)+1(2)+(−1)(4)=−2(v_2, v_1) = v_2^T R v_1 = 2(0) + 1(2) + (-1)(4) = -2Rv2=(1−10−121013)(21−1)=(1−1−2)  ⟹  (v2,v2)=v2TRv2=2(1)+1(−1)+(−1)(−2)=3R v_2 = \begin{pmatrix} 1 & -1 & 0 \\ -1 & 2 & 1 \\ 0 & 1 & 3 \end{pmatrix} \begin{pmatrix} 2 \\ 1 \\ -1 \end{pmatrix} = \begin{pmatrix} 1 \\ -1 \\ -2 \end{pmatrix} \implies (v_2, v_2) = v_2^T R v_2 = 2(1) + 1(-1) + (-1)(-2) = 3(x,v1)=xT(Rv1)=1(0)+2(2)+3(4)=16(x, v_1) = x^T (R v_1) = 1(0) + 2(2) + 3(4) = 16(x,v2)=xT(Rv2)=1(1)+2(−1)+3(−2)=−7(x, v_2) = x^T (R v_2) = 1(1) + 2(-1) + 3(-2) = -7
    • Normal system:       (6−2−23)(c1c2)=(16−7)\begin{pmatrix} 6 & -2 \\ -2 & 3 \end{pmatrix} \begin{pmatrix} c_1 \\ c_2 \end{pmatrix} = \begin{pmatrix} 16 \\ -7 \end{pmatrix}
    • Determinant: Δ=6(3)−(−2)(−2)=18−4=14\Delta = 6(3) - (-2)(-2) = 18 - 4 = 14
    • Solution via Cramer's rule:       c1=16(3)−(−7)(−2)14=48−1414=3414=177c_1 = \frac{16(3) - (-7)(-2)}{14} = \frac{48 - 14}{14} = \frac{34}{14} = \frac{17}{7}c2=6(−7)−(−2)(16)14=−42+3214=−1014=−57c_2 = \frac{6(-7) - (-2)(16)}{14} = \frac{-42 + 32}{14} = -\frac{10}{14} = -\frac{5}{7}
    • Resulting projection vector:       y=proj⁡U(x)=177(111)−57(21−1)=(17/7−10/717/7−5/717/7+5/7)=(112/722/7)y = \operatorname{proj}_U(x) = \frac{17}{7} \begin{pmatrix} 1 \\ 1 \\ 1 \end{pmatrix} - \frac{5}{7} \begin{pmatrix} 2 \\ 1 \\ -1 \end{pmatrix} = \begin{pmatrix} 17/7 - 10/7 \\ 17/7 - 5/7 \\ 17/7 + 5/7 \end{pmatrix} = \begin{pmatrix} 1 \\ 12/7 \\ 22/7 \end{pmatrix}
    • Example 2:
    • Space: R4\mathbb{R}^4 with inner product (x,y)=x1y1+4x2y2+2x3y3+3x4y4(x, y) = x_1 y_1 + 4x_2 y_2 + 2x_3 y_3 + 3x_4 y_4
    • Subspace: U=span⁡{(0,1,0,1)T,(0,1,1,0)T,(1,1,1,1)T,(1,2,1,2)T}U = \operatorname{span}\{(0, 1, 0, 1)^T, (0, 1, 1, 0)^T, (1, 1, 1, 1)^T, (1, 2, 1, 2)^T\}
    • Observe that (1,2,1,2)T=(0,1,0,1)T+(1,1,1,1)T(1, 2, 1, 2)^T = (0, 1, 0, 1)^T + (1, 1, 1, 1)^T, leaving a basis of three vectors:       v1=(0,1,0,1)T,v2=(0,1,1,0)T,v3=(1,1,1,1)Tv_1 = (0, 1, 0, 1)^T, \quad v_2 = (0, 1, 1, 0)^T, \quad v_3 = (1, 1, 1, 1)^T
    • Vector to project: x=(1,1,0,0)Tx = (1, 1, 0, 0)^T
    • Solving the normal system (UTRU)C=UTRx(U^T R U) C = U^T R x yields the coordinate vector:       C=(c1c2c3)=(7/2511/251/25)C = \begin{pmatrix} c_1 \\ c_2 \\ c_3 \end{pmatrix} = \begin{pmatrix} 7/25 \\ 11/25 \\ 1/25 \end{pmatrix}
    • Resulting projection vector:       y=proj⁡U(x)=725(0101)+1125(0110)+125(1111)=(1/2519/2512/258/25)y = \operatorname{proj}_U(x) = \frac{7}{25} \begin{pmatrix} 0 \\ 1 \\ 0 \\ 1 \end{pmatrix} + \frac{11}{25} \begin{pmatrix} 0 \\ 1 \\ 1 \\ 0 \end{pmatrix} + \frac{1}{25} \begin{pmatrix} 1 \\ 1 \\ 1 \\ 1 \end{pmatrix} = \begin{pmatrix} 1/25 \\ 19/25 \\ 12/25 \\ 8/25 \end{pmatrix}
  • Parameter-Dependent Projection Example:

    • Space: R3\mathbb{R}^3 with inner product (x,y)=x1y1+2x2y2+3x3y3−x1y2−x2y1+x2y3+x3y2(x, y) = x_1 y_1 + 2x_2 y_2 + 3x_3 y_3 - x_1 y_2 - x_2 y_1 + x_2 y_3 + x_3 y_2
    • Subspace: U=span⁡{v1,v2}U = \operatorname{span}\{v_1, v_2\} with v1=(1,1,1)Tv_1 = (1, 1, 1)^T and v2=(−1,1,m)Tv_2 = (-1, 1, m)^T
    • Problem A: Find mm such that UU is an orthogonal set.
    • Condition: (v1,v2)=0(v_1, v_2) = 0
    • Compute (v1,v2)=v2TRv1(v_1, v_2) = v_2^T R v_1:       Rv1=(1−10−121013)(111)=(024)R v_1 = \begin{pmatrix} 1 & -1 & 0 \\ -1 & 2 & 1 \\ 0 & 1 & 3 \end{pmatrix} \begin{pmatrix} 1 \\ 1 \\ 1 \end{pmatrix} = \begin{pmatrix} 0 \\ 2 \\ 4 \end{pmatrix}(v2,v1)=(−1)(0)+1(2)+m(4)=2+4m=0  ⟹  4m=−2  ⟹  m=−12(v_2, v_1) = (-1)(0) + 1(2) + m(4) = 2 + 4m = 0 \implies 4m = -2 \implies m = -\frac{1}{2}
    • Problem B: With m=−1/2m = -1/2, determine the orthogonal projection of x=(1,2,3)Tx = (1, 2, 3)^T on UU.
    • Since v1v_1 and v2v_2 are orthogonal, the coefficients decouple:       c1=(x,v1)(v1,v1),c2=(x,v2)(v2,v2)c_1 = \frac{(x, v_1)}{(v_1, v_1)}, \quad c_2 = \frac{(x, v_2)}{(v_2, v_2)}
    • Evaluated inner products:       (v1,v1)=v1TRv1=0+2+4=6(v_1, v_1) = v_1^T R v_1 = 0 + 2 + 4 = 6(x,v1)=1(0)+2(2)+3(4)=16  ⟹  c1=166=83(x, v_1) = 1(0) + 2(2) + 3(4) = 16 \implies c_1 = \frac{16}{6} = \frac{8}{3}v2=(−1,1,−1/2)Tv_2 = (-1, 1, -1/2)^TRv2=(1−10−121013)(−11−1/2)=(−25/2−1/2)R v_2 = \begin{pmatrix} 1 & -1 & 0 \\ -1 & 2 & 1 \\ 0 & 1 & 3 \end{pmatrix} \begin{pmatrix} -1 \\ 1 \\ -1/2 \end{pmatrix} = \begin{pmatrix} -2 \\ 5/2 \\ -1/2 \end{pmatrix}(v2,v2)=v2TRv2=(−1)(−2)+1(5/2)+(−1/2)(−1/2)=2+52+14=194(v_2, v_2) = v_2^T R v_2 = (-1)(-2) + 1(5/2) + (-1/2)(-1/2) = 2 + \frac{5}{2} + \frac{1}{4} = \frac{19}{4}(x,v2)=xTRv2=1(−2)+2(5/2)+3(−1/2)=−2+5−32=32(x, v_2) = x^T R v_2 = 1(-2) + 2(5/2) + 3(-1/2) = -2 + 5 - \frac{3}{2} = \frac{3}{2}c2=(x,v2)(v2,v2)=3/219/4=619c_2 = \frac{(x, v_2)}{(v_2, v_2)} = \frac{3/2}{19/4} = \frac{6}{19}
    • Resulting projection vector:       y=proj⁡U(x)=83(111)+619(−11−1/2)=(8/3−6/198/3+6/198/3−3/19)=(134/57170/57143/57)y = \operatorname{proj}_U(x) = \frac{8}{3} \begin{pmatrix} 1 \\ 1 \\ 1 \end{pmatrix} + \frac{6}{19} \begin{pmatrix} -1 \\ 1 \\ -1/2 \end{pmatrix} = \begin{pmatrix} 8/3 - 6/19 \\ 8/3 + 6/19 \\ 8/3 - 3/19 \end{pmatrix} = \begin{pmatrix} 134/57 \\ 170/57 \\ 143/57 \end{pmatrix}

Orthogonal Bases and Vector Decompositions

  • Definition and Properties of an Orthogonal Basis:

    • An orthogonal basis for a subspace WW of a Euclidean space is a basis for WW that is simultaneously an orthogonal set.
    • Orthogonal Basis Expansion Theorem:     If {v1,v2,…,vm}\{v_1, v_2, \dots, v_m\} is an orthogonal basis of a subspace WW, then every vector y∈Wy \in W can be uniquely represented as:     y=c1v1+c2v2+⋯+cmvmy = c_1 v_1 + c_2 v_2 + \dots + c_m v_m     where the Fourier coefficients are given by the direct decoupled projection formula:     ck=(y,vk)(vk,vk)=(y,vk)∥vk∥2for each k=1,2,…,mc_k = \frac{(y, v_k)}{(v_k, v_k)} = \frac{(y, v_k)}{\|v_k\|^2} \quad \text{for each } k = 1, 2, \dots, m
  • Coordinate Expansion Example in R3\mathbb{R}^3:

    • Given the orthogonal basis S={u1,u2,u3}S = \{u_1, u_2, u_3\} for R3\mathbb{R}^3 under the standard inner product:     u1=(311),u2=(−121),u3=(−1/2−27/2)u_1 = \begin{pmatrix} 3 \\ 1 \\ 1 \end{pmatrix}, \quad u_2 = \begin{pmatrix} -1 \\ 2 \\ 1 \end{pmatrix}, \quad u_3 = \begin{pmatrix} -1/2 \\ -2 \\ 7/2 \end{pmatrix}
    • Objective: Express y=(6,1,−8)Ty = (6, 1, -8)^T as a linear combination y=c1u1+c2u2+c3u3y = c_1 u_1 + c_2 u_2 + c_3 u_3.
    • Metric Calculations:
    • Component 1:       (y,u1)=6(3)+1(1)+(−8)(1)=18+1−8=11(y, u_1) = 6(3) + 1(1) + (-8)(1) = 18 + 1 - 8 = 11(u1,u1)=32+12+12=9+1+1=11(u_1, u_1) = 3^2 + 1^2 + 1^2 = 9 + 1 + 1 = 11c1=(y,u1)(u1,u1)=1111=1c_1 = \frac{(y, u_1)}{(u_1, u_1)} = \frac{11}{11} = 1
    • Component 2:       (y,u2)=6(−1)+1(2)+(−8)(1)=−6+2−8=−12(y, u_2) = 6(-1) + 1(2) + (-8)(1) = -6 + 2 - 8 = -12(u2,u2)=(−1)2+22+12=1+4+1=6(u_2, u_2) = (-1)^2 + 2^2 + 1^2 = 1 + 4 + 1 = 6c2=(y,u2)(u2,u2)=−126=−2c_2 = \frac{(y, u_2)}{(u_2, u_2)} = \frac{-12}{6} = -2
    • Component 3:       (y,u3)=6(−1/2)+1(−2)+(−8)(7/2)=−3−2−28=−33(y, u_3) = 6(-1/2) + 1(-2) + (-8)(7/2) = -3 - 2 - 28 = -33(u3,u3)=(−1/2)2+(−2)2+(7/2)2=14+4+494=504+164=664=332(u_3, u_3) = (-1/2)^2 + (-2)^2 + (7/2)^2 = \frac{1}{4} + 4 + \frac{49}{4} = \frac{50}{4} + \frac{16}{4} = \frac{66}{4} = \frac{33}{2}c3=(y,u3)(u3,u3)=−3333/2=−2c_3 = \frac{(y, u_3)}{(u_3, u_3)} = \frac{-33}{33/2} = -2
    • Linear Combination Formulation:     y=u1−2u2−2u3y = u_1 - 2u_2 - 2u_3
    • Component-Wise Verification:     1(311)−2(−121)−2(−1/2−27/2)=(3+2+11−4+41−2−7)=(61−8)=y1 \begin{pmatrix} 3 \\ 1 \\ 1 \end{pmatrix} - 2 \begin{pmatrix} -1 \\ 2 \\ 1 \end{pmatrix} - 2 \begin{pmatrix} -1/2 \\ -2 \\ 7/2 \end{pmatrix} = \begin{pmatrix} 3 + 2 + 1 \\ 1 - 4 + 4 \\ 1 - 2 - 7 \end{pmatrix} = \begin{pmatrix} 6 \\ 1 \\ -8 \end{pmatrix} = y