Let V be a vector space under the field 𝔽, where 𝔽 is either ℚ (ratinal numbers) or ℝ (real numbers) or ℂ (complex numbers). The bilinear functions from V × V into 𝔽 were considered in sections regarding dot product and inner product. In this section, we consider two important vector products, known as cross product and outer product.
It is well-known that a vector space can be equipped with a product operation (besides vecor addition) only for dimensions 1 and 2. The cross product is a successful attempt to implement the product in a three-dimensional vector space, but loosing comutative property of multiplication. On the other hand, the outer product assigns a matrix to two vectors of arbitrary size.
Vector or Cross product
Given two space vectors, a and b, we can find a third space vector c, called
the cross product of a and b, and denoted by c = a × <>b. The magnitude
of c is defined by |c| = |a| |b| sin(θ), where θ is the angle between a and b.
The direction of c is given by the right-hand rule: If a is turned to b (note the order in which a and b appear here) through the angle between a and b, a (right-handed) screw that is perpendicular to a and b will advance in the
direction of a × b. This definition implies that
Using these properties, we can write the vector product of two vectors in terms
of their components. We are interested in a more general result valid in other
coordinate systems as well. So, rather than using x, y, and z as subscripts for
unit vectors, we use the numbers 1, 2, and 3. In that case, our results can
also be used for spherical and cylindrical coordinates which we shall discuss
shortly.
Example 1:
From the definition of the vector product, it follows that
\[
\left\vert {\bf a} \times {\bf b} \right\vert = \mbox{ area of the parallelogram defined by} \quad {\bf a} \mbox{ and } {\bf b} .
\]
So we can use Eq.\eqref{EqCross.2} to find the area of a parallelogram defined by two
vectors directly in terms of their components. For instance, the area defined by
a = (1, −1, 2) and b = (−2, 3, 1) can be found by calculating their vector product
Example 2:
The volume of a parallelepiped defined by three non-coplanar vectors a, b, and c is given by \( \displaystyle \left\vert {\bf a} \cdot \left( {\bf b} \times {\bf c} \right) \right\vert . \) The absolute value is taken to ensure the positivity of the area. In terms of components we have
Coordinates are “functions” that specify points of a space. The smallest
number of these functions necessary to specify a point P is called the dimension
of that space. There are two coordinate systems used for a plane, Cartesian, denoted
by (x(P), y(P), and polar, denoted by (r(P), θ(P)):
\[
x = r\,\cos\varphi , \qquad y = r\,\sin\varphi , \qquad z=z .
\]
There are
three widely used coordinate systems in a three-dimensional vector space ℝ³: Cartesian (x(P), y(P), z(P)), cylindrical (ρ(P), φ(P), z(P)), and spherical (r(P), θ(P), φ(P)). The latter φ(P) is called
the azimuth or the azimuthal angle of P, while θ(P) is called its polar angle.
\[
x = r\,\sin\theta \,\cos\varphi , \qquad y = r\,\sin\theta \,\sin\varphi , \qquad z = r\,\cos\theta .
\]
The unit vectors in the three coordinate systems are not only mutually perpendicular, but in the order in which they are given, they also form a right-handed
set [see Equation (1.5)]. Therefore, we can use Equation \eqref{EqCross.2} and write
Mathematica has three multiplication commands for vectors: the dot (or inner) and outer products (for arbitrary vectors), and
the cross product (for three dimensional vectors).
For three dimensional vectors \( {\bf a} = a_1 \,{\bf i} + a_2 \,{\bf j} + a_3 \,{\bf k} =
\left[ a_1 , a_2 , a_3 \right] \) and
\( {\bf b} = b_1 \,{\bf i} + b_2 \,{\bf j} + b_3 \,{\bf k} = \left[ b_1 , b_2 , b_3 \right] \) , it is possible to define special multiplication, called the cross-product:
The cross product can be done on two vectors. It is important to note that the cross product is an operation that is only functional in three dimensions. The operation can be computed using the Cross[vector 1, vector 2] operation or by generating a cross product operator between two vectors by pressing [Esc] cross [Esc]. ([Esc] refers to the escape button)
Cross[{1,2,7}, {3,4,5}]
{-18,16,-2}
The dot product of two vectors of the same size
\( {\bf x} = \left[ x_1 , x_2 , \ldots , x_n \right] \) and
\( {\bf y} = \left[ y_1 , y_2 , \ldots , y_n
\right] \) (regardless of whether they are columns or rows
because Mathematica does not distinguish rows from columns) is the number,
denoted either by \( {\bf x} \cdot {\bf y} \) or \( \left\langle {\bf x} , {\bf y} \right\rangle ,\)
when entries are complex.
Here \( \overline{\bf x} = \overline{a + {\bf j}\, b} =
a - {\bf j}\,b \) is a complex conjugate of a complex number
x = a + jb.
The dot product of any two vectors of the same dimension can be done with the dot operation given as Dot[vector 1, vector 2] or with use of a period “. “ .
{1,2,3}.{2,4,6}
28
Dot[{1,2,3},{3,2,1} ]
10
With Euclidean norm ‖·‖2, the dot product formula
defines θ, the angle between two vectors.
The dot product was first introduced by the American physicist and
mathematician Josiah Willard Gibbs (1839--1903) in the 1880s. ■
Outer product
An outer product is the tensor product of two coordinate vectors \( {\bf u} = \left[ u_1 , u_2 , \ldots , u_m \right] \) and
\( {\bf v} = \left[ v_1 , v_2 , \ldots , v_n \right] , \) denoted \( {\bf u} \otimes {\bf v} , \) is
an m-by-n matrix W of rank 1 such that its coordinates satisfy \( w_{i,j} = u_i v_j . \)
The outer product \( {\bf u} \otimes {\bf v} , \) is equivalent to a matrix multiplication
\( {\bf u} \, {\bf v}^{\ast} , \) (or \( {\bf u} \, {\bf v}^{\mathrm T} , \) if vectors are real) provided that u is represented as a
column \( m \times 1 \) vector, and v as a column \( n \times 1 \) vector. Here \( {\bf v}^{\ast} = \overline{{\bf v}^{\mathrm T}} . \)
Example 3:
Taking, for instance, m = 4 and n = 3, we have