Dot product
In analytic plane geometry, the basic tasks are measuring lenghts and angles; everything else depends on them. The basic tools for these tasks is the dot product. The standard Euclidean inner product is
This can be written very succinctly using Einstein summation notation as
x ⋅ y = xi yi.
From the inner product we get the lenght, or Euclidean norm, of a vector,
The lenght of a vector x is the square root of the dot product of that vector with itself.
The angle θ between two vectors x and y may be determined from
x ⋅ y = |x||y| cos θ 1.5.1
In order to understand why the algebraic dot product between two vector yields the trigonometric cosine value, one can use the cosine law from Euclidean geometry. Consider the triangle created by the origin, x and y. We want to find the angle θ between x and y. The Euclidean side lenghts of this triangle are a = |x|, b = |y|, and c = |x − y|. The cosine law provides a formula for the angle θ in terms of side lenghts as follows
cos θ = |x|2 + |y|2 − |x − y|2/2|x||y| = x ⋅ y / √x ⋅ x √y ⋅ y 1.5.2
where θ is the angle between the vectors and |x| is the norm.
Dot product on ℂn
The dot product on ℂn is defined by
v̄ · w = v̄1 w1 + ··· + v̄nwn
Properties of the dot product
The following proposition shows that the dot product satisfies the properties of linearity, symmetry, and positivity.
Proposition 1.8.1 The dot product on ℝn satisfies the following properties for all v, w, u ∈ ℝn and all α ∈ ℝ.
v · (w + u) = v · w + v · u and v · (αw) = α(v · w) (linearity)
v · w = w · v (symmetry)
v · v > 0 for all v ≠ 0 (positivity)
Proof. Using the Einstein summation convention
v · (w + u) = vi (w + u)i = vi(wi + ui) = vi wi + vi ui = v · w + v · u
v · (αw) = vi (αw)i = αviwi = α(v · w)
v · w = vi wi = wi vi = w · v
(v, v) = Σi vi2 > 0 for v ≠ 0.
Non-orthogonal Axes
Rather than choosing basis vector for a Cartesian coordinate system that are mutually perpendicular (i.e., orthogonal), we can have coordinate basis vectors not mutually perpendicular which may have different length: ei · ej ≡ gij ≠ δij. We can no longer use the standard formula for dot product Eq. 1.5.2, in this system. Consider a basis {e1, e2} such that e1 ⋅ e2 ≠ 0, then the dot product between u = (a1, a2) and v = (a1, a2) is
u ⋅ v = (a1e1 + a2e2) ⋅ (b1e1 + b2e2) = (a1b1 + a2b2) + (a1b2 + b1a2) (e1 ⋅ e2)
We can represent the collection of scalar products of the basis vectors as a symmetric matrix, called the metric or the metric tensor:
ei ⋅ ej ≡ gij
We can display the metric of a 4D space as a 4 × 4 matrix whose elements are the dot products of the basis vectors:
Thus the diagonal elements are the (squared) magnitudes of the basis vectors, |e0|2, |e1|2, etc., while the off-diagonal elements represent their deviations from orthogonality. Any set of mutually perpendicular bases would be represented by a diagonal metric matrix.
Then the dot product could be expressed in the form
u ⋅ v = gij uivj
where we employed Einstein summation convention.