August 14, 2020
Chapters
Matrix Formulas
A matrix is a rectangular array of numbers, symbols, or expressions, arranged in rows and columns. The numbers are called the elements, or entries, of the matrix. The elements of an array can be added, subtracted and multiplied, and can be used to represent linear transformations and vectors and solve equations.
Matrix Dimensions
Terms  

Dimensions of a matrix  The number of rows and columns of the matrix. 
Element  An individual item in a matrix. 
The dimensions of a matrix are the size of the matrix: the number of rows and the number of columns of the matrix (in this order).
If a matrix has m rows and n columns, the matrix is said to be a 'm by n' matrix, written 'm × n'.
Consider matrix A:
Matrix A is a 2 x 3 matrix with 2 rows and 3 columns.
A matrix with n rows and n columns is called a square matrix of order n.
Consider matrix B:
Matrix B is a square matrix of order 2.
An ordinary number can be regarded as a 1 × 1 matrix, thus 7 can be thought of as the matrix
.
Matrix Elements
In common notation, a capital letter denotes a matrix, and the corresponding small letter with a double subscript describes an element of the matrix.
A matrix element is simply a matrix entry. Each element in a matrix is identified by naming the row and column in which it appears. The element in row i and column j of Matrix A is denoted as a_{i,j}.
Consider matrix C:
If C is the 2 × 3 matrix shown above, then a_{1,1} = 5, a_{1,2} = 10, a_{2,1} = 12, a_{2,2} = 6, a_{3,1} = 5, and a_{3,2} = 7. Thus, a_{1,1} is the entry in the first row and the first column, a_{2,1} is the entry in the second row and first column, etc.
Types of Matrices
Name  Size  Description  Example 

Row Matrix  1 x n  A matrix is said to be a row matrix if it has only one row. It is sometimes used to represent a vector.  1 x 4 row matrix

Column Matrix  n x 1  A matrix is said to be a column matrix if it has only one column. It is sometimes used to represent a vector.  3 x 1 column matrix

Rectangular Matrix  n x m  A matrix is said to be rectangular if the number of rows is not equal to the number of columns.  2 x 3 rectangular matrix

Square Matrix  n x n  A matrix with the same number of rows and columns, sometimes used to represent a linear transformation from a vector space to itself, such as reflection, rotation or shearing.  3 x 3 square matrix

Diagonal Matrix  n x n  A square matrix is said to be diagonal if at least one element of principal diagonal is nonzero and all the other elements are zero.  3 x 3 diagonal matrix

Scalar Matrix  n x n  A diagonal matrix is said to be scalar if all of its diagonal elements are the same.  3 x 3 scalar matrix

Identity/Unit Matrix  n x n  A diagonal matrix is said to be identity if all of its diagonal elements are equal to one, denoted by I.  2 x 2 identity matrix

Lower Triangular Matrix  n x n  A square matrix is said to be triangular if all of its elements above the principal diagonal are zero (lower triangular matrix).  3 x 3 lower triangular matrix

Upper Triangular Matrix  n x n  A square matrix is said to be triangular if all of its elements below the principal diagonal are zero (upper triangular matrix).  3 x 3 upper triangular matrix

Null/Zero Matrix  n x n  A matrix is said to be a null or zero matrix if all of its elements are equal to zero. It is denoted by O.  2 x 2 zero matrix

Matrix Row Operations
Matrices can be added, subtracted and multiplied as individual entities, giving rise to important mathematical systems known as matrix algebras. Matrices occur naturally in simultaneous equations. In the following equations for the variables x and y,
the array of numbers
is a matrix where its elements are the coefficients of the variables. The solutions to the equations depend on these numbers and their arrangement. If 4 and 2 in the second row were interchanged, the solution would not be the same.
We use matrices to list data or to represent systems. We can perform operations on matrices because their elements/entries are numbers.
Application 

Matrices have wide applications in engineering, physics, economics, and statistics as well as in various branches of mathematics. Some of them merely take advantage of the compact representation of a set of numbers in a matrix. Matrices have also come to have important applications in computer graphics, where they have been used to represent rotations and other transformations of images. Matrices over a polynomial ring are important in the study of control theory. Chemistry makes use of matrices in various ways, particularly since the use of quantum theory to discuss molecular bonding and spectroscopy. Matrices are used throughout the field of machine learning in the description of algorithms and processes such as the input data variable (X) when training an algorithm. 
Adding and Subtracting Matrices
Addition and subtraction require that the matrices be the same dimensions. The resultant matrix is also of the same dimension.
When performing addition, add each element in the first matrix to the corresponding element in the second matrix.
Consider matrix A and matrix B:
Note that the element a_{1} in matrix A, is added up to element b_{1} in matrix B, to produce element a_{1} + b_{1} = 1 + 3 = 4 in the resultant matrix. Also note that both matrices being added are 2 x 2 matrices, and the resulting matrix is also 2 x 2 matrix.
When performing subtraction, subtract each element in the second matrix from the corresponding element in the first matrix.
Consider matrix A and matrix B again:
Be careful when subtracting with signed numbers!
Scalar Matrix Multiplication
When we work with matrices, we refer to real numbers as scalars. The term scalar multiplication refers to the product of a real number and a matrix. In scalar multiplication, each entry in the matrix is multiplied by the given scalar.
For example, given that
let's find 5A.
To find 5A, simply multiply each matrix element by 5
Scalar multiplication as repeated addition
Remember that to add (or subtract) two matrices, we can simply add (or subtract) the corresponding elements.
Let's consider the repeated addition of a matrix:
Find
.
Multiplying Matrices
When multiplying matrices, the elements of the rows in the first matrix are multiplied with corresponding columns in the second matrix.
If A is a m x n matrix and B is a n × p matrix, the result AB of their multiplication is a m × p matrix defined only if the number of columns n in A is equal to the number of rows n in B.
The dot product
Consider the 2 x 3 matrix A:
and the 3 x 2 matrix B:
The reusltant matrix
will be a 2 x 2 matrix:
Consider matrix A and matrix B:
Let's find matrix
The word matrix appears five times in the King James Version, always in the phrase “all that openeth the matrix”.
Matrix is a translation of the Hebrew word רֶחֶם (rechem), meaning womb. And openeth is פֶּטֶר (peter), meaning that which first opens. So the phrase means that which first opens the womb, thus the mother’s firstborn.
The English word matrix comes from the same word in Latin, meaning womb, which comes from mater meaning mother. At the time of translation, matrix meant womb in English, but it has since taken on different meanings in biology, mathematics, computing and electronics. Because of these multiple meanings as well as its use in the Bible the Wachowskis chose the word matrix for their 1999 movie The Matrix ‒ the Matrix is both a computer simulation for the humans’ minds and a machine womb for their bodies.
We can also find the same phrase “all that openeth the womb” in the books of Exodus, Ezekiel and Luke.
In the earlier Tyndale translation (1534) of the Bible, the word matrix appears only once in the New Testament:
23 (as that is written in the lawe of the Lorde: every man that fyrst openeth the matrix shalbe called holy to the Lorde)
(Lk. 2:23 TNT)