Dot/Scalar/Inner Product of Vectors, Magnitude of Vectors and Unit Vectors
Dot Product of 2 Vectors that are given in terms of Standard Basis can be calculated Only if both the Vectors have the Same Number of Components.
In such cases, the Dot Product is calculated by Multiplying the Corresponding Components of 2 Vectors and Adding up All the Products.
For example lets consider 2 Vectors \(A\) and \(B\) given in terms of Standard Basis each having \(N\) Components as given in the following
The Dot Product of \(A\) and \(B\) is calculated as follows
\(A \cdot B = B \cdot A = a_1b_1 + a_2b_2 + \cdots + a_nb_n\)
If Either \(A\) Or \(B\) or Both are Complex Vectors, the Dot Product can also be calculated in 3 more ways as follows
If \(A\) is a Complex Vector, the Dot Product between Vectors \(\overline{A}\) (Conjugate of Vector \(A\) ) and \(B\) is calculated as follows:
\(\overline{A} \cdot B = B \cdot \overline{A} = \overline{a_1}b_1 + \overline{a_2}b_2 + \cdots + \overline{a_n}b_n\) (where \(\overline{a_1}, \overline{a_2}, \cdots \overline{a_n}\) are Complex Conjugates of \(a_1, a_2, \cdots a_n\) respectively)
If \(B\) is a Complex Vector, the Dot Product between Vectors \(A\) and \(\overline{B}\) (Conjugate of Vector \(B\) ) is calculated as follows:
\(A \cdot \overline{B} = \overline{B} \cdot A = a_1\overline{b_1} + a_2\overline{b_2} + \cdots + a_n\overline{b_n}\) (where \(\overline{b_1}, \overline{b_2}, \cdots \overline{b_n}\) are Complex Conjugates of \(b_1, b_2, \cdots b_n\) respectively)
If Both \(A\) and \(B\) are a Complex Vectors, the Dot Product between Vectors \(\overline{A}\) (Conjugate of Vector \(A\) ) and \(\overline{B}\) (Conjugate of Vector \(B\) ) is calculated as follows:
The values of \(A \cdot B\) (or \(B \cdot A\) ) and \(\overline{A} \cdot \overline{B}\) (or \(\overline{B} \cdot \overline{A}\)) are Complex Conjugates of each other.
The values of \(\overline{A} \cdot B\) (or \(B \cdot \overline{A}\) ) and \(A \cdot \overline{B}\) (or \(\overline{B} \cdot A\)) are Complex Conjugates of each other.
Since the Result of Dot Product of Vectors is a Scalar Value, it is also called Scalar Product of Vectors.
Dot Product between 2 Vectors \(A\) and \(B\) as given above can also be represented as a Matrix Multiplication between Transpose of One Vector and the Other Vector as follows
If \(A\) is a Complex Vector, the Dot Product \(\overline{A} \cdot B\) (or \(B \cdot \overline{A}\) ) can also be represented as a Matrix Multiplication between Conjugate Transpose of Vector \(A\) and Vector \(B\) as follows
If \(B\) is a Complex Vector, the Dot Product \(A \cdot \overline{B}\) (or \(\overline{B} \cdot A\) ) can also be represented as a Matrix Multiplication between Conjugate Transpose of Vector \(B\) and Vector \(A\) as follows
Since these are same as Inner Product of Matrices, the Dot Product of Vectors is also called Inner Product of Vectors.
The Magnitude/Norm/Length of Any Vector \(A\) given in terms of Standard Basis is given by the Positive Real Square Root Value or Complex Square Root Values of the Dot Product of the Vector with itself as follows
Magnitude/Norm/Length of Any Vector \(A = \sqrt{A \cdot A} = \sqrt{a_1a_1 + a_2a_2 + \cdots + a_na_n}\)
The Magnitudes/Norms/Lengths calculated this way are Positive Real Values for Real Vectors and are Complex Values for Complex Vector.
The Magnitude/Norm/Length of Any Complex Vector \(A\) given in terms of Standard Basis is also given by the Positive Square Root Value of the Dot Product of the Vector with it's Conjugate as follows
The Magnitudes/Norms/Lengths calculated this way are Always Positive Real Values.
Any Vector of any Magnitude can be converted into a Vector of Magnitude 1 by Dividing each of its Components with the Magnitude of the Vector. Any Vector with Magnitude 1 is called a Unit Vector.
Following example demonstrates the calculation of Dot Product, Magnitude of Vectors and Conversion of Vectors to Unit Vectors for 2 Real Vectors \(A\) and \(B\) given in terms of Standard Basis
The Unit Vectors Corresponding to Vectors \(A\) and \(B\) are given by Dividing their Components by their Respective Magnitudes as given in the following
Unit Vector Corresponding to Vector \(A= \begin{bmatrix}\frac{-3}{\sqrt{87}}\\\frac{2}{\sqrt{87}}\\\frac{7}{\sqrt{87}}\\\frac{-5}{\sqrt{87}}\end{bmatrix}\)
Unit Vector Corresponding to Vector \(B= \begin{bmatrix}\frac{5}{\sqrt{106}}\\\frac{-1}{\sqrt{106}}\\\frac{4}{\sqrt{106}}\\\frac{8}{\sqrt{106}}\end{bmatrix}\)
Following example demonstrates the calculation of Dot Product, Magnitude of Vectors and Conversion of Vectors to Unit Vectors for 2 Complex Vectors \(C\) and \(D\) given in terms of Standard Basis
The Unit Vectors Corresponding to Vectors \(C\) and \(D\) calculated by Dividing their Components by their Respective Real Magnitudes are given in the following
Unit Vector Corresponding to Vector \(C\) using Real Magnitude \(= \begin{bmatrix}\frac{2-5i}{\sqrt{89}}\\\frac{1+7i}{\sqrt{89}}\\\frac{3+i}{\sqrt{89}}\end{bmatrix}\)
Unit Vector Corresponding to Vector \(D\) using Real Magnitude \(= \begin{bmatrix}\frac{-3-5i}{\sqrt{91}}\\\frac{2+i}{\sqrt{91}}\\\frac{4-6i}{\sqrt{91}}\end{bmatrix}\)
The Complex Magnitude of Vectors \(C\) and \(D\) are calculated as follows
The Unit Vectors Corresponding to Vectors \(C\) and \(D\) calculated by Dividing their Components by their Respective Complex Magnitudes are given in the following
Unit Vector Corresponding to Vector \(C\) using Complex Magnitude \(= \begin{bmatrix}\frac{2-5i}{\sqrt{-61}}\\\frac{1+7i}{\sqrt{-61}}\\\frac{3+i}{\sqrt{-61}}\end{bmatrix}\)
Unit Vector Corresponding to Vector \(D\) using Complex Magnitude \(= \begin{bmatrix}\frac{-3-5i}{\sqrt{-33-14i}}\\\frac{2+i}{\sqrt{-33-14i}}\\\frac{4-6i}{\sqrt{-33-14i}}\end{bmatrix}\)
Any 2 Real Vectors \(A\) and \(B\) are called Orthogonal if the Dot Product \(A \cdot B = 0\).
Any 2 Complex Vectors \(A\) and \(B\) are called Orthogonal if the Dot Products \(A \cdot B = 0\) or \(\overline{A} \cdot B = 0\) (which is same as \(A \cdot \overline{B} = 0\) as they are Conjugates).
Any 2 Vectors are called Orthonormal if they are Orthogonal and Both Vectors are Unit Vectors.