Class 12 Maths, Worked in Full Past papersGet updates
Chapter 3 · Matrices

Example 19: Election campaign costs

ExamplesMatrix multiplication in a word problem · Section 3.4.5
The question

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

A=[4010050] TelephoneHousecallLetterA = \begin{bmatrix} 40 \\ 100 \\ 50 \end{bmatrix}\ \begin{matrix} \text{Telephone} \\ \text{Housecall} \\ \text{Letter} \end{matrix}

The number of contacts of each type made in two cities X and Y is given by (columns Telephone, Housecall, Letter; rows X, Y)

B=[100050050003000100010,000]B = \begin{bmatrix} 1000 & 500 & 5000 \\ 3000 & 1000 & 10{,}000 \end{bmatrix}

Find the total amount spent by the group in the two cities X and Y.

Exam answer

BB is 2×32\times3 and AA is 3×13\times1⁠, so BABA is defined and is 2×12\times1⁠. The amount spent (in paise) is BABA⁠.

City X:1000⋅40+500⋅100+5000⋅50=40,000+50,000+250,000=340,000\begin{aligned} &\text{City X:} \\ &1000{\cdot}40 + 500{\cdot}100 + 5000{\cdot}50 \\ &= 40{,}000 + 50{,}000 + 250{,}000 \\ &= 340{,}000 \end{aligned} City Y:3000⋅40+1000⋅100+10,000⋅50=120,000+100,000+500,000=720,000\begin{aligned} &\text{City Y:} \\ &3000{\cdot}40 + 1000{\cdot}100 + 10{,}000{\cdot}50 \\ &= 120{,}000 + 100{,}000 + 500{,}000 \\ &= 720{,}000 \end{aligned} ∴ BA=[340,000720,000]\therefore\ BA = \begin{bmatrix} 340{,}000 \\ 720{,}000 \end{bmatrix}

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 one idea this problem is built on

The cost in a city is (number of contacts of each type) ×\times (cost of that type), added over the three types. That is exactly a row times a column: a row of BB (one city's contacts, by type) times the column AA (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 BABA⁠.

Given, to find, and the plan
Given
AA⁠: cost per contact in paise, order 3×13\times1 (rows: telephone, house call, letter). BB⁠: numbers of contacts, order 2×32\times3 (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

1A table is a matrix with labels

Rows and columns of a matrix carry meanings. Here each row of BB is a city and each column a type of contact. Lesson: what a matrix is

2When a product is defined

(m×n)(n×p)(m\times n)(n\times p) is defined and is m×pm\times p⁠. Basics: rows, columns and the address

3Row times column

Pair up the entries in order, multiply, add. Basics: pair up, multiply, add

4Units

(contacts) ×\times (paise per contact) = paise, and 100 paise = ₹1.

Solution

  1. Read the two matrices with their labels

    TelephoneHouse callLetter
    X: row 1 of BB10005005000
    Y: row 2 of BB3000100010,000
    Paise each: AA4010050

    BB is 2×32\times3 (2 cities, 3 types) and AA is 3×13\times1 (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 BB and down the column AA⁠. That shared order is what makes a row-times-column product meaningful.
  2. Choose the product: BABA⁠, not ABAB

    ABAB would be (3×1)(2×3)(3\times\mathbf{1})(\mathbf{2}\times3)⁠: inner sizes 1≠21\ne2⁠, so ABAB is not defined.

    BABA is (2×3)(3×1)(2\times\mathbf{3})(\mathbf{3}\times1)⁠: inner sizes 3=33=3⁠, so BABA is defined and is 2×12\times1⁠, one total for each city.

    The arithmetic and the meaning agree. In BABA⁠, the summed index is the columns of BB and the rows of AA⁠, 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 BB (cities) and the single column of AA (cost), so the answer is a column of costs, one per city.
    Order of a product, Section 3.4.5. Lesson: matrix multiplication
  3. Compute the two entries of BABA

    Row X of BB times AA⁠, then row Y of BB times AA⁠. Write BA=[ti1]BA=[t_{i1}]⁠:

    t11=1000⋅40+500⋅100+5000⋅50=40,000+50,000+250,000=340,000t21=3000⋅40+1000⋅100+10,000⋅50=120,000+100,000+500,000=720,000\begin{aligned} t_{11} &= 1000\cdot 40 + 500\cdot 100 + 5000\cdot 50\\ &= 40{,}000 + 50{,}000 + 250{,}000\\ &= 340{,}000\\ t_{21} &= 3000\cdot 40 + 1000\cdot 100\\ &+ 10{,}000\cdot 50\\ &= 120{,}000 + 100{,}000 + 500{,}000\\ &= 720{,}000 \end{aligned} BA=[340,000720,000] →X→YBA = \begin{bmatrix} 340{,}000 \\ 720{,}000 \end{bmatrix}\ \begin{matrix} \to X \\ \to Y \end{matrix}
    1000 500 5000 3000 1000 10,000 40 100 50 340,000 720,000 B: contacts (2 × 3) A: paise per contact BA (2 × 1), paise city X city Y City X: 1000 × 40 + 500 × 100 + 5000 × 50 = 40,000 + 50,000 + 250,000 = 340,000 paise
    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) ×\times (paise per contact of that type), so each term is in paise: for example 5000⋅50=250,0005000\cdot50=250{,}000 paise is what the letters in city X cost. Adding the three terms gives the city's total.
    ti1=bi1a11+bi2a21+bi3a31t_{i1}=b_{i1}a_{11}+b_{i2}a_{21}+b_{i3}a_{31}⁠. Basics: pair up, multiply, add
  4. Convert paise to rupees

    Since 100 paise = ₹1, divide by 100:

    340,000÷100=3400720,000÷100=7200\begin{aligned} 340{,}000 \div 100 &= 3400\\ 720{,}000 \div 100 &= 7200 \end{aligned}

    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.
  5. 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 3400+7200=10,6003400+7200=10{,}600 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.
Result BA=[340,000720,000] paiseBA = \begin{bmatrix} 340{,}000 \\ 720{,}000 \end{bmatrix}\ \text{paise}

So the group spent ₹3400 in city X and ₹7200 in city Y, as in the textbook.

Check it with numbers

Work by type instead of by city. Total telephone contacts: 1000+3000=40001000+3000=4000⁠, costing 4000⋅40=160,0004000\cdot40=160{,}000 paise. House calls: 500+1000=1500500+1000=1500⁠, costing 150,000150{,}000 paise. Letters: 5000+10,000=15,0005000+10{,}000=15{,}000⁠, costing 750,000750{,}000 paise. Altogether that is 1,060,000 paise, which equals 340,000+720,000340{,}000+720{,}000⁠, that is ₹10,600.

Common mistakes
  1. Writing ABAB⁠. It is not defined here; the order of the factors follows the meaning, not the alphabet.
  2. Forgetting the units. The product is in paise, because the costs are in paise. 340,000 is not ₹340,000.
  3. Mixing up the type order. The columns of BB and the rows of AA must list the types in the same order, or the wrong costs get multiplied.
What to take away
  1. 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.
  2. The labels left over (cities, and cost) become the rows and columns of the answer.
  3. Always carry the units through: quantity ×\times price per unit = money.

Every fact used, and where it comes from

FactUsed inSource
Matrices as labelled tablesStep 1Section 3.2 (Lesson: what a matrix is)
Product defined iff inner sizes agree; order m×pm\times pStep 2Section 3.4.5 (Lesson: matrix multiplication)
Row times columnStep 3Section 3.4.5, definition of the product
100 paise = ₹1Step 4Indian currency
Found an error, or want more?

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 →