"Scalar product" redirects here. For the abstract scalar product, see Inner product space. For the product of a vector and a scalar, see Scalar multiplication.
In mathematics, the dot product, or scalar product (or sometimes inner product in the context of Euclidean space), is an algebraic operation that takes two equal-length sequences of numbers (usually coordinate vectors)
and returns a single number. This operation can be defined either
algebraically or geometrically. Algebraically, it is the sum of the
products of the corresponding entries of the two sequences of numbers.
Geometrically, it is the product of the Euclidean magnitudes of the two vectors and the cosine of the angle between them. The name "dot product" is derived from the centered dot " · " that is often used to designate this operation; the alternative name "scalar product" emphasizes the scalar (rather than vectorial) nature of the result.In three-dimensional space, the dot product contrasts with the cross product of two vectors, which produces a pseudovector as the result. The dot product is directly related to the cosine of the angle between two vectors in Euclidean space of any number of dimensions.
Contents
- 1 Definition
- 1.1 Algebraic definition
- 1.2 Geometric definition
- 1.3 Scalar projection and first properties
- 1.4 Equivalence of the definitions
- 2 Properties
- 2.1 Application to the cosine law
- 3 Triple product expansion
- 4 Physics
- 5 Generalizations
- 5.1 Complex vectors
- 5.2 Inner product
- 5.3 Functions
- 5.4 Weight function
- 5.5 Dyadics and matrices
- 5.6 Tensors
Definition
The dot product is often defined in one of two ways: algebraically or geometrically. The geometric definition is based on the notions of angle and distance (magnitude of vectors). The equivalence of these two definitions relies on having a Cartesian coordinate system for Euclidean space.
Algebraic definition
The dot product of two vectors A = [A1, A2, ..., An] and B = [B1, B2, ..., Bn] is defined as:
Geometric definition
In Euclidean space, a Euclidean vector is a geometrical object that possesses both a magnitude and a direction. A vector can be pictured as an arrow. Its magnitude is its length, and its direction is the direction the arrow points. The magnitude of a vector A is denoted by . The dot product of two Euclidean vectors A and B is defined by
In particular, if A and B are orthogonal, then the angle between them is 90° and
Scalar projection and first properties
The scalar projection (or scalar component) of a Euclidean vector A in the direction of a Euclidean vector B is given by
In terms of the geometric definition of the dot product, this can be rewritten
The dot product is thus characterized geometrically by
Equivalence of the definitions
If e1,...,en are the standard basis vectors in Rn, then we may write
Now applying the distributivity of the geometric version of the dot product gives
Properties
The dot product fulfills the following properties if a, b, and c are real vectors and r is a scalar.
- Commutative:
- which follows from the definition (θ is the angle between a and b):
- Distributive over vector addition:
- Bilinear:
- Scalar multiplication:
- Orthogonal:
- Two non-zero vectors a and b are orthogonal if and only if a ⋅ b = 0.
- No cancellation:
- Unlike multiplication of ordinary numbers, where if ab = ac, then b always equals c unless a is zero, the dot product does not obey the cancellation law:
- If a ⋅ b = a ⋅ c and a ≠ 0, then we can write: a ⋅ (b − c) = 0 by the distributive law; the result above says this just means that a is perpendicular to (b − c), which still allows (b − c) ≠ 0, and therefore b ≠ c.
- Product Rule: If a and b are functions, then the derivative (denoted by a prime ′) of a ⋅ b is a′ ⋅ b + a ⋅ b′.
Application to the cosine law
Main article: law of cosinesGiven two vectors a and b separated by angle θ (see image right), they form a triangle with a third side c = a − b. The dot product of this with itself is:
Triple product expansion
Main article: Triple productThis is an identity (also known as Lagrange's formula) involving the dot- and cross-products. It is written as:
Physics
In physics, vector magnitude is a scalar in the physical sense, i.e. a physical quantity independent of the coordinate system, expressed as the product of a numerical value and a physical unit, not just a number. The dot product is also a scalar in this sense, given by the formula, independent of the coordinate system. Examples include:
- Mechanical work is the dot product of force and displacement vectors.
- Magnetic flux is the dot product of the magnetic field and the area vectors.
Generalizations
Complex vectors
For vectors with complex entries, using the given definition of the dot product would lead to quite different properties. For instance the dot product of a vector with itself would be an arbitrary complex number, and could be zero without the vector being the zero vector (such vectors are called isotropic); this in turn would have consequences for notions like length and angle. Properties such as the positive-definite norm can be salvaged at the cost of giving up the symmetric and bilinear properties of the scalar product, through the alternative definition.Inner product
Main article: Inner product space
The inner product generalizes the dot product to abstract vector spaces over a field of scalars, being either the field of real numbers or the field of complex numbers . It is usually denoted by .The inner product of two vectors over the field of complex numbers is, in general, a complex number, and is sesquilinear instead of bilinear. An inner product space is a normed vector space, and the inner product of a vector with itself is real and positive-definite.