Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Name: .................................................
Student Number: .................................................
Tutor’s Name: .................................................
Lab Time and Day: .................................................
Instructions to Students:
This test is designed to evaluate your ability to calculate efficiently with the aid of MATLAB.
Some questions test your understanding of the material covered in lectures, and do not nec-
essarily require MATLAB. No partial credit is given, so please carefully check anything typed
into MATLAB, and check the output of programs used.
The number of marks for each question is indicated and the total number of marks is 25.
(2) In question 5 the solutions must be recorded as exact integers, or as a decimal correct to
4 decimal places, as appropriate.
(a) The rank of a matrix is equal to the number of non-zero rows in its row echelon form.
(d) The union of lines through the origin {(x, y) : y = −x} ∪ {(x, y) : y = 3x} is a subspace
of R2 .
(f) Suppose the row echelon form of the matrix formed from S = {v, w, x, y, z} is
1 1 −1 0 0
0 0 1 0 0
0 0 0 1 1
[6 marks]
2
2. Consider the system of equations
Let t, s, t1 , t2 , t3 ∈ R. Indicate which one of the following is the general solution for
(a)
x1
x2
.
x3
x4
−3 −2 −3 −2 −1
4 0 4 0 5
(A) t
0 + s 1
(B) t
0 + s 1 + 0
1 0 1 0 0
−3 −3 −2 −1
4 4 0 5
(C)
0
(D) t1
0 + t2 1 + t3 0
1 1 0 0
x1
x2
(b) Let t ∈ R. Indicate which two of the following values of
x3 satisfy the equations.
x4
−3 −1 −4
4 5 9
(A) t
0 + 0
(B) t
0
1 0 1
−4 −1
9 5
(C)
0
(D) t
0
1 0
[4 marks]
3
3. Consider the matrix
4 3 1 3 15
1 0 5 11 3
−2
A= 1 7 11 −5
−1 1 −2 −6 −2
0 1 1 1 1
(a) Circle the two vectors that are in the solution space of A.
−4 0 0 −4
0 0 −1 0
−2
u1 = 0
u2 = 0
u3 = −2
u4 =
1 0 0 −1
1 0 1 −1
(b) Circle the two vectors that are in the column space of A.
1 1 1 1
2 5 3 1
0
v1 = 7
v2 = 3
v3 = −3
v4 =
−1 −2 0 −2
4 1 3 −1
(c) Circle the two vectors that are in the row space of A.
w1 = 1 3 −2 −6 6
w2 = 0 0 1 0 2
w3 = 1 2 −1 3 0
w4 = −1 1 −2 −6 −2
[Hint: This is equivalent to the transpose of these vectors being in the column space of AT .]
[6 marks]
4
4. As well as the matrix A from Q3, this question will require using the matrix
1 0 1 1 0
0 3 3 0 −1
B=
2 4 6 3 1
7 2 9 0 1
0 4 4 2 3
Span(a1 , a2 , a4 , a5 , b1 , b3 , b4 , b5 )
You should indicate your answer by circling the five vectors that form a basis.
[5 marks]
5
5. Enter the following arrays of numbers as 5 × 5 matrices into M AT LAB.
X =
6 76 64 82 68
62 18 34 68 36
28 86 39 68 39
92 94 70 4 86
88 52 40 48 86
Y =
20 76 76 96 90
24 76 36 12 78
26 52 84 57 68
10 60 92 92 12
49 43 81 58 51
(a) What is the entry in the 4th row and 5th column of XY ?
(b) What is the entry in the first row and first column of the inverse of I5 − Y , where I5
denotes the 5 × 5 identity?
(d) Let u, v ∈ R5 correspond to the 4th row of X and 5th column of Y respectively. What
is the vector u + 3v?
[4 marks]