Geometric definition and notation
Vectors in three-dimensional Euclidean space or in the two-dimensional Euclidean plane can be represented as arrows. Arrows that are parallel, of the same length and oriented in the same way represent the same vector. The scalar product
two vectors
and
is a scalar, i.e. a real number. Geometrically it can be defined as follows:
Let
and
the lengths of the vectors
and
and let φ
the
angle enclosed by
and then

As with normal multiplication (but less often than there), if it is clear what is meant, the multiplication sign is sometimes omitted:

Instead of one occasionally writes
this case
Other common notations are
and ⟨ 
Illustration
To visualise the definition, consider the orthogonal projection
the vector
onto the
direction determined by and set

Then
and for the scalar product of
and
holds:

This relationship is sometimes also used to define the scalar product.
Examples
In all three examples
and
. The scalar products are obtained using the special cosines 
and
:
· 
· 
· 
In Cartesian coordinates
If one introduces Cartesian coordinates in the Euclidean plane or in Euclidean space, each vector has a coordinate representation as a 2- or 3-tuple, which is usually written as a column.
In the Euclidean plane one then obtains for the scalar product of the vectors
and 

the representation

For the canonical unit vectors
and
namely:
and 
From this follows (anticipating the properties of the scalar product explained below):

In three-dimensional Euclidean space, one obtains accordingly for the vectors
and 

the representation

For example, the scalar product of the two vectors is calculated as follows
and 

as follows:

Properties
From the geometric definition it follows directly:
- If
and are
parallel and equally oriented (
), the following holds

- In particular, the scalar product of a vector with itself gives the square of its length:

- If
and are
parallel and oppositely oriented (
), the following applies

- If
and
are orthogonal (
), then

As a function that assigns to
each ordered pair
of vectors the real number , the scalar product has the following properties expected of multiplication:
- It is symmetrical (commutative law):
for all vectors
and 
- It is homogeneous in each argument (mixed associative law):
for all vectors
and
and all scalars 
- It is additive in each argument (distributive law):
and
for all vectors 
and 
Properties 2 and 3 can also be combined: The scalar product is bilinear.
The designation "mixed associative law" for the 2nd property clarifies that here a scalar and two vectors are linked in such a way that the brackets can be interchanged as in the associative law. Since the scalar product is not an inner linkage, a scalar product of three vectors is not defined, so the question of true associativity does not arise. In the expression
only the first multiplication is a scalar product of two vectors, the second is the product of a scalar with a vector (S-multiplication). The expression represents a vector, a multiple of the vector
On the other hand, the expression
represents a multiple of
In general, therefore

Neither the geometric definition nor the definition in Cartesian coordinates is arbitrary. Both follow from the geometrically motivated requirement that the scalar product of a vector with itself is the square of its length, and the algebraically motivated requirement that the scalar product satisfies properties 1-3 above.
Amount of vectors and included angle
With the help of the scalar product it is possible to calculate the length (the amount) of a vector from the coordinate representation:
For a vector
of the two-dimensional space, the following applies

The Pythagorean theorem can be recognised here. In three-dimensional space the following applies accordingly

By combining the geometric definition with the coordinate representation, one can calculate the angle enclosed by two vectors from their coordinates. From

follows

The lengths of the two vectors
and 

therefore amount to
and 
The cosine of the angle enclosed by the two vectors is calculated to be

Thus 
Orthogonality and orthogonal projection
Two vectors
and
are orthogonal if and only if their scalar product is zero, i.e.

The orthogonal projection of
onto the direction given
vector is the vector
with

so

The projection is the vector whose endpoint is the plumb line from the endpoint of
to the straight line through the origin determined by
The vector
is perpendicular to 
If
a unit vector (i.e. if
), the formula simplifies to

Reference to the cross product
Another way to multiplicatively link two vectors
and
in three-dimensional space is the outer product or cross product
Unlike the scalar product, the result of the cross product is not a scalar, but again a vector. This vector is perpendicular to the plane
spanned by the two vectors
and and its length corresponds to the area of the parallelogram spanned by them.
The following calculation rules apply to the connection of the cross product and the scalar product:
The combination of cross product and scalar product of the first two rules is also called spar product; it gives the oriented volume of the parallelepiped
spanned by the three vectors .
Applications
In geometry
The scalar product makes it possible to prove complicated theorems involving angles in a simple way.
Assertion: (cosine theorem)

Proof: Using the vectors drawn in, it follows
(The direction of
is irrelevant.) Squaring the magnitude yields

and thus

In physics
In physics, many quantities, such as the work
are defined by scalar products:

with the vectorial quantities force
and displacement
. Here φ {\displaystyle
denotes the angle between the direction of the force and the direction of the path.
denotes the component of the force in the direction of the path,
the component of the path in the direction of the force.
Example: A wagon of weight
is
transported over an inclined plane from
to The work of lifting
calculated as
