Example 19: Election campaign costs
In a legislative assembly election, a political group hired a public relations firm to promote its candidate in three ways: telephone, house calls, and letters. The cost per contact (in paise) is given in matrix A as
The number of contacts of each type made in two cities X and Y is given by (columns Telephone, Housecall, Letter; rows X, Y)
Find the total amount spent by the group in the two cities X and Y.
is and is , so is defined and is . The amount spent (in paise) is .
Since 100 paise ₹1, these are ₹3400 and ₹7200.
Amount spent: ₹3400 in city X and ₹7200 in city Y.
Want the reason behind every step, the basics and the checks?
The cost in a city is (number of contacts of each type) (cost of that type), added over the three types. That is exactly a row times a column: a row of (one city's contacts, by type) times the column (cost per contact, by type). The shared label, the type of contact, must be the index that gets summed, so it has to be the columns of the first factor and the rows of the second. That forces the product .
- Given
- : cost per contact in paise, order (rows: telephone, house call, letter). : numbers of contacts, order (rows: cities X, Y; columns: the same three types in the same order).
- To find
- The total amount spent in city X and in city Y.
- Plan
- Decide which product matches the meaning (and is defined), compute its two entries, then convert paise to rupees and state the answer in words.
Basics you need
Rows and columns of a matrix carry meanings. Here each row of is a city and each column a type of contact. Lesson: what a matrix is
is defined and is . Basics: rows, columns and the address
Pair up the entries in order, multiply, add. Basics: pair up, multiply, add
(contacts) (paise per contact) = paise, and 100 paise = ₹1.
Solution
Read the two matrices with their labels
Telephone House call Letter X: row 1 of 1000 500 5000 Y: row 2 of 3000 1000 10,000 Paise each: 40 100 50 is (2 cities, 3 types) and is (3 types, 1 cost each).
Lining up the labels first shows that the types appear in the same order, telephone, house call, letter, along the columns of and down the column . That shared order is what makes a row-times-column product meaningful.Choose the product: , not
would be : inner sizes , so is not defined.
is : inner sizes , so is defined and is , one total for each city.
The arithmetic and the meaning agree. In , the summed index is the columns of and the rows of , which is the type of contact: we add up over types, exactly as the cost of a city requires. The leftover labels are the rows of (cities) and the single column of (cost), so the answer is a column of costs, one per city.Order of a product, Section 3.4.5. Lesson: matrix multiplicationCompute the two entries of
Row X of times , then row Y of times . Write :
City X's row of contacts (gold) meets the column of costs (blue): matching types are multiplied and the three products added, giving 340,000 paise (green). City Y's row gives 720,000 paise the same way. Each term is (contacts of one type) (paise per contact of that type), so each term is in paise: for example paise is what the letters in city X cost. Adding the three terms gives the city's total.Convert paise to rupees
Since 100 paise = ₹1, divide by 100:
So 340,000 paise is ₹3400 and 720,000 paise is ₹7200.
The costs were given in paise, so the product is in paise. Rupees are the natural unit for amounts this large, and the textbook states the answer both ways.State the answer in words
The group spent 340,000 paise = ₹3400 in city X and 720,000 paise = ₹7200 in city Y. Together that is rupees.
"Total amount spent in the two cities X and Y" is answered city by city, as the textbook does; the combined figure is a useful extra.
So the group spent ₹3400 in city X and ₹7200 in city Y, as in the textbook.
Work by type instead of by city. Total telephone contacts: , costing paise. House calls: , costing paise. Letters: , costing paise. Altogether that is 1,060,000 paise, which equals , that is ₹10,600.
- Writing . It is not defined here; the order of the factors follows the meaning, not the alphabet.
- Forgetting the units. The product is in paise, because the costs are in paise. 340,000 is not ₹340,000.
- Mixing up the type order. The columns of and the rows of must list the types in the same order, or the wrong costs get multiplied.
- In a word problem, the label shared by two tables (here, type of contact) is the one that gets summed; it must be the columns of the first factor and the rows of the second.
- The labels left over (cities, and cost) become the rows and columns of the answer.
- Always carry the units through: quantity price per unit = money.
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| Matrices as labelled tables | Step 1 | Section 3.2 (Lesson: what a matrix is) |
| Product defined iff inner sizes agree; order | Step 2 | Section 3.4.5 (Lesson: matrix multiplication) |
| Row times column | Step 3 | Section 3.4.5, definition of the product |
| 100 paise = ₹1 | Step 4 | Indian currency |
Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →