180 likes | 439 Views
Matrix Definition. A Matrix is an ordered set of numbers, variables or parameters. An example of a matrix can be represented by :. The matrix is an ordered set of numbers arranged in rows and columns.
E N D
Matrix Definition A Matrix is an ordered set of numbers, variables or parameters. An example of a matrix can be represented by: The matrix is an ordered set of numbers arranged in rows and columns. The number of rows and columns of a matrix defines the matrix dimension. In our example, the matrix has dimension (2x3) -> 2 rows by 3 columns. WARNING: to assign a dimension to the matrix always starts indicating the number of rows, and then the number of columns. The numbers of the matrix are enclosed in brackets.
Matrix Content Each number in the matrix is characterized by a position expressed by the row and column to which it refers. For instance, the number 4 corresponds to the element in the matrix A located at the intersection of the second row and second column. The components of the matrix (numbers, parameters, variables) are the matrix elements positioned at the intersection of each row and each column. To each matrix is associated a capital letter in bold type that expresses the matrix name. The letter A assumes the content of the matrix. Recalling the letter in the calculations of matrix , the same ordered set of numbers in square brackets is implicitly recalled.
Matrix Dimension The same matrix can be also written in the following way where the dimension is indicated in parenthesis below the capital letter. The matrix A of dimension 2 by 3 is a rectangular matrix. A rectangular matrix has a number of rows different from the number of columns. While a matrix B (2 by 2) is a square matrix. A square matrix has a number of rows equal to the number of columns. An example of a square matrix is as follows:
Matrix Elements A matrix of dimension n by m (n rows by m columns ) can be represented in the following general way: Within the matrix we can find the elements, each one characterized by a row index and a column index which define its position. The element a12identifies that element on the intersection of the first row and second column.
Vectors If a matrix contains a single column takes the name of column vector, while if it contains a single row is called row vector. A vector is a matrix whose dimension of row or column is equal to 1. For example, the matrix is a column vector. Vectors are usually denoted by a lowercase letter in bold, while the matrix by a capital letter always bold.
ElementOrder Two matrices are equal if and only if the values and positions of the elements in the two matrices are equal. The matrices A and B are equal, while the matrix C even if it contains the same values is not equal to the other two because the order of elements diverges. The order of elements in a matrix is very important!!
AdditionofMatrices Two matrices can be added if and only if they have the same dimension. If the two matrices have the same dimension, the matrices are said to be conformable for addition. The sum of two matrices is performed by adding the elements of the two matrices that are in the same position. The same rules outlined above apply to the subtraction:
MultipicationofMatrix by a Scalar A matrix can be multiplied by a scalar, ie for a constant. The result is a matrix whose elements will be obtained through the product of the elements of the initial matrix bythe scalar: Scalar
MultiplicationofMatrices The product of two matrices can be done only if the two matrices are conformable for multiplication. Two matrices are conformable for multiplication when the number of columns in the first matrix is equal to the number of rows in the second matrix. In other words, the column dimension of the first matrix must be equal to the row dimension of the second matrix. Given two matrices: The two matrices are conformable for the multiplication, because the number of columns of A is equal to the number of rows of B. Warning: the two matrices are no longer conformable for the multiplication if B is prepended to A. Again, the order is important!!
MultiplicationofMatrices The result of the product between two matrices conformable for multiplication is a matrix with a row dimension equal to the number of row of the first matrix and a column dimension equal to number of columns of the second matrix. Found that two matrices are conformable for multiplication, it is possible to calculate the product following the rule "row by column". Each product “row by column” identifies the element in the resulting matrix positioned on the row and column used for the calculation. Then, the product “row by column" concerning the first row element of A and first column element of B identifies the element in the first row and first column of the resulting matrix.
MultiplicationofMatrices The operation “row-by-column" is the sum of the products of the elements of row of the first matrix by the corresponding elements of column of the second matrix.
Square Matrix The square matrix is a matrix that has the same number of rows and columns. are twosquarematrices.
Diagonal Matrix A matrix is said diagonal when it presents non-zero values only on the main diagonal: The principal diagonal in a matrix identifies those elements of the matrix running from north-west to south-east. The secondary diagonal of a matrix identifies those elements of the matrix running from north-east to south-west. Principaldiagonal Secondarydiagonal
Identity Matrix The identity matrix is a matrix that presents unit values on the principal diagonal and zero values elsewhere . The productbetween a matrixA and anidentitymatrixI produces the samematrixA.
Inverse Matrix An inverse matrix can bewrittenas: Above the inverse matrixofA. A matrixmultipliedbyits inverse producesas a result the identitymatrix:
Transposedmatrix A matrix is said transposed when its rows become columns and its columns become rows. Given a matrix: Itstransposedmatrixis: To indicate that a matrix is transposed is used to put an apostrophe at the upper right hand side of the letter indicating the matrix.