Topics in this sectionIntroduction to Matrices1 topic
- Matrix Operations (Review)
Matrix Operations
When we work with matrices, we often need to combine them or change them in specific ways. This note reviews the four main operations you can perform on matrices: scalar multiplication, matrix addition, matrix subtraction, and matrix multiplication. Understanding these operations is essential for solving real problems in science, engineering, and economics.
Scalar multiplication involves multiplying every element in a matrix by a single number called a scalar. This is useful when we want to enlarge or shrink a matrix, or when we need to scale quantities in a practical situation.
To multiply a matrix by a scalar, multiply each entry inside the matrix by that number.
Example
If you have matrix A=[2143] and you need to find 3A, simply multiply each element by 3:
3A=3×[2143]=[3×23×13×43×3]=[63129]
Try This
Suppose a local market in Juba records the number of sorghum bags sold by three vendors over two days in a matrix: 10820151218. If a new vendor joins and sells twice as many bags at each location, write this as 2×the matrix. Calculate the result and explain what it represents.
Matrix addition and subtraction allow us to combine two matrices of the same size. This is helpful when we need to add together data from different sources or find differences between sets of information.
You can only add or subtract matrices that have the same order — the same number of rows and columns. To add or subtract, perform the operation element by element.
Example
At a boma health clinic, the number of patients treated in the morning and afternoon over three days is recorded in two matrices:
Morning: M=1215981011, Afternoon: A=653472
To find the total patients each day, add the matrices:
M+A=12+615+59+38+410+711+2=182012121713
For subtraction, if you wanted to find the difference between morning and afternoon numbers, you would compute M−A.
Key Point
Always check that the matrices have the same order before attempting to add or subtract them. If the orders do not match, the operation is not defined.
Matrix multiplication is more complex than addition or subtraction. When we multiply two matrices, each element in the resulting matrix is found by taking the dot product of a row from the first matrix with a column from the second matrix.
For matrix multiplication to work, the number of columns in the first matrix must equal the number of rows in the second matrix. If matrix A has order m×n and matrix B has order n×p, then the product AB will have order m×p.
Example
A farmer in Wau has two types of crops and sells them in three markets. The quantity of each crop sold in each market is given by matrix Q:
Q=[10152025]
The price per unit (in South Sudanese pounds) for each crop is given by matrix P:
P=[500300]
To find the total revenue from each market, compute Q×P:
QP=[10×500+20×30015×500+25×300]=[5000+60007500+7500]=[1100015000]
The first market earns 11,000 SSP and the second market earns 15,000 SSP.
Dimension Check
Before multiplying, always verify that the inner dimensions match. If matrix A is 2×3 and matrix B is 2×4, you cannot multiply AB because 3=2. However, you could multiply BA because 4=2.
Often problems require you to perform more than one operation. When this happens, follow the correct order of operations: first handle any scalar multiplication, then addition or subtraction, and finally multiplication.
Example
Given A=[1324] and B=[5768], find 2A+B.
First, compute 2A:
2A=[2648]
Then add B:
2A+B=[2+56+74+68+8]=[7131016]
Matrix operations are used in many practical situations across South Sudan. For example, when a trading company in Malakal manages inventory across multiple warehouses, they use matrix addition to combine stock levels from different locations. A transport business in Wau might use matrix multiplication to calculate total delivery costs based on the number of goods shipped and the price per unit to different destinations. These operations help businesses make informed decisions about resource allocation and pricing.
Question
Three vendors in a Juba market sold sorghum bags over two days, recorded in matrix S=10820151218. If a new vendor sells twice as many bags at each location, what is 2S?
Sign in to submit your answer and have it count toward your mastery.
Sign in to practiceTutor
Stuck? Ask me anything about this topic.
Sign in to ask the Sonza AI Tutor about this question.
Sign in to askDiscussions
No questions yet