ELIAS EBNER

  • Home
  • Blog
  • Courses
  • About

Linear Algebra

  1. Vectors
    1. Scalars
    2. Vectors vs Sets
    3. Addition and Subtraction
    4. Scalar Multiplication
    5. Zero Vectors
    6. Linear Combinations
    7. Real Dot Product
    8. Length of a Vector
    9. Orthogonal Vectors
    10. Parallel Vectors
    11. Angle Between Vectors
    12. Unit Vectors
  2. Matrices
    1. Notation
    2. Indexing
    3. Submatrices
    4. Matrix-by-Vector Product
    5. Addition and Subtraction
    6. Scalar Multiplication
    7. Transpose
    8. Symmetries
    9. Matrix Multiplication
    10. Identity Matrix
    11. Non-Negative Integer Powers
    12. Reverse Order Law of Transposition
  3. Linear Systems
    1. Inverse Matrices
    2. Singular Matrices
    3. Linear Dependence
    4. Solutions
  4. Planes
    1. Vector Cross Product
  5. Gaussian Elimination
Linear Algebra ›Matrices ›Indexing

Indexing of a Matrix

Just like the elements of a vector v⃗\vec{v}v are referred to as v1,v2,…,vnv_1, v_2, \dots, v_nv1​,v2​,…,vn​, where nnn is the number of dimensions of the vector, there is a way to refer to elements of a matrix as well.

Referring to Elements of a Matrix

If we have a matrix AAA (capital AAA), we refer to its elements as aija_{ij}aij​ (lowercase aaa), where iii refers to the row the element finds itself in, and jjj is its column.

Therefore, the first row of a matrix will have elements a11,a12,…,a1na_{11}, a_{12}, \dots, a_{1n}a11​,a12​,…,a1n​, where nnn is the number of columns in the matrix.

The first column will have elements a11,a21,…,am1a_{11}, a_{21}, \dots, a_{m1}a11​,a21​,…,am1​, where mmm is the number of rows in the matrix.

For instance, a general 3×33 \times 33×3 matrix AAA would look like this:

A=[a11a12a13a21a22a23a31a32a33].A = \begin{bmatrix} a_{11} & a_{12} & a_{13} \\ a_{21} & a_{22} & a_{23} \\ a_{31} & a_{32} & a_{33} \end{bmatrix}.A=​a11​a21​a31​​a12​a22​a32​​a13​a23​a33​​​.

You can also use an uppercase AAA (like AijA_{ij}Aij​). You could say they are interchangeable, but it can also be a bit more subtle: AijA_{ij}Aij​ explicitly refers to the entry of matrix AAA at row iii and column jjj, whereas aija_{ij}aij​ denotes the more generic element in the matrix. They really refer to the same entry, but the uppercase version emphasizes the matrix while the lowercase version emphasizes its elements.

For you to better understand the subtle difference, here is an example. We have a matrix

A=[a11a12a21a22].A = \begin{bmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{bmatrix}.A=[a11​a21​​a12​a22​​].

As you can see, I used lowercase aaas to denote the elements in the matrix. But if I refer to a standalone element, I would use AijA_{ij}Aij​.

Sometimes, for convenience when typing on a keyboard, the notation A(i,j)A(i,j)A(i,j) is used to refer to an element of a matrix AAA. The same idea applies: iii is the row, jjj is the column.

For example, take the matrix

A=[2417].A = \begin{bmatrix} 2 & 4 \\ 1 & 7 \end{bmatrix}.A=[21​47​].

Then

  • a11=2a_{11} = 2a11​=2
  • a12=4a_{12} = 4a12​=4
  • a21=1a_{21} = 1a21​=1
  • a22=7a_{22} = 7a22​=7

Specifying the Size of a Matrix

When we refer to some matrix AAA through its capital letter name, we can specify the size as an index: Am×nA_{m \times n}Am×n​.

For instance, if the matrix AAA has size 3×43 \times 43×4, we can refer to it as A3×4A_{3 \times 4}A3×4​, if we deem it to be important information in the current context.

Referring to an Entire Row or Column

We can use the notation Ai⋆A_{i \star}Ai⋆​ to refer to the iiith row. Similarly, we can use A⋆jA_{\star j}A⋆j​ to refer to the jjjth column.

Sometimes, the notation Ai⋅A_{i \cdot}Ai⋅​ and A⋅jA_{\cdot j}A⋅j​ is used, but I will stick to the first version.

For instance, take the matrix

A=[725914836027].A = \begin{bmatrix} 7 & 2 & 5 & 9 \\ 1 & 4 & 8 & 3 \\ 6 & 0 & 2 & 7 \end{bmatrix}.A=​716​240​582​937​​.

Then

A2⋆=[1483],A_{2 \star} = \begin{bmatrix} 1 & 4 & 8 & 3 \end{bmatrix},A2⋆​=[1​4​8​3​],

and

A⋆3=[582].A_{\star 3} = \begin{bmatrix} 5 \\ 8 \\ 2 \end{bmatrix}.A⋆3​=​582​​.

A2⋆A_{2 \star}A2⋆​ is said to be a row vector, and A⋆3A_{\star 3}A⋆3​ is said to be a column vector.

I have not mentioned this in the chapter about vectors, but we have only ever worked with column vectors this far. Now you know that there is actually a difference between writing a vector as a column or row.

This concept is well-understood with the idea that I have touched upon in the chapter page about matrices. You can see vectors as a matrix with only one column. Basically, a column vector is a matrix of size m×1m \times 1m×1, and a row vector is a matrix of size 1×n1 \times n1×n.

Previous
Matrix Notation
Next
Submatrices
This website does not collect personal data, does not use cookies, and does not perform any tracking.