Matrix
From Math Images
A matrix is a rectangular array of numbers with various applications throughout mathematics. An example of a matrix is
Every matrix has a certain number of rows and columns. The above matrix in particular has 2 rows and 3 columns, so we call it a 2x3 matrix, or
. We refer to an entry by its row and column position. For example, entry
in the above matrix is 23, and entry
is 0.5.
Contents |
[edit] Addition
Two matrices of that have the same dimensions can be added. Addition is carried out by entry by entry, as in the following example:
[edit] Scalar Multiplication
Matrices of any size can be multiplied by scalars, again by component:
[edit] Matrix Multiplication
Certain matrices can also be multiplied, although this operation is a bit more involved, and generally gives another matrix as the product. Notationally, multiplication signs are usually not used; instead we simply write two matrices next to each other to indicate multiplication. An example of matrix multiplication follows:
We proceed by multiplying the first row of the first matrix with the first column of the second matrix. Multiplying a row by a column means multiplying the two first entries with each other, then the two second entries, and finally the two third entries, then add each of these products.
- (First row of first matrix)*(First column of second matrix) =
Because this quantity came from the first row and the first column of our respective matrices, it is the (1,1) entry of our product.
We must now multiply the first row of the first matrix by the second column of the second matrix, giving the (1,2) entry of our product:
Continuing, the (2,1) entry of our product is:
And the final, (2,2) component of our product is:
Therefore,
As you may notice, the product AB only exists if A has as many columns as B has rows. In this case, we see that A is a two by three matrix, and B is a three by two matrix. Their product is a two by two matrix.
Using the subscript notation, AB exists if
and
. Since n is the number of columns of A, B must have n rows. This also means that AB can be denoted as
, meaning that the matrix AB has m rows and j columns.
Also notice that matrix multiplication is not generally commutative, so AB ≠ BA, as shown below:
- However, reversing the order of the matrices being multiplied gives a different product:
This animation illustrates the process of matrix multiplication:
[edit] Multiplication of a Matrix by a Vector
A vector can really be thought of as a matrix with one column. This means that the product of an
matrix and an n-component vector exists. This product is also a vector, and is found in the same way as when we multiplied two matrices above.
An example of multiplying a matrix by a vector is:
[edit] References
Another explanation of matrix operations: http://www.miislita.com/information-retrieval-tutorial/matrix-tutorial-2-matrix-operations.html

