Activity

Introduction to Matrix



In mathematics, a matrix (plural matrices) is a rectangular table of elements (or entries), which may be numbers or, more generally, any abstract quantities that can be added and multiplied. Matrices are used to describe linear equations, keep track of the coefficients of linear transformations and to record data that depend on multiple parameters.



Matrices are described by the field of matrix theory. They can be added, multiplied, and decomposed in various ways, which also makes them a key concept in the field of linear algebra.


Example







or





The matrix is a 4 x 3 matrix. The element a2,3 or a [2,3] is 7. In terms of the mathematical definition given above, this matrix is a function A: {1,2,3,4} x {1,2,3} -> R and, for example, a ((2,3)) = 7 and A ((3,1)) = 4.



The matrix

R = [ 1 2 3 4 5 6 7 8 9 ]

is a 1 x 9 matrix, or 9-element row vector.

Basic operations


Matrix Addition

Two or more matrices of identical dimensions m and n can be added. Given m-by-n matrices A and B, their sum A+B is the m-by-n matrix computed by adding corresponding elements:






For example:


Another, much less often used notion of matrix addition is the direct sum.



Matrix Substraction

If A and B are matrices of the same type then the subtraction is found by subtracting the corresponding elements aij-bij


Here is an example of subtracting matrices






Matrix multiplication

Multiplication of two matrices is well-defined only if the number of columns of the left matrix is the same as the number of rows of the right matrix. If A is an m-by-n matrix and B is an n-by-p matrix, then their matrix product AB is the m-by-p matrix given by:

for each pair (i,j).







For example:









Matrix multiplication has the following properties:

  • (AB)C = A(BC) for all k-by-m matrices A, m-by-n matrices B and n-by-p matrices C ("associativity").

  • (A+B)C = AC+BC for all m-by-n matrices A and B and n-by-k matrices C ("right distributivity").

  • C(A+B) = CA+CB for all m-by-n matrices A and B and k-by-m matrices C ("left distributivity").

Matrix multiplication is not commutative; that is, given matrices A and B and their product defined, then generally AB BA. It may also happen that AB is defined but BA is not defined.



The Classroom

  • Print the Lesson
  • Support For Visually impaired