You are on page 1of 7

Academic Skills Advice

Matrices Summary
To transpose a matrix write the rows as columns.

For example:

2 1 5 0 2 1 2
A = [1 5 0 9] AT = 1 5 1
2 1 4 2 5 0 4
0 9 2

To add or subtract matrices they must be the same dimensions. Just add or subtract the
corresponding numbers.

For example:

2 5 −1 3 −2 3 5 3 2
[4 1 2] + [7 4 2 ] = [11 5 4]
−3 3 4 10 5 −5 7 8 −1

To multiply matrices the number of columns in the 1st must equal the number of rows in
the 2nd because you multiply across the row and down the column.

For example:

3 2 (6 + 10) (−9 + 14) (21 + 16)


2 −3 7
[4 6 ] × [ ] = [(8 + 30) (−12 + 42) (28 + 48)]
5 7 8
1 −5 (2 − 25) (−3 − 35) (7 − 40)

16 5 37
= [ 38 30 76 ]
−23 −38 −33

Transformations
When setting up the multiplication for a transformation the transformation matrix always
goes first.

Rotations:
𝑐𝑜𝑠𝜃 𝑠𝑖𝑛𝜃 𝑐𝑜𝑠𝜃 −𝑠𝑖𝑛𝜃
Clockwise: [ ] Anticlockwise: [ ]
−𝑠𝑖𝑛𝜃 𝑐𝑜𝑠𝜃 𝑠𝑖𝑛𝜃 𝑐𝑜𝑠𝜃
Reflections: Scaling / magnification:

0 1 3 0
[ ] : swaps 𝑥 𝑎𝑛𝑑 𝑦. [ ] : makes 𝑥 3x bigger and 𝑦 2x bigger
1 0 0 2

Composite:
If a matrix A is reflected by T1 then magnified by T2 to give matrix B then the single
transformation that would transform A into B is T2T1 (in that order).

H Jackson 2010 /2013/ Academic Skills 1


Except where otherwise noted, this work is licensed under
http://creativecommons.org/licenses/by-nc-sa/3.0/
The Inverse (A-1):
1 0 0
-1 1 0
AA = I (the identity matrix) e.g. [0 1 0] or [
0 1
]
0 0 1

Finding the Inverse:


1 𝑎 𝑏
A-1 = |𝐴| x adj If: A = [
𝑐 𝑑
]

Where: |𝐴| = determinant |𝐴| = (𝑎𝑑) − (𝑏𝑐)


adj = adjoint
𝑑 −𝑏
adj = [ ]
−𝑐 𝑎

n.b. If det=0 matrix is singular and there is no inverse. If det≠0, matrix is non-singular.

Solving Simultaneous Equations:

If : 𝐴𝑥 = 𝐵 where : 𝐴 is the matrix


then: 𝑥 = 𝐴−1 𝐵 𝑥 is the 𝑥, 𝑦, 𝑧 (𝑒𝑡𝑐) values
𝐵 is the answers

All you need to remember to find the values of 𝑥, 𝑦, 𝑧 etc is to do: inverse x answers

Example: Solve 5𝑥 − 6𝑦 = −8
and −3𝑥 + 4𝑦 = 6 simultaneously

5 −6 𝑥 −8
We have: [ ] [𝑦] = [ ]
−3 4 6

𝐴 𝑥 = 𝐵

𝑥 −8 (Use the method shown above to find the


So: [𝑦] = 𝐴−1 [ ]
6 inverse then multiply by the answers.)

𝑥 1 4 6 −8 1 4 2
[𝑦 ] = [ ] [ ]= [ ] = [ ]
2 3 5 6 2 6 3

H Jackson 2010 /2013/ Academic Skills 2


3 X 3 Matrices
Most operations are done exactly the same for a 3x3 matrix as for a 2x2. The formula for
finding the inverse is the same but finding the determinant and the adjoint are a bit trickier.

The Minor:
The minor of each element is the determinant of everything that is not in the same row or
column as the element. It is used when finding the determinant and the adjoint.

𝒂 𝒃 𝒄
e.g. Find the minor of each element in the top row of the matrix: [𝒅 𝒆 𝒇]
𝒈 𝒉 𝒊

To find the minor of element ‘𝑎’ cover up everything in the same row or column and the
minor is the determinant of what is left:

𝑎 𝑏 𝑐
𝒆 𝒇
𝑑 𝑒 𝑓 the minor of a is: | | = 𝒆𝒊 − 𝒇𝒉
𝑔 ℎ 𝑖 𝒉 𝒊

To find the minor of element ‘𝑏’ cover up everything in the same row or column and the
minor is the determinant of what is left:

𝑎 𝑏 𝑐 𝒅 𝒇
𝑑 𝑒 𝑓 the minor of b is: | | = 𝒅𝒊 − 𝒇𝒈
𝑔 ℎ 𝑖 𝒈 𝒊

To find the minor of element ‘𝑐’ cover up everything in the same row or column and the
minor is the determinant of what is left:

𝑎 𝑏 𝑐
𝒅 𝒆
𝑑 𝑒 𝑓 the minor of c is: | | = 𝒅𝒉 − 𝒆𝒈
𝑔 ℎ 𝑖
𝒈 𝒉

The signs:
When finding the determinant or the adjoint we use alternate signs as follows:

+ − +
[− + −]
+ − +

H Jackson 2010 /2013/ Academic Skills 3


Finding the Inverse
Remember:

1 Where: |𝐴| = determinant


A-1 = |𝐴| x adj adj = adjoint

Determinant:
For the top row only, multiply each number by its minor and apply the alternate signs:

The minor of each


element in the top row

𝑎 𝑏 𝑐
𝑒 𝑓 𝑑 𝑓 𝑑 𝑒
If: A = [𝑑 𝑒 𝑓] |𝐴| = +𝑎 | |−𝑏| |+𝑐| |
ℎ 𝑖 𝑔 𝑖 𝑔 ℎ
𝑔 ℎ 𝑖

Adjoint:
The adjoint is the transpose of the cofactors (𝑐 𝑇 )

To find the cofactors you find the ‘minor’ of each element (and use the alternate signs as
shown above).
The minors of
𝑎 𝑏 𝑐 each element
If: A = [𝑑 𝑒 𝑓]
𝑔 ℎ 𝑖

𝑒 𝑓 𝑑 𝑓 𝑑 𝑒
Matrix of cofactors = +| |−| |+| |
ℎ 𝑖 𝑔 𝑖 𝑔 ℎ

𝑏 𝑐 𝑎 𝑐 𝑎 𝑏
−| | + |𝑔 𝑖 | − | |
ℎ 𝑖 𝑔 ℎ

𝑏 𝑐 𝑎 𝑐 𝑎 𝑏
+| | − |𝑑 𝑓 | + |𝑑 |
𝑒 𝑓 𝑒

Nb. To find the adjoint we then need to transpose this matrix.

H Jackson 2010 /2013/ Academic Skills 4


𝟐 𝟏 𝟓
e.g. Find the inverse of the following matrix: A = [𝟑 𝟑 𝟐]
𝟒 𝟏 𝟏

|𝐴| 3 2 3 2 3 3
Determinant: = +2 | | − 1| | + 5| |
1 1 4 1 4 1

= 2(1) − 1(−5) + 5(−9) = −38

3 2 3 2 3 3
+| | −| | +| |
1 1 4 1 4 1 1 5 −9
1 5 2 5 2 1
Cofactors = −| | +| | −| | =[ 4 −18 2]
1 1 4 1 4 1
1 5 2 5 2 1 −13 11 3
[+ |3 2
| −|
3 2
| +|
3 3
|]

We have transposed
the matrix of cofactors
1 4 −13 to get the adjoint.
Adjoint (𝑪𝑻 ): = [ 5 −18 11 ]
−9 2 3

𝟏 𝟒 −𝟏𝟑
1 𝟏
Inverse: A-1 = x adj =− [𝟓 −𝟏𝟖 𝟏𝟏 ]
|𝐴| 𝟑𝟖
−𝟗 𝟐 𝟑

H Jackson 2010 /2013/ Academic Skills 5


Solving Simultaneous Equations Using Cramer’s Rule:
Cramers method is a way to solve simultaneous equations using matrices.

𝑎 𝑏 𝑥 𝑒
e.g. Solve [ ] [𝑦] = [𝑓 ] to find 𝑥 𝑎𝑛𝑑 𝑦
𝑐 𝑑
st
Replace 1 column with
To find 𝒙: answer column

𝑒 𝑏
| |
𝑓 𝑑
𝑥= 𝑎 𝑏
Determinant of matrix with 𝟏𝐬𝐭 column replaced with the answer column.
Determinant of original matrix
| |
𝑐 𝑑

To find 𝒚:

𝑎 𝑒
|𝑐 𝑓|
𝑦= 𝑎 𝑏
Determinant of matrix with 𝟐𝐧𝐝 column replaced with the answer column.
Determinant of original matrix
| |
𝑐 𝑑

Notice that the bottom of the fraction is always the determinant of the original
matrix.

e.g. Solve the simultaneous equations: 𝟑𝒙 − 𝟒𝒚 = 𝟏𝟎


𝒙 + 𝟕𝒚 = −𝟓

Think of these as the answers.


3 −4 𝑥 10
Set up a matrix: [ ] [𝑦 ] = [ ]
1 7 −5
3 −4 For help with finding the
Determinant of matrix: | | = 𝟐𝟓 determinant, see Determinant
1 7
Summary sheet.

answers

To find 𝑥:
10 −4
| | 50
−5 7
= = 2
25 25

answers

To find 𝑦:
3 10
| | −25
1 −5
= = -1
25 25

H Jackson 2010 /2013/ Academic Skills 6


e.g. Solve the simultaneous equations: 𝟐𝒙 + 𝒚 − 𝟑𝒛 = 𝟕
𝒙 + 𝟑𝒚 + 𝒛 = 𝟔
𝒙 − 𝟒𝒚 − 𝟓𝒛 = −𝟐

Think of these as the answers.

2 1 −3 𝑥 7
Set up the matrix: [1 3 1 ] [𝑦 ] = [ 6]
1 −4 −5 𝑧 −2

2 1 −3
Determinant of matrix: |1 3 1 |=5
1 −4 −5

answers
To find 𝑥

7 1 −3
|6 3 1|
−2 −4 −5 5
= = 1
5 5

answers
To find 𝑦

2 7 −3
|1 6 1|
1 −2 −5 10
= = 2
5 5

answers
To find 𝑧

2 1 7
|1 3 6|
1 −4 −2 −5
= = -1
5 5

H Jackson 2010 /2013/ Academic Skills 7

You might also like