To solve a problem like the one described for the soccer teams, we can use a matrix, which is a rectangular array of numbers. A row in a matrix is a set of numbers that are aligned horizontally. A column in a matrix is a set of numbers that are aligned vertically. Each number is an entry, sometimes called an element, of the matrix. Matrices (plural) are enclosed in [ ] or ( ) and are usually named with capital letters. For example, three matrices named A,B, and C are shown below.
A=[1324],B=1072−58762,C=−103321
Describing Matrices
A matrix is often referred to by its size or dimensions: m×n indicating m rows and n columns. Matrix entries are defined first by row and then by column. For example, to locate the entry in matrix A identified as aij, we look for the entry in row i, column j. In matrix A shown below, the entry in row 2, column 3 is a23.
A=a11a21a31a12a22a32a13a23a33
how are those subscripts pronounced?
Since the subscripts in a matrix refer to row and column entry locations, the numbers are pronounced distinctly from one another. To refer to the 1st row, third column entry in the matrix A above, we say "a one three."
A square matrix is a matrix with dimensions n×n, meaning that it has the same number of rows as columns. The 3×3 matrix above is an example of a square matrix.
A row matrix is a matrix consisting of one row with dimensions 1×n.
[a11a12a13]
A column matrix is a matrix consisting of one column with dimensions m×1.
a11a21a31
A matrix may be used to represent a system of equations. In these cases, the numbers represent the coefficients of the variables in the system. Matrices often make solving systems of equations easier because they are not encumbered with variables. We will investigate this idea further in the next section, but first we will look at basic matrix operations.
A General Note: Matrices
A matrix is a rectangular array of numbers that is usually named by a capital letter: A,B,C, and so on. Each entry in a matrix is referred to as aij, such that i represents the row and j represents the column. Matrices are often referred to by their dimensions: m×n indicating m rows and n columns.
Example: Finding the Dimensions of the Given Matrix and Locating Entries
Given matrix A:
What are the dimensions of matrix A?
What are the entries at a31 and a22?
A=22314107−2
Answer:
The dimensions are 3×3 because there are three rows and three columns.
Entry a31 is the number at row 3, column 1 which is 3. The entry a22 is the number at row 2, column 2 which is 4. Remember, the row comes first, then the column.
Try it
[ohm_question]6388[/ohm_question]
Adding and Subtracting Matrices
We use matrices to list data or to represent systems. Because the entries are numbers, we can perform operations on matrices. We add or subtract matrices by adding or subtracting corresponding entries.
In order to do this, the entries must correspond. Therefore, addition and subtraction of matrices is only possible when the matrices have the same dimensions. We can add or subtract a 3×3 matrix and another 3×3 matrix, but we cannot add or subtract a 2×3 matrix and a 3×3 matrix because some entries in one matrix will not have a corresponding entry in the other matrix.
A General Note: Adding and Subtracting Matrices
Given matrices A and B of like dimensions, addition and subtraction of A and B will produce matrix C or matrix D of the same dimension.
A+B=C such that aij+bij=cij
A−B=D such that aij−bij=dij
Matrix addition is commutative.
A+B=B+A
It is also associative.
(A+B)+C=A+(B+C)
Example: Finding the Sum of Matrices
Find the sum of A and B given
A=[acbd] and B=[egfh]
Answer:
Add corresponding entries.
A+B=[acbd]+[egfh]=[a+ec+gb+fd+h]
[ohm_question]1079[/ohm_question]
Example: Adding Matrix A and Matrix B
Find the sum of A and B.
A=[4312] and B=[5097]
Answer:
Add corresponding entries. Add the entry in row 1, column 1, a11, of matrix A to the entry in row 1, column 1, b11, of B. Continue the pattern until all entries have been added.
Be sure to handle negative numbers carefully when finding the difference of two matrices. In the example using the 3 X 3 matrix below, for instance, subtracting a13−b13 results in −2−(−2)=0
Example: Finding the Sum and Difference of Two 3 x 3 Matrices
Given A and B:
Find the sum.
Find the difference.
A=2144−1012−2−2102 and B=60−510−122−2−4−2
Revision and Adaptation.Provided by: Lumen LearningLicense: CC BY: Attribution.
CC licensed content, Shared previously
College Algebra.Provided by: OpenStaxAuthored by: Abramson, Jay et al..License: CC BY: Attribution. License terms: Download for free at http://cnx.org/contents/9b08c294-057f-4201-9f48-5d6ad992740d@5.2.
Question ID 6388.Authored by: Dow,David D..License: CC BY: Attribution. License terms: IMathAS Community License CC-BY + GPL.