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

x y = i = 1 n x i y i = x 1 y 1 + + x n y n  1.5.2

This can be written very succinctly using Einstein summation notation as

xy = xi yi.

From the inner product we get the lenght, or Euclidean norm, of a vector,

| x | = x x

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

xy = |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 = |xy|. The cosine law provides a formula for the angle θ in terms of side lenghts as follows

cos θ = |x|2 + |y|2 − |xy|2/2|x||y| = xy / √xxyy 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

· w = 1 w1 + ··· + 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 α ∈ ℝ.

  1. v · (w + u) = v · w + v · u and v · (αw) = α(v · w)   (linearity)

  2. v · w = w · v   (symmetry)

  3. v · v > 0 for all v ≠ 0  (positivity)

Proof. Using the Einstein summation convention

  1. v · (w + u) = vi (w + u)i = vi(wi + ui) = vi wi + vi ui = v · w + v · u

  2. v · (αw) = vi (αw)i = αviwi = α(v · w)

  3. v · w = vi wi = wi vi = w · v

  4. (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 · ejgijδ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 e1e2 ≠ 0, then the dot product between u = (a1, a2) and v = (a1, a2) is

uv = (a1e1 + a2e2) ⋅ (b1e1 + b2e2) = (a1b1 + a2b2) + (a1b2 + b1a2) (e1e2)

We can represent the collection of scalar products of the basis vectors as a symmetric matrix, called the metric or the metric tensor:

eiejgij

We can display the metric of a 4D space as a 4 × 4 matrix whose elements are the dot products of the basis vectors:

[ g ] = ( g 00 g 01 g 10 g 11 ) = ( e 0 e 0 e 0 e 1 e 1 e 0 e 1 e 1 )

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

uv = gij uivj

where we employed Einstein summation convention.

«Basis Index Dual Space»