Real-World Application: Election Campaign Costs Using Matrix Multiplication
On this page· 13 sections
Source & scope. Class 12 Mathematics, Chapter 3 Matrices, Section 3.4 Multiplication of Matrices (NCERT Example 19), a real-world application of matrix multiplication. Builds on: Multiplication of Matrices: Definition and the Rule for When AB Is Defined, Matrix Polynomial Identities: Showing a Matri...
Source & scope. Class 12 Mathematics, Chapter 3 Matrices, Section 3.4 Multiplication of Matrices (NCERT Example 19), a real-world application of matrix multiplication. Builds on: Multiplication of Matrices: Definition and the Rule for When AB Is Defined, Matrix Polynomial Identities: Showing a Matrix Satisfies a Given Equation. See also: Real-World Application: Combined Sales and Profit Using Matrix Operations, which uses the same cost-vector technique.
Matrix multiplication can compute a total cost in one step by multiplying a "quantities" matrix by a "cost-per-unit" column matrix, with each row of the product giving the total cost for one group. NCERT illustrates this with an election campaign: a political group contacts voters by telephone, house call, and letter, and matrix multiplication combines the number of each type of contact with the cost per contact to give the total amount spent in each of two cities.
At a glance
- A column matrix of costs per unit multiplied by a matrix of quantities gives total cost, via ordinary matrix multiplication.
- NCERT's example: contact costs are ₹0.40 (telephone), ₹1.00 (house call), ₹0.50 (letter), stored as a 3×1 column matrix A (in paise: 40, 100, 50).
- Contact counts in cities X and Y are stored as a 2×3 matrix B, one row per city.
- The product BA (2×3 times 3×1 = 2×1) gives the total cost per city directly.
- Verified result: City X spent ₹3,400 and City Y spent ₹7,200.
Learning objectives
- Set up a real-world costing problem as a matrix multiplication of a quantities matrix and a cost column matrix.
- Confirm that the matrix orders (2×3 and 3×1) are compatible for multiplication, giving a 2×1 result.
- Carry out the full numeric computation of BA, row by row.
- Interpret each entry of the resulting matrix as a total cost for one city.
Prerequisite knowledge
The reader should already know the definition and order-compatibility rule for matrix multiplication (an m×n matrix times an n×p matrix gives an m×p matrix) and how to multiply a matrix by a column matrix (see the linked sibling article on the definition of matrix multiplication).
Core explanation
Setting up the problem. NCERT's Example 19 describes a political group that promotes its candidate in a legislative assembly election using three contact methods: telephone, house calls, and letters. The cost per contact, in paise, is stored as a 3×1 column matrix:
The number of contacts of each type made in two cities, X and Y, is stored as a 2×3 matrix B, with one row per city and one column per contact type (in the same telephone/housecall/letter order as A):
Why BA, and why it is defined. To get a total cost per city, each city's contact counts must be combined with the corresponding cost per contact — exactly what matrix multiplication does when a row of counts is multiplied against a column of costs. B is 2×3 and A is 3×1, so the number of columns of B (3) matches the number of rows of A (3): BA is defined, and its order is 2×1 — one total-cost entry per city. This is precisely the real-world payoff of the matrix multiplication rule: it mirrors how a total is computed in ordinary life (quantity × cost per unit, summed over every contact type), just packaged as one matrix operation instead of three separate sums written out by hand.
Reading the answer. Once computed (see the worked example below), the 2×1 result gives a single number for each city — the total amount spent, directly in the same units (paise) as the original cost matrix A, which converts easily to rupees.
Key terms
- Cost column matrix — a column matrix listing the cost per unit of each category, here per contact type.
- Quantities matrix — a matrix listing how many units of each category were used, here contacts made per city.
- Matrix product BA — the single matrix multiplication that combines quantities and per-unit costs into a total.
- Order compatibility — the requirement that the number of columns of the first matrix equal the number of rows of the second, here 3 = 3.
Diagram / figure guidance
Draw matrix B (2 rows labelled X and Y, 3 columns labelled Telephone/Housecall/Letter) beside column matrix A (3 rows, same labels, each holding a cost). Draw an arrow showing row X of B being multiplied term-by-term against the single column of A and the three products summed into one cell; repeat visually for row Y, landing in a 2×1 result matrix labelled "Total cost: X, Y."
Worked example
A political group's cost per contact (in paise) is A = [[40], [100], [50]] for telephone, house call, and letter respectively. The number of contacts made in cities X and Y is B = [[1000, 500, 5000], [3000, 1000, 10000]]. Find the total amount spent by the group in each city.
Step 1 — confirm BA is defined. B is 2×3 and A is 3×1. The number of columns of B (3) equals the number of rows of A (3), so the product BA is defined and will have order 2×1.
Step 2 — compute the total for City X (row 1 of B against the column of A).
Step 3 — compute the total for City Y (row 2 of B against the column of A).
Step 4 — convert paise to rupees (100 paise = ₹1). City X: 340,000 paise = ₹3,400. City Y: 720,000 paise = ₹7,200.
Conclusion.
The group spent ₹3,400 in City X and ₹7,200 in City Y — both totals obtained directly from the single matrix product BA, rather than six separate multiplications written out individually.
Common misconceptions
- "Any order of multiplication works as long as the right numbers are involved." It does not — here only BA is defined (2×3 times 3×1); AB would require A's columns (1) to match B's rows (2), which fails, so AB is not even defined for these matrices.
- "The answer is already in rupees once you finish the multiplication." The raw product BA gives totals in paise (the unit used in matrix A); converting to rupees is a separate final step (divide by 100), easy to forget under exam time pressure.
- "Each row of B must be multiplied against a different column of A." A is a single column, so every row of B is multiplied against that same one column — the "columns match rows" rule only requires 3 = 3 once, not a different column per row.
- "This is just addition in disguise, so matrices add no real value here." Matrix multiplication is what correctly pairs each contact type's count with its own cost and sums the three products in one defined operation — writing this as three separate ordinary sums (one per city) is equivalent but loses the compact, scalable structure a matrix gives when there are many categories or many cities.
Exam application (JEE)
JEE and board-style problems frequently dress up a "total cost," "total profit," or "total marks" computation as a matrix multiplication between a quantities matrix and a per-unit matrix, testing whether a student can (a) identify which product (BA vs AB) is actually defined given the stated orders, and (b) carry out the row-by-column multiplication correctly without arithmetic slips across several large numbers. The unit-conversion step (paise to rupees here) is a common place marks are lost even when the matrix multiplication itself is correct, so always re-read what units the final answer is asked in.
Frequently asked questions
- How does matrix multiplication model a real-world cost calculation? By storing per-unit costs in a column matrix and quantities in a matrix with matching columns, so that their product's entries are exactly the total costs, computed via ordinary matrix multiplication.
- Why is BA defined here but not AB? B is 2×3 and A is 3×1 — B's 3 columns match A's 3 rows, so BA (giving a 2×1 result) is defined; AB would need A's 1 column to match B's 2 rows, which it does not, so AB is undefined.
- What is the total cost for City X in NCERT's example? ₹3,400 (340,000 paise), from 1000(40) + 500(100) + 5000(50).
- What is the total cost for City Y in NCERT's example? ₹7,200 (720,000 paise), from 3000(40) + 1000(100) + 10,000(50).
- Does the order of rows in B matter for the final answer? No — each row of B is independently multiplied against the same column A; swapping which row is written first only relabels which city each total belongs to, it doesn't change either total.
Practice questions (original practice questions)
- If cost matrix A = [[20], [50]] (paise, for two contact types) and quantities matrix B = [[10, 4]] for one city, what is BA?
- (a) [[200]]
- (b) [[400]]
- (c) [[20]]
- (d) [[70]]
- Answer: (b) — BA = 10(20) + 4(50) = 200 + 200 = 400.
- For matrices B (2×3) and A (3×1) as in the worked example, what is the order of the product BA?
- (a) 3×1
- (b) 2×1
- (c) 2×3
- (d) 3×3
- Answer: (b) — An m×n matrix times an n×p matrix gives an m×p matrix; here m=2, n=3, p=1, so the order is 2×1.
- A city has 2000 telephone contacts, 800 house calls, and 6000 letters, with the same per-contact costs as NCERT's A = [[40],[100],[50]] paise. What is the total cost in rupees?
- (a) ₹3,600
- (b) ₹4,600
- (c) ₹5,600
- (d) ₹4,200
- Answer: (b) — 2000(40) + 800(100) + 6000(50) = 80,000 + 80,000 + 300,000 = 460,000 paise = ₹4,600.
- If B is a 3×2 quantities matrix and A is the 3×1 cost column matrix, is the product BA defined?
- (a) Yes, giving a 3×1 result
- (b) Yes, giving a 2×1 result
- (c) No, because B's columns (2) do not match A's rows (3)
- (d) No, because A is not a square matrix
- Answer: (c) — For BA to be defined, the number of columns of B must equal the number of rows of A; here 2 ≠ 3, so BA is undefined.
- In NCERT's example, which single matrix stores the cost per contact for all three contact types at once?
- (a) Matrix B
- (b) Matrix A
- (c) The product BA
- (d) Neither A nor B
- Answer: (b) — Matrix A is the 3×1 column matrix of cost per contact (telephone, house call, letter).
Quick revision
- Store per-unit cost as a column matrix, quantities as a matrix with matching columns.
- The product (quantities) × (cost column) gives total cost directly, provided the inner dimensions match.
- NCERT's A = [[40],[100],[50]] (paise) and B = [[1000,500,5000],[3000,1000,10000]] give .
- Converting to rupees: City X = ₹3,400, City Y = ₹7,200.
- Always check which product (BA or AB) is actually defined before multiplying.
Related articles
- Builds on: Multiplication of Matrices: Definition and the Rule for When AB Is Defined
- Builds on: Matrix Polynomial Identities: Showing a Matrix Satisfies a Given Equation
- See also: Real-World Application: Combined Sales and Profit Using Matrix Operations, Applications of Matrices: Why Matrices Matter in Mathematics and Beyond, Why Matrix Multiplication Is Not Commutative (AB ≠ BA)
- Related topics: Addition of Matrices: Definition, Rule and Examples, Column Matrix: Definition and Examples, Definition of a Matrix: Rows, Columns and Entries, Diagonal Matrix: Definition and Examples, Difference of Matrices (A − B): Definition and a Worked Example, Equality of Matrices: Definition and Solving for Unknowns