MENTAL
 Main Menu
 Applications
 Mathematics
 Vector Algebra


Vector Algebra
 VECTOR ALGEBRA

"Geometry is the science of pure space. Algebra is the science of pure time" (William Rowan Hamilton).



Vectors

Semantics

A n-dimensional vector is a linear combination of n basic elements e1, e2, ... , en, i.e., the sum of the basic elements each affected by a coefficient (a real number): r1e1 + r2e2 + … + rnen

This definition is entirely general. But when the basic elements are oriented segments in the Euclidean n-dimensional space, a vector is interpreted as an oriented line segment whose projections on the axes (associated with the basic elements) are the coefficients of the linear combination:
Syntax

vector in 1D: a1*e1

vector in 2D: (a1*e1 + a2*e2)

3D vector: (a1*e1 + a2*e2 + a3*e3)
...
vector in nD: (a1*e1 + ... + an*en)

Alternative syntax as representation:
Definition
Examples
  1. v(13 10) // rep. (13*e1 + 10*e2)

  2. v(a b c) // rep. (a*e1 + b*e2 + c*e3)

  3. v(-1 x 2 y) // rep. (-e1 + x*e2 + 2*e3 + y*e4)

  4. v(0) // ev. 0 (zero vector evaluates to zero)

Remarks
Operations with vectors

There are two fundamental operations with vectors:
  1. Sum.
    The sum of two vectors is another vector whose components are the sum of the corresponding components of each of the vectors.

  2. Product by a factor.
    The product of a factor by a vector is another vector of components equal to that of the vector multiplied by that factor.
These operations do not need to be defined, since they result from the properties of addition and product.

Examples:
  1. (e1 + 2*e2 + 3*e3)+(4*e1 + 5*e2 + 6*e3) // rep. (5*e1 + 7*e2 + 9*e3) rep. v(5 7 9)

  2. (v(1 2 3) + v(4 5 6)) // ev. v(5 7 9)

  3. 2*(e1 + 2*e2 + 3*e3) // ev. v(2 4 6) rep. (2*e1 + 4*e2 + 6*e3)

  4. 2*(v(1 2 3)) // ev. v(2 4 6)

  5. (v(3 4 7) + 2*e1) // ev. v (5 4 7)

Properties

(We assume that the vector names start with "v").
  1. Commutative.
    ⟨( v1+v2v2+v1 )⟩

  2. Commutative with respect to a factor.
    ⟨( r*v = v*r )⟩

  3. Associative,
    ⟨( (v1+v2)+v3v1+(v2+v3) )⟩

  4. Distributive.
    ⟨( r*(v1 + v2) ≡ (r*v1 + r*v2) )⟩

    ⟨( (v1 + v2)*r ≡ (v1*r + v2*r) )⟩

    ⟨( (r1 + r2)*v ≡ (r1*v + r2*v) )⟩

    ⟨( v*(r1 + r2) ≡ (v*r1 + v*r2) )⟩


  5. Counter vector.
    ⟨( −v ≡ (−1)*v )⟩

  6. zero vector.
    ⟨( v(0) = 0 )⟩

  7. ⟨( vv = 0 )⟩

Vectors of higher order

A vector can, of course, contain other vectors. The vectors described so far are of order 1. Scalars (numbers) are often referred to as zero-order vectors. A vector containing a vector of order 1 is of order 2. In general, a vector containing a vector of order n is of order n+1. Examples:
  1. v(v(v(1 2 3) v(4 5 6))) // ev. ((v(v(1 2 3))*e1 + (v(4 5 6))*e2) ev. ((e1 + 2*e2 + 3*e3)*e1 + (4*e1 + 5*e2 + 6*e3)*e2) ev. (e1*e1 + 2*e2*e1 + 3*e3*e1 + 4*e1*e2 + 5*e2*e2 + 6*e3*e2) (e1^2 + 6*e2*e1 + 3*e3*e1 + 5*e2^2 + 6*e3*e2)

  2. v(v(v(v(1 2 3)))) // ev. (v(v(v(1 2 3))))*e1 ev. v(1 2 3)*e1*e1 ev. (e1 + 2*e2 + 3*e3)*e1*e1 ev. (e1*e1*e1 + 2*e2*e1*e1*e1 + 3*e3*e1*e1*e1 ev. (e1^3 + 2*e2*e1^2 + 3*e3*e1^2)

Properties:
  1. Multiplication by a factor.
    (v(v1 v2))*r =: v(v1*r v2*r) )

  2. Vector sum.
    ( (v(v1 v2) + v(v3 v4)) =: v(v1+v3 v2+v4))

Inner Product of Two Vectors

Semantics

The inner product of two vectors v1 and v2 is the algebraic or arithmetic product of both vectors, but with the interpretation of the product of the basic vectors ei*ej as the projection of the vector ei onto the ej (or vice versa). In Euclidean space, since the basis vectors are perpendicular to each other, then (ei*ej = 1) if < code>i=j and (ei*ej = 0) if ij.

For vectors of order 1, the inner product is called the "scalar product" and is the sum of the products of the corresponding components of both vectors.


Syntax

Since this is an attribute of the product operation, we can symbolize it by the expression (v1 */i v2), which indicates inner vector product of the vectors v1 and v2.


Definition with Proy being the "projection" interpretation, ie: The Kronecker delta function is defined as follows: Therefore,
Examples
  1. The result is a scalar.
    (v(1 2 3) */vi v(4 5 6)) // ev. (1*4 + 2*5 + 3*6) ev. 32

  2. The result is a vector.
    (v(1 2) v(3 4)) */vi v(5 6) // ev. ((v(v(1 2))*5 + (v(3 4))*6) ev. (v(5 10) + v(18 24)) ev. v(23 34)

Remarks
Properties
  1. Commutative.
    ⟨( (v1 */vi v2) ≡ (v2 */vi v1) )⟩

  2. Transposition of a factor.
    ⟨( f*(v1 */vi v2) ≡ (v1 */vi f*v2) )⟩
    ⟨( f*(v1 */vi v2) ≡ (f*v1 */vi v2) )⟩


  3. Distribution with respect to sum.
    ⟨( (v1 */vi (v2+v3)) ≡ ((v1 */vi v2) + (v1 */vi v3))) )⟩

  4. The inner product of a vector by zero is zero.
    ⟨( (v */vi 0) = 0 )⟩

Module of a vector

By definition, the modulus of a vector v of order 1, which we can represent by mod(v), is:

⟨( mod(v) = (v */vi v)V2 )⟩
(recuérdese que xvn es nx)

Example: mod(v(3 4)) // ev. 5

The modulus of a vector of order 1 corresponds to its length in the space nD, according to the Pythagorean theorem: the square root of the sum of the squares of the components AND the Cauchy-Schwarz property is also satisfied:
Outer Product of Two Vectors

Semantics

The outer product of two vectors v1 and v2, in the space nD, is the algebraic or arithmetic product of both vectors, but with interpretation of the product of the basic vectors < code>ei*ej as the surface of the parallelogram formed by the vectors ei and ej. The surface is oriented, that is, it has sign, with the following criterion: if i<j, then the surface is ei*ej. If i>j, then ei*ej is −(ej*ei). Evidently, (ei*ei = 0).



Syntax

Since this is an attribute of the product operation, we will symbolize it by the expression (v1 */ve v2), which indicates the outer vector product of the vectors v1 and v2.


Definition With Sup being the "surface" interpretation, ie:
Examples
  1. In 2D space we have:

    */vee1e2
    e10e1*e2
    e2−e1*e20

    ( v1 = v(a1 a2) ) // rep. (a1*e1 + a2*e2)

    ( v2 = v(b1 b2) ) // rep. (b1*e1 + b2*e2)

    (v1 */ve v2) // ev. (a1*b2 − a2*b1)*(e1*e2)


    The result is a magnitude of quantity (a1*b2 − a2*b1) and unit (e1*e2). The quantity represents the area of the parallelogram formed by the two vectors (see figure). The quantity is also the value of the determinant:

    |a1a2|
    |b1b2|

  2. In 3D space we have:

    */vee1e2e3
    e10e1*e2e1*e3
    e2−e1*e20e2*e3
    e3−e1*e3−e2*e30

    ( v1 = v(a1 a2 a3) ) // rep. (a1*e1 + a2*e2 + a3*e3)

    ( v2 = v(b1 b2 b3) ) // rep. (b1*e1 + b2*e2 + b3*e3)

    (v1 */ve v2) // ev. ( (a1*b2 − a2*b1)*(e1*e2) +
    (a2*b3 − a3*b2)*(e2*e3) +
    (a1*b3 − a3*b1)*(e1*e3) )


    Calling

    ⟨( S(i j) =: (ai*bj − aj*bi) )⟩

    to the surface formed by the vectors i and j projected on the plane formed by the unit vectors ei and ej, we have:

      ( (v1 */ve v2) ≡ (S(1 2)*e1*e2 + S(2 3)*e2*e3 + S(1 3)*e1*e3 )

  3. In 4D space we have:

    */vee1e2e3e4
    e10e1*e2e1*e3e1*e4
    e2−e1*e20e2*e3e2*e3
    e3−e1*e3−e2*e30e3*e4
    e4−e1*e4−e2*e4−e3*e40

    ( v1 = v(a1 a2 a3 a4) ) // rep. (a1*e1 + a2*e2 + a3*e3 + a4*e4)

    ( v2 = v(b1 b2 b3 b4) // rep. (b1*e1 + b2*e2 + b3*e3 + b4*e4)

    ( (v1 */ve v2) ≡ (Sup(1 2)*e1*e2 + Sup(1 3)*e1*e3 +
    Sup(1 4)*e1*e4 + Sup(2 3)*e2*e3 +
    Sup(2 4)*e2*e4 + Sup(3 4)*e3*e4 )
In general, the outer product of two vectors in the space nD is the sum of the projections of the parallelogram formed by the two vectors on the planes corresponding to the combinations of the n basic elements taken 2 by 2.


Properties
  1. The outer autoproduct is zero.
    ⟨( (v */ve v) = 0 )⟩

  2. Anticommutativity.
    < ⟨( (v1 */ve v2) ≡ −(v2 */ve v1) )⟩

  3. Distribution with respect to the sum.
    ⟨( (v1 */ve (v2+v3)) ≡ (v1 */ve v2) + (v1 */ve v3) )⟩

  4. Linear dependence.
    ⟨( (v1 = r*v2) → (v1 */ve v2 = 0) )⟩

Remarks
Multivectors

Semantics

The concept of multivector generalizes two things: on the one hand, the concept of vector, and on the other hand the outer product of two vectors, extending it to any number m of vectors, being 1≤mn and n the dimension of the space.
Basic multivectors

A multivector of order m is expressed as a linear combination of the basic multivectors of order m. For example, in 3D space, we have the following basic multivectors: Basic multivectors are also usually represented by the letter e followed by the component numbers. For example: So in 3D space we have the basic multivectors:
Examples

In 3D space: In 4D space:
Outer multivector product

We have seen that the outer product of two vectors in 2D space is the surface formed by these vectors is a magnitude whose quantity is the value of a determinant of order 2, and whose unit is e1*e2. It corresponds to a 2-vector (bivector). Similarly, the outer product of three vectors (trivector) (a, b and c) in 3D space captures the volume of the space of the parallelepiped formed by these vectors, whose quantity is equal to the value of the determinant of order 3:

|a1a2a3|
|b1b2b3|
|c1c2c3|

and whose unit is e1*e2*e3.

In general, the hypervolume enclosed by m vectors v1, ... ,vm in the space nD is the determinant of order m. It is the so-called "Gauss formula". It corresponds to the multivector (m-vector) (v1 */ve ... */ve vm) in the space nD (being mn). Abbreviated: (*/ve)⊣(v1...vm).


Numbers vs.Vectors

Compound numbers as vectors

A composite number, for example, n=(7 12 54 3), whose normalized value n. (n with a decimal point) is behaves, for all intents and purposes, as a vector. In effect:
  1. is a linear combination of basic expressions. The basic expressions are: e1=1, e2=10, (e3 = 10^2), and so on. In general, ⟨( ei = 10^(i−1) )⟩

  2. It satisfies all the properties of a vector space. In particular, it satisfies the distributive property with respect to multiplication by a factor:

    2*(7 12 54 3). eq. (2*7 2*12 2*54 2*3). eq. (14 24 108 6). eq. 17486 eq. 2*8743

    And the linear distributive property with respect to the sum:

    ((7 12 54 3). + (6 89 4).) ev. 8743+1494 ev. 10237
    (7+0 12+6 54+89 3+4). ev. (7 18 143 7). ev. 10237
Remarks:
  1. In vectors, basic vectors are numbered from left to right. In numbers it is the other way around: they are numbered from right to left. Therefore, the basic components of a number that do not exist on the left are zero.

  2. Numbers with the decimal point on the left are also vectors.

  3. Higher-order numbers (those composed of two or more levels) work analogously.

Vectors in Functions

With vectors you can define functions in which the arguments and/or the result can be vectors.

Examples:
  1. ⟨( f(v) = (v(1 2 3) */vi v) )⟩
    f(v(11 12 13))) // ev. (1*11 + 2*12 + 3*13) ev. 74


  2. ⟨( v(t) = v(t t+1 t+2))⟩ // velocity (vector) as a function of time (scalar)
    v(10) // ev. v(10 11 12)


  3. ⟨( f(v(r1 r2 r3)) = v(r1+r2 r1+r3 r2+r3)) )⟩

    The argument v(r1 r2 r3) is a vector representing a point in 3D space. The result is another vector. In this case we have what is called a "vector field".

    f(v(2 3 4)) // ev. v(2+3 2+4 3+4) ev. v(5 6 7)

  4. ⟨( f(f(v(x y z)) = (x*a + y*b + z*c) )⟩
    Function that assigns to each vector a scalar.

    f(v(2 3 4)) // ev. 2*a + 3*b + 4*c


Addenda

Physical quantities

Physical quantities can be scalar or vector.
Bibliography