Index Notation
Previously, we introduced matrices and how they can be used to represent linear transformations. We will now introduce a new notation that simplifies the representation of matrices and vectors (sometimes): index notation.
This is usually not used in introductory linear algebra courses, but it is widely used in physics and engineering. Especially in higher-level courses like tensor calculus, index notation is used extensively, so it's good to get a head start.
This page is completely optional, and you can skip it if you're not interested in the topic.
Table of Contents
Vectors in Index Notation
As we know, a vector can be represented as a list of numbers. They represent the coefficients of the basis vectors in the vector space.
For example, in
For the purposes of this page, we can use a more general notation for the basis vectors.
We will use
Then, the vector
Notice that we can write this in a more compact form using a summation:
In
Linear Transformations in Index Notation
Matrices can also be represented in index notation.
A matrix
To index the elements of the matrix, we use two indices: one for the row and one for the column. Remember: first count the rows (from top to bottom) and then the columns (from left to right).
The
In general, an
Now let's think about how we can write the rules for linear transformations (matrix-vector multiplication) in index notation.
When we multiply a matrix
Recall that each column in the matrix
Then, we can write that the first component of
Likewise, the second and third components of
If we call this component of
Then, the entire vector
Often, in higher-level courses, these summations are very, very common.
For example, in tensor calculus, you will regularly see expressios with three, four, or more indices.
Hence, the summation notation is often dropped, and the summation is implied.
This means that the above equation
The index
Matrix Multiplication in Index Notation
Now, let's think about how we can write the rules for multiplying two matrices in index notation.
When we multiply two matrices
We have previously discussed the intuition and the rules for multiplying matrices together.
To summarize, for a
We can notice that the first element of the matrix
The second and third elements of the matrix
Here are more examples:
Notice the numbers that are colored;
the
If we generalize this, we can write the element
And in the Einstein summation convention, this can be written as: