Which method? Matrices

13 min · 5 drills

In the textbook: Ch. 7 Matrixalgebra

Each method of the matrix chapter has its own article. In the exam the task does not say which one it wants: there are two or three tables of numbers and a question, and you cannot tell the kind from the tables. The same pair of matrices turns up in a task on the product, in an equation with an unknown matrix and in a raw-material calculation. This page teaches you to tell the kind from what is asked and where the unknown stands.

Two tasks with the same input matrix of two industries, A=(0.20.10.30.4):

  • In the first both industries produce 100 units each, and the question is how much of it reaches the market.
  • In the second the market needs 70 and 30 units, and the question is how much to produce.

The numbers are the same in both, and in both you are tempted simply to multiply by A. In the first, multiplying is the whole solution: the industries use up 0.2⋅100+0.1⋅100=30 and 0.3⋅100+0.4⋅100=70 units themselves, and the market is left with 100−30=70 and 100−70=30. In the second the output itself is unknown, and it stands on both sides of x=Ax+b. A times the demand gives an extra 17 and 33 and an output of 87 and 63, which is too little: the extra needs inputs too. The right answer, 100 and 100 again, comes only from the inverse matrix, x=(I−A)−1b. One matrix; what is unknown, demand or output, picks the method.

The chapter has eight kinds of task. The mistakes happen in two places:

Where the mistake isWhat exactly
in the order (most kinds)which factor stands on the left, on which side the inverse goes, which matrix is inverted
in one step (the others)dividing by 60, the sign, the half

Below, each kind has a task text as it appears in the exam, the sign by which you recognise it, and the first step. The name of each kind leads to the article that works the method through on an exam task.

Check yourself, on a kind where the order decides everything. Given A=(3121) and B=(1201), and X⋅A=B. What is the entry x11?

The matrix product: one entry, statements, a quadratic form

Start with the types where nothing has to be inverted: the row-times-column sum decides everything.

One element of the product. Problem: 'Given A=(1420) and B=(3125). What is the entry c21 of the product C=A⋅B?'

  • Signal: one number of the product is asked for, with the numbers of its row and column.
  • First step: row 2 of A, (20), times column 1 of B, (32): 2⋅3+0⋅2=6. The other three cells are not needed.

Statements about products. Problem: “Welche der folgenden Aussagen sind richtig?” (which of the following statements are true?) and a list: (1) AB=BA, (2) (AB)T=BTAT, (3) …, for the same A and B.

  • Signal: a numbered list of statements about products, transposes, powers.
  • First step: mark each statement 'true' or 'false'. For (1) one cell is enough: (AB)11=1⋅3+4⋅2=11, while (BA)11=3⋅1+1⋅2=5, so (1) is false.

The matrix of a quadratic form. Problem: 'Which symmetric matrix A gives f(x,y)=3x2+8xy−y2=vTAv?'

  • Signal: a function made only of squares and pairwise products of the variables, and a symmetric matrix is asked for.
  • First step: the squares go on the diagonal, 3 and −1; the mixed coefficient is halved into both cells, 8/2=4: A=(344−1). Check with ones: 3+4+4−1=10=f(1,1).

Production: raw materials for an order and minutes times rates

In production tasks you calculate the same way, row times column, but the matrices carry labels: raw materials, parts, products, minutes. The labels decide what is multiplied by what.

Total and raw material requirements. Problem: 'The matrix P has the rows parts Z1,Z2 and the columns products E1,E2: P=(2014). The matrix Q has the rows raw materials R1,R2 and the columns parts: Q=(1231). How much raw material R1 is needed for 10 units of E1 and 20 units of E2?'

  • Signal: two stages, raw material per part and part per product, and an order.
  • First step: the order from the labels, parts in the middle: G=Q⋅P. Row R1: (1⋅2+2⋅11⋅0+2⋅4)=(48), for the order 4⋅10+8⋅20=200.

Minutes per unit and hourly rates. Problem: 'A product spends 12 minutes on machine 1 and 18 minutes on machine 2. An hour on machine 1 costs 50 GE (Geldeinheiten, money units), an hour on machine 2 costs 40 GE. What are the machine costs per piece?'

  • Signal: one table of minutes per piece, rates per hour.
  • First step: the row of the product times the rates, and once by 60: (12⋅50+18⋅40)/60=1320/60=22 GE.

The inverse: an entry of the inverse, an equation with X, the Leontief model

In all the types above the answer came from multiplying. When the product is given and one factor is unknown, multiplying will not find it. Then you need the inverse matrix, as in the second task at the top of the page, where the market needs 70 and 30 units.

Inverse and determinant. Problem: 'Which entry stands in row 1 and column 2 of the inverse of A=(5273)?'

  • Signal: a single 2×2 matrix, an entry of its inverse is needed, or a parameter for which there is none.
  • First step: the determinant, 5⋅3−2⋅7=1. Not zero, the inverse exists. Then position (1,2) takes −b divided by the determinant: −2.

Matrix equations. Problem: “Bestimmen Sie die Lösung X” (find the solution X) of the equation AX+B=3X with A=(5114).

  • Signal: a whole matrix X is unknown, it stands in an equation, sometimes twice.
  • First step: gather X on one side and factor it out on the side where it stands: AX−3X=−B, (A−3I)X=−B, A−3I=(2111). X is to the right of the bracket, so the inverse goes on the left.

The Leontief model. Problem: 'Two sectors, input matrix A=(0.20.10.30.4), final demand (8060). What is the gross output of sector 1?'

  • Signal: sectors use each other's products, the demand of the market is given, output is asked for.
  • First step: from the sheet's x=Ax+b get x=(I−A)−1b and calculate I−A=(0.8−0.1−0.30.6), determinant 0.48−0.03=0.45. It is I−A that is inverted, not A.

Looks the same, different method: X right or left of A

In an equation with X the first step depends on which side of the unknown matrix the known one stands. A pair of tasks shows it. Two problems with the same matrices A=(2111), B=(3142) and the same question, x11. Only the place of X differs:

A⋅X=BX⋅A=B
where A standsto the left of Xto the right of X
first stepmultiply both sides by A−1 from the leftmultiply both sides by A−1 from the right
solutionX=A−1BX=BA−1
x11row 1 of A−1 times column 1 of B: 1⋅3+(−1)⋅4=−1row 1 of B times column 1 of A−1: 3⋅1+1⋅(−1)=2

The inverse is the same in both, A−1=(1−1−12), but the answers differ, −1 and 2. The reason is that A−1 cancels A only when it stands right next to it: A−1AX=X, while in AXA−1 nothing cancels. The wrong side gives a believable number, so the side is decided before calculating, by looking at where X stands.

Practise recognising

The position of X was a clue you see at once. In the tasks below you find the clue yourself, and it is not always in the formula: sometimes it is a single word. Five problems from this chapter and the next one. Decide where to start; the explanation says which signal shows it.

Your turn1 of 5

Given A=(3112) and B=(2013). Find the matrix X with X⋅A=B+X. Where do you start?

Your turn2 of 5

The matrix P has parts as rows and devices as columns; the matrix Q has raw materials as rows and parts as columns. Order: 30 devices of the first kind and 20 of the second. How much raw material 2 is needed? Where do you start?

Your turn3 of 5

Per unit of output, sector 1 uses 0.1 of its own product and 0.2 of the product of sector 2; per unit of output, sector 2 uses 0.3 of the product of sector 1 and 0.1 of its own. For 50 and 80 units to reach the market, how much must sector 1 produce? Where do you start?

Your turn4 of 5

A repair shop and an energy department provide services to each other; this is a task from the chapter on systems of equations. Primary costs, that is, the department's own expenses: repair 600 GE, energy 300 GE. Repair worked 20 hours for the energy department and 80 hours for the market; the energy department gave 100 kWh to repair and 400 kWh to the market. At what prices do the departments charge each other? Where do you start?

Your turn5 of 5

Solve AX=2X+C for A=(5143) and C=(1231) and find the entry x12. Where do you start?

The decision table

After the exercises it helps to keep all the signs at hand. The table collects them, one row per type, with a link to the worked method:

How to recognise itMethod
One element of the product or A2Row times column: one element of the product
x in a matrix from a given element of the productRow times column backwards: the element is known, find x
“Welche Aussagen sind richtig?” (which statements are true?), transposes, AB and BAChecking statements (“Aussagen”) about products
A function of squares and xy, a symmetric matrix is asked forWriting down the matrix of a quadratic form
Raw materials → intermediate products → final products, an order, raw material pricesTotal requirements (“Gesamtbedarf”) and raw materials for an order
Minutes per piece by machine, rates per hourUnit cost from machine minutes and hourly rates (“Stundensätze”)
An entry of the inverse, “wann keine Inverse” (when there is no inverse)An entry of the inverse (“Inverse”) and when there is none
“Bestimmen Sie X” (find X), X in an equation, det⁡XSolving a matrix equation (“Matrixgleichung”)
Sectors, input matrix (“Inputmatrix”), final demandSector output from final demand (“Endnachfrage”, Leontief)

Now practise it

Practice exercises

Trainer · Matrices

Practise
Next: Functions of two variables
0/5

Was this article helpful?