3.3 Orthogonality
Orthogonality
In the previous section, we defined the “angle” between vectors using the dot product. Now, we focus on perpendicularity, a special case of the angle between vectors. Perpendicular (orthogonal) vectors are crucial in many applications, especially in ECE.
Recall the angle \(\theta\) between nonzero vectors \(\mathbf{u}\) and \(\mathbf{v}\) in \(R^n\): \[ \theta = \cos^{-1}\left(\frac{\mathbf{u}\cdot\mathbf{v}}{\|\mathbf{u}\|\|\mathbf{v}\|}\right) \] From this, \(\theta = \pi/2\) (90 degrees) if and only if \(\mathbf{u}\cdot \mathbf{v} = 0\).
Two nonzero vectors \(\mathbf{u}\) and \(\mathbf{v}\) in \(R^n\) are orthogonal (or perpendicular) if \(\mathbf{u}\cdot \mathbf{v} = 0\).
The zero vector \(\mathbf{0}\) is defined to be orthogonal to every vector in \(R^n\).
Show that \(\mathbf{u} = (-2,3,1,4)\) and \(\mathbf{v} = (1,2,0,-1)\) are orthogonal in \(R^4\). \[ \mathbf{u}\cdot \mathbf{v} = (-2)(1) + (3)(2) + (1)(0) + (4)(-1) = -2 + 6 + 0 - 4 = 0 \] Since \(\mathbf{u}\cdot \mathbf{v} = 0\), they are orthogonal.
Show that standard unit vectors in \(R^3\) are orthogonal.
\(\mathbf{i} = (1,0,0), \mathbf{j} = (0,1,0), \mathbf{k} = (0,0,1)\)
\(\mathbf{i}\cdot \mathbf{j} = (1)(0) + (0)(1) + (0)(0) = 0\)
\(\mathbf{i}\cdot \mathbf{k} = (1)(0) + (0)(0) + (0)(1) = 0\)
\(\mathbf{j}\cdot \mathbf{k} = (0)(0) + (1)(0) + (0)(1) = 0\)
Each pair is orthogonal. This extends to \(R^n\).
Enter two vectors in \(R^n\) to check if they are orthogonal.
A line in \(R^2\) or a plane in \(R^3\) can be uniquely defined by a point \(P_0\) and a nonzero normal vector \(\mathbf{n}\) that is orthogonal to the line/plane.
The vector equation for both cases is: \[ \mathbf{n}\cdot \overrightarrow{P_0P} = 0 \tag{1} \] where \(P\) is an arbitrary point on the line/plane.
For a line in \(R^2\):
\(P_0(x_0,y_0)\), \(\mathbf{n}=(a,b)\), \(P(x,y)\)
\(\overrightarrow{P_0P} = (x-x_0, y-y_0)\)
Point-Normal Equation: \[ a(x - x_0) + b(y - y_0) = 0 \tag{2} \]
Note
Defining Lines and Planes with Vectors. A line (in ℝ²) or a plane (in ℝ³) can be uniquely described using:
For a plane in \(R^3\):
\(P_0(x_0,y_0,z_0)\), \(\mathbf{n}=(a,b,c)\), \(P(x,y,z)\)
\(\overrightarrow{P_0P} = (x-x_0, y-y_0, z-z_0)\)
Point-Normal Equation: \[ a(x - x_0) + b(y - y_0) + c(z - z_0) = 0 \tag{3} \]
Figure 3.3.1: Line in \(R^2\) and plane in \(R^3\) with normal vectors.
The equation \(ax + by = 0\) represents a line through the origin in \(R^2\). Show that \(\mathbf{n}_1 = (a,b)\) is orthogonal to every vector along the line.
The equation \(ax + by + cz = 0\) represents a plane through the origin in \(R^3\). Show that \(\mathbf{n}_2 = (a,b,c)\) is orthogonal to every vector in the plane.
Solution: Both equations can be written in the vector form: \[ \mathbf{n}\cdot \mathbf{x} = 0 \tag{6} \] where \(\mathbf{n}\) is the vector of coefficients (e.g., \((a,b)\) or \((a,b,c)\)) and \(\mathbf{x}\) is the vector of unknowns (e.g., \((x,y)\) or \((x,y,z)\)). This equation directly states that \(\mathbf{n}\) is orthogonal to any vector \(\mathbf{x}\) that satisfies the equation (i.e., lies on the line or in the plane).
Often, we need to decompose a vector \(\mathbf{u}\) into two components:
Visually: Drop a perpendicular from the tip of \(\mathbf{u}\) to the line containing \(\mathbf{a}\). \(\mathbf{w}_1\) is the vector from the initial point to the foot of the perpendicular. \(\mathbf{w}_2 = \mathbf{u} - \mathbf{w}_1\).
Then \(\mathbf{u} = \mathbf{w}_1 + \mathbf{w}_2\), where \(\mathbf{w}_1\) is parallel to \(\mathbf{a}\) and \(\mathbf{w}_2\) is orthogonal to \(\mathbf{a}\).

If \(\mathbf{u}\) and \(\mathbf{a}\) are vectors in \(R^n\), and \(\mathbf{a} \neq \mathbf{0}\), then \(\mathbf{u}\) can be expressed in exactly one way as: \[ \mathbf{u} = \mathbf{w}_1 + \mathbf{w}_2 \] where \(\mathbf{w}_1\) is a scalar multiple of \(\mathbf{a}\) and \(\mathbf{w}_2\) is orthogonal to \(\mathbf{a}\).
Key Formulas:
Find the orthogonal projections of \(\mathbf{e}_1=(1,0)\) and \(\mathbf{e}_2=(0,1)\) on the line \(L\) that makes an angle \(\theta\) with the positive x-axis in \(R^2\).
Let \(\mathbf{a} = (\cos \theta, \sin \theta)\) be a unit vector along line \(L\).
\(\|\mathbf{a}\| = 1\).
For \(\mathbf{e}_1=(1,0)\):
\(\mathbf{e}_1\cdot \mathbf{a} = (1,0)\cdot (\cos \theta, \sin \theta) = \cos \theta\) \[ \text{proj}_{\mathbf{a}}\mathbf{e}_1 = \frac{\mathbf{e}_1\cdot\mathbf{a}}{\|\mathbf{a}\|^2}\mathbf{a} = (\cos \theta)(\cos \theta, \sin \theta) = (\cos^2\theta, \sin \theta \cos \theta) \]
For \(\mathbf{e}_2=(0,1)\):
\(\mathbf{e}_2\cdot \mathbf{a} = (0,1)\cdot (\cos \theta, \sin \theta) = \sin \theta\) \[ \text{proj}_{\mathbf{a}}\mathbf{e}_2 = \frac{\mathbf{e}_2\cdot\mathbf{a}}{\|\mathbf{a}\|^2}\mathbf{a} = (\sin \theta)(\cos \theta, \sin \theta) = (\sin \theta \cos \theta, \sin^2\theta) \]
Let \(\mathbf{u} = (2, -1, 3)\) and \(\mathbf{a} = (4, -1, 2)\). Find \(\text{proj}_{\mathbf{a}}\mathbf{u}\) and the vector component of \(\mathbf{u}\) orthogonal to \(\mathbf{a}\).
Solution:
Calculate the orthogonal projection of \(\mathbf{u}\) onto \(\mathbf{a}\).
Sometimes, we’re only interested in the length of the projected vector. \[ \| \text{proj}_{\mathbf{a}}\mathbf{u}\| = \left\| \frac{\mathbf{u}\cdot\mathbf{a}}{\|\mathbf{a}\|^2}\mathbf{a}\right\| = \left|\frac{\mathbf{u}\cdot\mathbf{a}}{\|\mathbf{a}\|^2}\right|\|\mathbf{a}\| = \frac{|\mathbf{u}\cdot\mathbf{a}|}{\|\mathbf{a}\|} \tag{12} \] If \(\theta\) is the angle between \(\mathbf{u}\) and \(\mathbf{a}\), then \(\mathbf{u}\cdot\mathbf{a} = \|\mathbf{u}\|\|\mathbf{a}\|\cos\theta\). Substituting this into (12): \[ \| \text{proj}_{\mathbf{a}}\mathbf{u}\| = \frac{|\|\mathbf{u}\|\|\mathbf{a}\|\cos\theta|}{\|\mathbf{a}\|} = \|\mathbf{u}\||\cos\theta| \tag{13} \]
Figure 3.3.4: Geometric interpretation of \(\| \text{proj}_{\mathbf{a}}\mathbf{u}\|\).
This theorem generalizes the familiar Pythagorean theorem to \(n\)-dimensional space.
Theorem 3.3.3 (Theorem of Pythagoras in \(R^n\)): If \(\mathbf{u}\) and \(\mathbf{v}\) are orthogonal vectors in \(R^n\), then: \[ \| \mathbf{u} + \mathbf{v}\|^2 = \| \mathbf{u}\|^2 + \| \mathbf{v}\|^2 \tag{14} \]
Proof: Since \(\mathbf{u}\) and \(\mathbf{v}\) are orthogonal, \(\mathbf{u}\cdot \mathbf{v} = 0\). \[ \begin{aligned} \| \mathbf{u} + \mathbf{v}\|^2 &= (\mathbf{u} + \mathbf{v})\cdot (\mathbf{u} + \mathbf{v}) \\ &= \mathbf{u}\cdot \mathbf{u} + 2(\mathbf{u}\cdot \mathbf{v}) + \mathbf{v}\cdot \mathbf{v} \\ &= \| \mathbf{u}\|^2 + 2(0) + \| \mathbf{v}\|^2 \\ &= \| \mathbf{u}\|^2 + \| \mathbf{v}\|^2 \end{aligned} \]

Vectors \(\mathbf{u} = (-2, 3, 1, 4)\) and \(\mathbf{v} = (1, 2, 0, -1)\) are orthogonal (from Example 1). Verify the Theorem of Pythagoras for these vectors.
Solution:
Calculate \(\mathbf{u} + \mathbf{v}\):
\(\mathbf{u} + \mathbf{v} = (-2+1, 3+2, 1+0, 4-1) = (-1, 5, 1, 3)\)
Calculate \(\| \mathbf{u} + \mathbf{v}\|^2\):
\(\| \mathbf{u} + \mathbf{v}\|^2 = (-1)^2 + 5^2 + 1^2 + 3^2 = 1 + 25 + 1 + 9 = 36\)
Calculate \(\| \mathbf{u}\|^2\):
\(\| \mathbf{u}\|^2 = (-2)^2 + 3^2 + 1^2 + 4^2 = 4 + 9 + 1 + 16 = 30\)
Calculate \(\| \mathbf{v}\|^2\):
\(\| \mathbf{v}\|^2 = 1^2 + 2^2 + 0^2 + (-1)^2 = 1 + 4 + 0 + 1 = 6\)
Check \(\| \mathbf{u}\|^2 + \| \mathbf{v}\|^2\):
\(\| \mathbf{u}\|^2 + \| \mathbf{v}\|^2 = 30 + 6 = 36\)
Since \(36 = 36\), the theorem holds.
Enter two vectors and verify the Theorem of Pythagoras if they are orthogonal.
Orthogonal projections can be used to solve distance problems:
\[ D = \frac{|ax_0 + by_0 + c|}{\sqrt{a^2 + b^2}} \tag{15} \]
\[ D = \frac{|ax_0 + by_0 + cz_0 + d|}{\sqrt{a^2 + b^2 + c^2}} \tag{16} \]
Let \(Q(x_1,y_1,z_1)\) be any point in the plane. Let \(\mathbf{n}=(a,b,c)\) be the normal vector. The distance \(D\) is the length of the orthogonal projection of \(\overrightarrow{QP_0}\) onto \(\mathbf{n}\).
Figure 3.3.6: Geometric idea behind point-plane distance.
Using Formula (12) for the norm of projection: \[ D = \| \text{proj}_{\mathbf{n}}\overrightarrow{QP_0}\| = \frac{|\overrightarrow{QP_0}\cdot\mathbf{n}|}{\|\mathbf{n}\|} \] Substitute \(\overrightarrow{QP_0} = (x_0 - x_1, y_0 - y_1, z_0 - z_1)\) and \(\|\mathbf{n}\| = \sqrt{a^2+b^2+c^2}\).
Since \(Q\) is in the plane, \(ax_1 + by_1 + cz_1 + d = 0 \implies d = -ax_1 - by_1 - cz_1\).
The numerator becomes \(|a(x_0 - x_1) + b(y_0 - y_1) + c(z_0 - z_1)| = |ax_0 + by_0 + cz_0 - (ax_1 + by_1 + cz_1)| = |ax_0 + by_0 + cz_0 + d|\). This yields Formula (16).
Find the distance \(D\) between the point \(P_0(1, -4, -3)\) and the plane \(2x - 3y + 6z = -1\).
Solution: First, rewrite the plane equation as \(2x - 3y + 6z + 1 = 0\).
Here, \((x_0,y_0,z_0) = (1,-4,-3)\) and \((a,b,c,d) = (2,-3,6,1)\).
Using Formula (16): \[ D = \frac{|2(1) + (-3)(-4) + 6(-3) + 1|}{\sqrt{2^2 + (-3)^2 + 6^2}} = \frac{|2 + 12 - 18 + 1|}{\sqrt{4 + 9 + 36}} = \frac{|-3|}{\sqrt{49}} = \frac{3}{7} \]
Calculate the distance between a point and a plane in \(R^3\).
To find the distance between two parallel planes in \(R^3\):
Figure 3.3.7: Distance between parallel planes.
Find the distance between:
Plane 1: \(x + 2y - 2z = 3\)
Plane 2: \(2x + 4y - 4z = 7\)
Solution: Normals are \((1, 2, -2)\) and \((2, 4, -4)\), which are parallel (one is twice the other).
Find a point in Plane 1: Set \(y=0, z=0 \implies x=3\). So, \(P_0(3,0,0)\) is in Plane 1.
Compute distance from \(P_0(3,0,0)\) to Plane 2 (\(2x + 4y - 4z - 7 = 0\)).
Here, \((x_0,y_0,z_0) = (3,0,0)\) and \((a,b,c,d) = (2,4,-4,-7)\).
\[ D = \frac{|2(3) + 4(0) + (-4)(0) - 7|}{\sqrt{2^2 + 4^2 + (-4)^2}} = \frac{|6 - 7|}{\sqrt{4 + 16 + 16}} = \frac{|-1|}{\sqrt{36}} = \frac{1}{6} \]
Calculate the distance between two parallel planes in \(R^3\).
Applications in ECE: