Vectors: basics and operations - drnickmines/MinesLinearAlgebra GitHub Wiki
There are two major objects in Linear Algebra: vectors and matrices. Here, we will review some important basics with vectors. Most of this lesson is review from Calculus II.
Vectors are lists of numbers. Actually, there is a more technical definition we will get to much later in this course. But for now, vectors are lists of numbers. There are numerous notations used for vectors, including the following:
In this class, we may use any of the notations from above.
Defnition: Vectors belong to a set called a vector space. The vector space for these vectors is called
$\large \mathbb{R}^n$ . The$\large n$ here is the dimension of the vector space, and it's just the length of the vector.
The first vector listed above has four elements, so it belongs to
Defnition: A scalar is just a real or complex number.
Part of linear algebra is figuring out the rules of arithmetic for vectors and matrices. Can we add these things? Multiply? Divide? When do the traditional rules of operations applky? Do we have laws of commutivity? Associativity? Distributivity?
Addition and subtration of vectors is just done component by component:
It is quite simple to multiply a scalar and a vector:
Important
Scalar multiplication results in a scaled version (longer or shorter, but still parallel) of the original vector.
Definition: the dot product (also known as the inner product) of two vectors is the sum of the products of the corresponding components of the vectors.
That is,
Important
The dot product of two vectors is a scalar!
Note
In Calc II, we also learned about the cross product, another product between two vectors. This is a very useful product in Calc III (and therefore, in physics, one of our favorite branches of Calc III), but it is only defined between vectors in
The following definition will be used quite a bit in this class:
Definition: A sum of scaled versions of a collection of vectors is called a linear combination of those vectors.
The following are all different linear combinations of the vectors
Note
If each of
In
Here we see a graphical representation of the addition of the vectors
Thinking of vectors in this way leads to the idea of the length of a vector:
Definition: The norm, or length, of
$\large \vec{x}$ is denoted by$\large \lVert\vec{x}\rVert$ and is calculated by
Note
We can use the norm to measure distance between vectors. The distance between
Relatedly, we can measure the angle between vectors:
This leads to a very important fact for vectors - the dot product is our key to determine if two vectors are orthogonal:
Theorem: Two vectors are orthogonal (or perpendicular or normal, all three words mean the same thing) if their dot product equals zero.
After this this section, I can:
- Recall the definitions: scalar, linear combination, norm, and
$\large \mathbb{R}^n$ - Compute linear combinations of vectors.
- Determine if vectors are orthogonal.
- Calculate the length of a vector, the distance between vectors, or the angle between vectors.