Purpose: Matrices arrange information compactly and can simplify work, including the representation of systems of linear equations.
Applications: Spreadsheet operations use matrices for budgeting, sales projections, cost estimation and analysing experimental results.
Uses beyond these: Matrices represent magnification, rotation and reflection, and are used in cryptography, science, genetics, economics, sociology, psychology and industrial management.
Meaning and Structure of a Matrix
Definition
Matrix — An ordered rectangular arrangement of numbers or functions; each number or function in it is an element or entry.
Rows, Columns and Entries
Rows are horizontal lines of entries; columns are vertical lines.
Naming: Matrices are commonly denoted by capital letters such as A, B and C.
Entries: A matrix may contain numbers such as integers, fractions, decimals, surds and complex numbers, or functions such as trigonometric expressions.
Arrangement: The rows and columns can represent different categories; choose the arrangement that makes the information clear.
Examples of Matrix Entries
Matrix
Arrangement
Rows and columns
A=−203556
Numbers
3 rows and 2 columns
B=2+i3.533−15−21275
Numbers, including complex, decimal, fractional and surd entries
3 rows and 3 columns
C=[1+xcosxx3sinx+23tanx]
Expressions and functions
2 rows and 3 columns
Two Ways to Arrange the Same Data
Arrangement
Matrix
Meaning of rows and columns
Students as rows; items as columns
151013625
Rows represent Radha, Fauzia and Simran; columns represent notebooks and pens. There are 3 rows and 2 columns.
Items as rows; students as columns
[156102135]
Rows represent notebooks and pens; columns represent Radha, Fauzia and Simran. There are 2 rows and 3 columns.
Reading a Matrix
Identify the information represented by the rows and columns.
Count the horizontal rows and vertical columns.
Read each entry according to its row and column position.
Worked example
Represent the notebook and pen counts for Radha, Fauzia and Simran, respectively, as a matrix with one row per student.
Use students as rows and notebooks and pens as the two columns, in that order.
151013625
The first row gives Radha's counts; the second and third rows give Fauzia's and Simran's counts.
151013625
Count the arrangement: it has three horizontal rows and two vertical columns.
3 rows,2 columns
Answer: The matrix is 151013625; its rows represent the students and its columns represent notebooks and pens.
⚠ Common mistake
Do not confuse rows with columns: rows run horizontally, columns run vertically. The same data can be arranged either way, but its labels and entry positions must match.
Practice
For matrix B, state how many rows and columns it has and give one example of a complex entry.
Hint: Count the horizontal and vertical lines of entries.
Key step:B has three horizontal rows and three vertical columns; its first entry is 2+i.
Solution: It has 3 rows and 3 columns. One complex entry is 2+i.
Practice
Write the notebook and pen counts as a matrix with items as rows and students as columns.
Hint: Use one row for notebook counts and another for pen counts.
Key step: Place the three notebook counts in the first row and the three pen counts in the second.
Solution: The matrix is [156102135].
Quick recap
Matrix: An ordered rectangular array of numbers or functions; its entries are its elements.
Rows: Horizontal lines; columns: vertical lines.
Notation: Matrices are commonly named with capital letters.
Arrangement: Rows and columns can represent different categories; label and interpret them consistently.
Applications: Matrices organise data and support work in mathematics, science, business and other fields.
Use this relation to find the number of entries or possible orders.
Constructing a Matrix from Its Entry Rule
Write the required number of rows and columns.
Substitute each allowed pair (i,j) into the entry rule.
1≤i≤m,1≤j≤n
Place each calculated aij in row i, column j.
Worked example
Construct a 3×2 matrix whose entries are given by aij=21∣i−3j∣.
Construct a 3×2 matrix using the rule aij=21∣i−3j∣.
For row 1, calculate both entries.
a11=21∣1−3∣=1,a12=21∣1−6∣=25
For row 2, calculate both entries.
a21=21∣2−3∣=21,a22=21∣2−6∣=2
For row 3, calculate both entries.
a31=21∣3−3∣=0,a32=21∣3−6∣=23
Answer:121025223
Applications and Reading Matrix Entries
Representing Data and Geometry
Data: Arrange information in rows and columns, then use the row and column position to interpret each entry.
Workers example: For factories I, II, and III, with men and women listed in that order, the matrix is 302527253126.
Entry meaning: In the workers matrix, the third-row, second-column entry 26 is the number of women workers in factory III.
Plane point: A point (x,y) can be represented as a column matrix [xy] or a row matrix [xy].
Example point: The point P(0,1) can be written as [01] or [01].
Figure vertices: Coordinates of vertices can be arranged as columns or rows. For A(1,0),B(3,2),C(1,3),D(−1,2), one representation is [103213−12]; the transposed arrangement is 131−10232.
Practice
A matrix has 8 elements. Find all possible orders.
Hint: List the ordered pairs of natural numbers whose product is 8.
Key step:mn=8.
Solution: The factor pairs are (1,8),(2,4),(4,2),(8,1). Hence the possible orders are 1×8, 2×4, 4×2, and 8×1.
Practice
Represent worker counts for factories I, II, and III as a 3×2 matrix: men are 30,25,27 and women are 25,31,26. What does the entry in row 3, column 2 mean?
Hint: Use one row per factory and columns for men, then women.
Key step: Place each factory's men and women counts in the same row.
Solution: The matrix is 302527253126. The entry 26 represents women workers in factory III.
Practice
Represent the point P(0,1) as both a row matrix and a column matrix.
Do not reverse the order: m×n means m rows and n columns, not the other way around. For a fixed element count, list ordered factor pairs because m×n and n×m may be different orders.
Quick recap
Order:m×n means m rows and n columns.
Elements: An m×n matrix contains mn entries.
Position:aij is in row i, column j.
Possible orders: List ordered natural-number factor pairs of the total number of entries.
Applications: Matrices organize data and represent points or vertices using coordinate entries.
Entry rules: Substitute valid row and column indices to construct each matrix entry.
Row matrix — A matrix with exactly one row; its order is 1×n.
Definition
Square matrix — A matrix with the same number of rows and columns; an n×n matrix is of order n.
Square-matrix example
Example:123−3451−16 is square of order 3; its main diagonal entries are 1,4,6.
Special square matrices
Definition
Scalar matrix — A diagonal matrix whose diagonal entries are all equal to the same constant k.
Definition
Identity matrix — A square matrix with 1s on the main diagonal and 0s everywhere else.
Definition
Zero matrix — A matrix of any order in which every entry is zero; it is denoted by O.
Entry conditions
bij=0(i=j),bii=k(i=j),(In)ij={1,0,i=ji=j
Use these conditions to identify diagonal, scalar, and identity matrices.
Relationships between special matrices
Every identity matrix is a scalar matrix, and every scalar matrix is diagonal. A scalar matrix is an identity matrix when its common diagonal entry is 1.
Classifying a matrix
Count the rows and columns: one column gives a column matrix; one row gives a row matrix.
If the row and column counts match, the matrix is square.
For a square matrix, check whether off-diagonal entries are zero; then check whether diagonal entries are equal or all 1.
If every entry is zero, it is a zero matrix.
Worked example
Classify A=[5005].
Classify the matrix by order and by its entries.
A=[5005]
It has two rows and two columns, so it is square of order 2.
2×2
Its off-diagonal entries are zero, so it is diagonal; its diagonal entries are equal, so it is scalar.
a12=a21=0,a11=a22=5
The diagonal entries are not 1, so it is not an identity matrix; it is not a zero matrix.
5=1,A=O
Answer:A is a square matrix of order 2, and is both diagonal and scalar.
⚠ Common mistake
Do not call every diagonal matrix scalar: its diagonal entries must also be equal. An identity matrix requires those equal entries to be 1.
Practice
Classify 2000−10004.
Hint: Check its order, then compare its off-diagonal and diagonal entries.
Key step: It is square, all off-diagonal entries are zero, and its diagonal entries are unequal.
Solution: It is a square diagonal matrix of order 3, but not a scalar matrix.
Practice
Classify [1001].
Hint: Check whether it is diagonal and whether its diagonal entries are 1.
Key step: Its off-diagonal entries are zero and both diagonal entries are 1.
Solution: It is the identity matrix I2; it is also scalar and diagonal.
Practice
Classify [000].
Hint: Count rows and columns and check whether all entries are zero.
Key step: It has one row and three columns, and every entry is zero.
Solution: It is a row matrix of order 1×3 and also a zero matrix.
Quick recap
A column matrix has one column; a row matrix has one row.
A square matrix has equal numbers of rows and columns; its order is that common number.
A diagonal matrix has zero entries off its main diagonal.
A scalar matrix is diagonal with equal diagonal entries.
An identity matrix has diagonal entries 1 and all other entries 0.
A zero matrix has every entry equal to 0 and is denoted by O.
Entrywise equality rule — If two matrices are equal, equating their corresponding entries gives equations that can be solved for unknowns.
Practice
Find a,b,c,d if [2a+b5c−da−2b4c+3d]=[411−324].
Hint: Equate the four corresponding entries, then solve the two pairs of equations.
Key step: Solve 2a+b=4, a−2b=−3 and 5c−d=11, 4c+3d=24.
Solution: The first pair gives a=1, b=2; the second gives c=3, d=4.
Addition of Matrices
Matrix addition rule
For matrices A=[aij] and B=[bij] of the same order m×n, their sum is C=[cij] of order m×n, where cij=aij+bij for every valid i and j.
Practice
Can a 2×2 matrix be added to a 2×3 matrix?
Hint: Compare the orders before attempting to add entries.
Key step: Addition requires both matrices to have identical orders.
Solution: No. Their orders differ, so the sum is not defined.
⚠ Common mistake
Do not compare or add entries in different positions: equality and addition both use corresponding positions, and addition additionally requires equal orders.
Quick recap
Equal matrices have the same order and equal entries in every corresponding position.
Unknowns in equal matrices are found by equating matching entries and solving the resulting equations.
Matrix addition is defined only for matrices of the same order.
Add matrices entry by entry using cij=aij+bij.
The sum of two m×n matrices is also an m×n matrix.
Addition is a binary operation on matrices of a fixed order.
Answer: The doubled production matrix is 160150180120130170.
Negative of a Matrix
Negative matrix
−A=(−1)A=[−aij]m×n
The negative matrix is the additive inverse of the original matrix.
Find the negative of a matrix
Change the sign of every entry.
Keep all entries in their original positions.
Worked example
Find the negative of [3−51x].
Multiply each entry by −1.
−[3−51x]=(−1)[3−51x]
Reverse the sign of each entry.
[−35−1−x]
Answer:−A=[−35−1−x].
Difference of Matrices
Matrix difference
A−B=[aij−bij]m×n=A+(−1)B
Subtract entries in matching positions.
Evaluate a matrix difference
Check that the matrices have the same order.
If a scalar multiple appears, calculate it first.
Subtract corresponding entries, or add the negative matrix.
Worked example
If A=[122331] and B=[3−1−1032], find 2A−B.
Double A.
2A=[244662]
Subtract B entry by entry.
2A−B=[2−34−(−1)4−(−1)6−06−32−2]
Simplify each entry.
2A−B=[−155630]
Answer:2A−B=[−155630].
Properties of Matrix Addition
Laws of matrix addition
For matrices of the same order, addition is commutative and associative; the zero matrix is the additive identity, and −A is the additive inverse of A.
Addition properties
A+B=B+A,(A+B)+C=A+(B+C),A+O=O+A=A,A+(−A)=O
All matrices in each equality must have the same order.
Check matrix addition properties
Confirm that all matrices have the same order.
Add entries position by position.
Compare the resulting matrices to verify the stated law.
Worked example
Verify the commutative law for A=[1324] and B=[5768].
Add corresponding entries in the order A+B.
[1324]+[5768]=[610812]
Reverse the order and add corresponding entries.
[5768]+[1324]=[610812]
The sums match, verifying commutativity for these matrices.
A+B=B+A
Answer:A+B=B+A=[610812].
⚠ Common mistake
Do not subtract matrices of different orders; subtraction is defined only when their orders match.
Practice
Find −3A if A=[20−14].
Hint: Multiply every entry by −3.
Key step:−3A=[−3(2)−3(0)−3(−1)−3(4)].
Solution:−3A=[−603−12].
Practice
Find A−B for A=[4−213] and B=[1−250].
Hint: Subtract entries in matching positions.
Key step:A−B=[4−1−2−(−2)1−53−0].
Solution:A−B=[30−43].
Practice
Find A+(−A) for A=[21−30].
Hint: First change the sign of every entry in A.
Key step:−A=[−2−130].
Solution:A+(−A)=[0000].
Quick recap
A scalar multiple is formed by multiplying every matrix entry by the scalar; the matrix order stays the same.
The negative of a matrix is −A=(−1)A, so every entry changes sign.
Matrix subtraction requires equal orders and is performed entry by entry: A−B=A+(−B).
Matrix addition is commutative and associative for matrices of the same order.
The zero matrix is the additive identity, and −A is the additive inverse of A.
For matrices A and B of the same order and scalars k and l, scalar multiplication distributes over matrix addition, and scalar addition distributes over a matrix.
k(A+B)=kA+kB,(k+l)A=kA+lA
Scalar multiplication properties
k(A+B)=kA+kB,(k+l)A=kA+lA
Use these rules to expand or simplify scalar multiples of matrices.
Solving a matrix equation for an unknown matrix
Use matrix addition and subtraction to isolate the term containing the unknown matrix.
Divide by its scalar coefficient by multiplying by the reciprocal.
X=c1(known matrix)
Calculate the resulting matrix entry by entry.
Worked example
Find X if 2A+3X=5B, where A=8430−26 and B=24−5−221.
Given 2A+3X=5B, isolate X by subtracting 2A and dividing by 3.
X=31(5B−2A)
For A=8430−26 and B=24−5−221, calculate the scalar multiples.
5B=1020−25−10105,2A=16860−412
Subtract corresponding entries, then multiply by 31.
5B−2A=−612−31−1014−7
Answer:X=−24−331−310314−37
Practice
Find X and Y if X+Y=058928 and X−Y=038−168.
Hint: Add the equations to find 2X; subtract the second from the first to find 2Y.
Hint: Expand the scalar multiple, then equate corresponding entries.
Key step: The variable entries give 2x+3=7 and 2y−4=14.
Solution: Comparing entries gives 2x+3=7 and 2y−4=14, so x=2 and y=9.
Practice
September sales are A=[100005000020000300003000010000] and October sales are B=[5000200001000010000600010000]. Find combined sales, the decrease from September to October, and 2% of October sales.
Hint: Use A+B for combined sales, A−B for the decrease, and 0.02B for profit.
Key step: Apply each operation entry by entry to the two sales matrices.
Solution: Combined sales: A+B=[150007000030000400003600020000]. Decrease: A−B=[5000300001000020000240000]. October profit: 0.02B=[100400200200120200] (in Rs.).
⚠ Common mistake
Do not confuse the change in sales, A−B, with the profit calculation, 0.02B. The latter is 2% of October sales only.
Quick recap
A scalar multiple kA is formed by multiplying every entry of A by k; the matrix order stays unchanged.
For same-order matrices, k(A+B)=kA+kB and (k+l)A=kA+lA.
To solve for an unknown matrix, isolate it and divide by its scalar coefficient.
Solve simultaneous matrix equations by adding or subtracting them, then divide by 2 when finding X or Y.
Equate corresponding entries to solve scalar variables in a matrix equation.
For sales matrices, add to combine sales, subtract to find a decrease, and multiply by the rate to calculate profit.
If A is of order m×n and B is of order n×p, then AB is of order m×p. Each entry is the dot product of a row of A and a column of B.
cik=j=1∑naijbjk
Key points
Dimension check: For (m×n)(n×p), the inner dimensions match, so the product exists.
Product order: The result has the outer dimensions, m×p.
Entry rule: Multiply corresponding entries of one row and one column, then add the products.
Entry of a matrix product
cik=ai1b1k+ai2b2k+⋯+ainbnk=j=1∑naijbjk
Use the row of the first matrix and the column of the second matrix to calculate each entry.
Example in context
Requirements: Meera and Nadeem need [28510] items, with columns representing pens and storybooks.
Prices: The two shops' prices are [550440] rupees per item.
Total costs: Multiplication gives [260540208432] rupees; rows represent customers and columns represent shops.
Multiply two matrices
Check that the number of columns in the first matrix equals the number of rows in the second.
Write the product order using the rows of the first matrix and columns of the second.
For each result entry, multiply a row by a column and add the products.
cik=ai1b1k+ai2b2k+⋯+ainbnk
Worked example
Find CD for C=[10−1324] and D=2−1571−4.
The product is defined and has order 2×2.
[10−1324]2−1571−4
Calculate the entries in the first row using the two columns.
[1(2)+(−1)(−1)+2(5)1(7)+(−1)(1)+2(−4)]=[13−2]
Calculate the entries in the second row in the same way.
[0(2)+3(−1)+4(5)0(7)+3(1)+4(−4)]=[17−13]
Answer:CD=[1317−2−13].
Further product results
Example: For A=[6293] and B=[276908], AB=[7525117397224].
Rectangular matrices: If A is 2×3 and B is 3×2, then AB is 2×2 while BA is 3×3.
Order of factors and non-commutativity
When both product orders exist
For A of order m×n and B of order k×l, both AB and BA are defined exactly when n=k and l=m. This condition holds for square matrices of the same order.
Matrix multiplication is not commutative
Even when both products exist, in general AB=BA. The products may differ in order or in their entries; however, some pairs do commute.
Examples and special case
Different product orders: A 2×3 matrix times a 3×2 matrix gives a 2×2 matrix; reversing the factors gives a 3×3 matrix.
Same order, unequal products:[100−1][0110]=[0−110], but reversing the factors gives [01−10].
Commuting exception: Diagonal matrices of the same order commute; for example, [1002] and [3004] have product [3008] in either order.
⚠ Common mistake
Do not assume AB=BA or multiply entries in matching positions. Check dimensions first, then use row-by-column products.
Zero product of non-zero matrices
Zero-product property for real numbers
For real numbers a and b, if ab=0, then a=0 or b=0.
Zero-product property does not hold for matrices
Unlike real numbers, two non-zero matrices can have a zero matrix as their product.
[00−12][3050]=[0000]
Practice
For A=[1324] and B=[210−1], find AB and BA.
Hint: Calculate each product separately using row-by-column multiplication.
Key step: The (i,j) entry is row i of the first matrix dotted with column j of the second.
Solution:AB=[410−2−4] and BA=[2−24−2], so AB=BA.
Practice
If A is 2×3 and B is 3×4, determine the order of AB and whether BA is defined.
Hint: Compare the inner dimensions for each multiplication order.
Key step:AB matches inner dimensions 3 and 3; BA would require 4=2.
Solution:AB is defined and has order 2×4. BA is not defined.
Practice
Give two non-zero matrices whose product is the zero matrix.
Hint: Choose matrices so every row-by-column product sum is zero.
Key step: Verify each entry of the product using the row-by-column rule.
Solution: Take A=[1000] and B=[0100]. Both are non-zero, but AB=[0000].
Quick recap
The product AB exists when the columns of A equal the rows of B; its order uses the outer dimensions.
Each product entry is found by multiplying a row by a column and summing.
Matrix multiplication is generally not commutative, although some pairs, such as same-order diagonal matrices, commute.
For real numbers, ab=0 implies a=0 or b=0.
Two non-zero matrices can have a zero matrix as their product.
Inverse matrix — For a square matrix A, a matrix B of the same order is its inverse if AB=BA=I; then A is invertible and B=A−1.
Square matrices only: Under this two-sided definition, a rectangular matrix has no inverse; both products must be defined and equal the identity matrix.
Two-way relation: If B=A−1, then A=B−1.
Definition of the inverse
AB=BA=I⟹B=A−1
Use this condition to verify that two square matrices are inverses.
Worked example
Show that B is the inverse of A.
Verify that the given matrices are inverses by checking both products.
A=[2132],B=[2−1−32]
Multiply in the order AB.
AB=[2132][2−1−32]=[1001]
Multiply in the reverse order; it also gives the identity.
BA=[2−1−32][2132]=[1001]
Answer:AB=BA=I, so B=A−1 and A=B−1.
Uniqueness of the Inverse
Uniqueness of inverse
If a square matrix has an inverse, that inverse is unique. If B and C are both inverses of A, then AB=BA=I and AC=CA=I, so B=BI=B(AC)=(BA)C=IC=C.
Worked example
Prove that the inverse of a square matrix, if it exists, is unique.
Suppose B and C are inverses of A; write their inverse relations.
AB=BA=I,AC=CA=I
Insert I=AC after B, then use BA=I.
B=BI=B(AC)=(BA)C=IC=C
Answer: Any two inverses B and C of A satisfy B=C; hence the inverse is unique.
Inverse of a Product
Inverse of a product
For invertible matrices A and B of the same order, the inverse of their product is the product of their inverses in reverse order.
(AB)−1=B−1A−1
Worked example
Verify the product-inverse rule for invertible matrices A and B.
Check the proposed inverse by multiplying it by AB.
(AB)(B−1A−1)=A(BB−1)A−1=AIA−1=I
Check the reverse product as well.
(B−1A−1)(AB)=B−1(A−1A)B=B−1IB=I
Answer: Both products equal I, so (AB)−1=B−1A−1.
⚠ Common mistake
Common mistake: Writing (AB)−1=A−1B−1. The order must reverse: (AB)−1=B−1A−1.
Powers of a Trigonometric Matrix
Power identity
For the matrix A below and every natural number n, its nth power has the same form, with the angle multiplied by n.