<<Up     Contents

Dot product

In mathematics, the dot product is a binary operation which takes two vectors and returns a scalar quantity. It is also known as the inner product or scalar product.

It is defined as:

<math>\mathbf{a \cdot b} = \mathbf{|a| |b|}\cos( \theta)
</math>

where θ is the angle between the two vectors. Thus, the dot product of two perpendicular vectors is always zero. If a and b are both unit vectors (ie of length 1), the the dot product simply gives the cosine of the angle between them. Thus, given two vectors, the angle between them can be found by rearranging the above formula:

<math>\theta = \cos^{-1}
 \left({ \mathbf{a \cdot b} \over \mathbf{|a| |b|}  }\right)</math>

The dot product is particularly used in resolution of forces[?]. If b is a unit vector, then the dot product gives the projection of a in direction b. In mechanics, this gives the component of a force in that direction.

Work is the dot product of force and displacement.

Properties

The definition has the following consequences:

From these it follows directly that the dot product of two vectors a = [a1 a2 a3] and b = [b1 b2 b3] given in coordinates can be computed particularly easily:

a·b = a1b1 + a2b2 + a3b3

or, using matrix multiplication and treating the vectors as 1-by-3 matrices:

a·b = abT
where bT denotes the transpose of the matrix b.

The dot product satisfies all the axioms of an inner product. In an abstract vector space, the notion of angle between the elements of the space can be defined in terms of the inner product.

wikipedia.org dumped 2003-03-17 with terodump