Vector Math

Introduction

Vectors are mathematical constructs that indicate magnitude and time. 

They are very useful in science and engineering fields. 

In this post, we’ll cover the basic math of vectors. 

Return to Menu

Vectors and Scalars

Scalar

A scalar only has magnitude (size).

Example: Speed

Vector

A vector has magnitude (size) and direction.

Example: Velocity = Speed in a specified direction

Example: Force has magnitude and direction

Adding/Subtracting Vectors

  • Vectors have magnitude and direction but graphically they don’t specifically place anywhere. i.e. they can be placed anywhere.

Return to Menu

Vector Addition

To add vectors algebraically, sum their corresponding components.

  • If a and b, then: a
Vector Addition: Graphical (Tip-to-Tail / Triangle Rule):
  • See graphical example below (2nd drawing) from https://en.wikipedia.org/wiki/Euclidean_vector
  • Place the tail of the second vector (b) at the tip (arrowhead) of the first vector (a).
  • The resultant sum vector (a+b) is drawn from the tail of the first vector to the tip of the second vector.

The addition of two vectors a and b

Vector Addition: Graphical (Parallelogram Rule):
  • See graphical example above (1st drawing) from https://en.wikipedia.org/wiki/Euclidean_vector
  • Draw both vectors (a and b) with their tails at the same starting point.
  • Complete the parallelogram formed by these two vectors as adjacent sides.
  • The resultant sum vector (a+b) is the diagonal of the parallelogram that starts from the common tail point.
Properties of Vector Addition:

For vectors a, b, c and the zero vector :

  • Commutativity: The order of addition does not affect the sum. a + b = b + a
  • Associativity: The grouping of vectors in addition does not affect the sum.
  • Identity Element (Zero Vector): Adding the zero vector to any vector leaves the vector unchanged: a
  • Inverse Element (Negative Vector): For every vector a, there exists a unique negative vector such that their sum is the zero vector: a
  • Closure: The sum of two vectors is always another vector.

Return to Menu

Vector Subtraction

  • Subtracting vector b from vector a,  (a),  is defined as adding vector a to the negative of vector b:  (a).
  • The negative vector has the same magnitude as b but points in the exact opposite direction (i.e. flipped 180 degrees).
  • Subtract the corresponding components of the vectors.
    • If a and b, then: a
  • Graphical (tip to tip): If vectors a and b are drawn with their tails at the same starting point, the resultant vector a is drawn from the tip of b to the tip of .

The subtraction of two vectors a and b

  • Graphical (flip subtrahend vector and add): Flip the subtrahend vector 180 degrees and add this to the first vector

Return to Menu

Vector Multiplication by a scalar

See the graphical example above below from https://en.wikipedia.org/wiki/Euclidean_vector

  • Multiplying a vector by a positive scalar increases the magnitude of the vector
  • Multiplying a vector by negative one, flips the direction by 180 degrees

Return to Menu

Length (Magnitude of a vector)

The length or magnitude of a vector is a scalar quantity that represents the “size” or “extent” of the vector, without regard to its direction.

The magnitude of a vector  is typically denoted as or .

For a vector in a coordinate system:

  • In two dimensions (e.g., ): The magnitude is calculated using the Pythagorean theorem:
  • In three dimensions (e.g., ): The magnitude is also found using a generalization of the Pythagorean theorem:

This makes sense. Just plot 

This concept extends to vectors in any number of dimensions, where the magnitude is the square root of the sum of the squares of all its components.

Return to Menu

Vector Dot Product

The dot product (also known as the scalar product or inner product) of two vectors is an algebraic operation that takes two equal-length sequences of numbers (vectors) and returns a single number (a scalar).

Vector Dot Product Algebraic Definition

Given two vectors and in -dimensional space,

  • their dot product is the sum of the products of their corresponding components:
Vector Dot Product Geometric Definition

Given two vectors and in Euclidean space, their dot product is the product of their magnitudes and the cosine of the angle between them:

  • where is the magnitude (length) of vector ,
  • and is the magnitude of vector .
Properties of the Dot Product:

Let , , and be vectors, and be a scalar.

  • Commutative Property: The order of the vectors does not affect the result.
  • Distributive Property over Vector Addition:
  • Scalar Multiplication Property (Associative with Scalar Multiplication):
  • Relationship with Magnitude (Squared Length): The dot product of a vector with itself gives the square of its magnitude. .This also implies that .
  • Orthogonality Condition: Two non-zero vectors are perpendicular (orthogonal) if and only if their dot product is zero. (for non-zero and )
  • Dot Product with the Zero Vector: The dot product of any vector with the zero vector is zero.

These properties make the dot product a fundamental tool in various areas of mathematics, physics, and engineering, particularly for calculating angles, projections, and work done by forces.

Return to Menu

Vector Cross Product

  • The cross product (also known as the vector product) of two vectors,  and  is a binary operation.
  • It is defined only in three-dimensional Euclidean space. (each vector can only have three components)
  • Unlike the dot product, the result of a cross product is another vector, not a scalar and it is orthogonal to the the multiplicand vectors

It is denoted as .

The cross product  is a vector  that possesses the following characteristics:

  • Direction: The vector  is perpendicular (orthogonal) to both and .

  • Its direction is determined by the right-hand rule: If you curl the fingers of your right hand from the direction of  to the direction of  (through the smaller angle between them), your thumb will point in the direction of .

  • Magnitude: The magnitude of  is given by the formula: where is the angle between  and  ().

  • Geometrically, this magnitude represents the area of the parallelogram formed by vectors  and  when their tails are at the same point.

See the graphical example below from https://en.wikipedia.org/wiki/Euclidean_vector

undefined

Algebraic Definition (in Cartesian Coordinates)

Let a = three dimensional vector a and

let b =  three dimensional vector b

a = (ax, ay, az)   

b = (bx, by, bz)

c = a x b = a vector with three components that are computed as the determinants of three 2 x 2 matrices:

If you look at the a and b vectors as a collection of three columns of components:  col1=  ax/bx,  col2 = ay/by and col3 =  az/bz, 

notice that the sequence of matrices to compute the determinant on are col2 with col3, then col3 with col1, then col 1 with col2 (a left to right sequence).

So, 

c = a x b = (aybz – byaz,  azbx – bzax,  axby – bxay)

Return to Menu

Disclaimer: The content of this article is intended for general informational and recreational purposes only and is not a substitute for  professional “advice”. We are not responsible for your decisions and actions. Refer to our Disclaimer Page.

Leave a Comment

Your email address will not be published. Required fields are marked *