Professional Documents
Culture Documents
(MATH2350) (2016) (F) Midterm Ffamuet 40800
(MATH2350) (2016) (F) Midterm Ffamuet 40800
(MATH2350) (2016) (F) Midterm Ffamuet 40800
Each
correct answer is worth 4 marks (no deduction for wrong answers).
(i) Suppose that we have entered the following commands into GNU Octave:
>> a=[1,2;3,4;5,6];b=[1,2,3;4,5,6];
Which of the following commands will give a valid output?
Solution: D
(A) I, II only (B) II, III only (C) I, III only (D) I, II, III
Solution: B.
(I) is not necessarily correct because the right hand side b is not changed accordingly. For
example, take:
1 0 0 0 1
A= , B= , b = e1 = .
0 0 1 0 0
Then A is row-equivalent to B, and Ax = e1 is consistent. However, Bx = e1 is inconsistent.
(II) is correct since Ax = 0 and Bx = 0 will have the same solution set.
(III) is correct as it is just another way of saying (II).
(iii) Let A, B, C, D be n × n matrices such that by EROs we can transform the combined matrix
[ A | B ] to [ C | D ].
If D = In , which of the followings is correct?
Solution: C.
Let P represent the product of elementary matrices corresponding to the EROs, i.e.
[ A | B ] → [ PA | PB ] = [ C | D ]
PA = C ⇒ A = P −1 C = BC.
1
(iv) Let A and B be row-equivalent m × n matrices. Consider the statements:
(A) I, II only (B) II, III only (C) I, III only (D) I, II, III
Solution: A.
(I) is correct as row space is unchanged under row operations.
(II) is correct as Ax = 0 and Bx = 0 have the same solution set, i.e. same null space.
(III) is not necessarily correct. For example, take:
1 0 0 0
A= →B=
0 0 1 0
Solution: B.
Since the change of coordinates matrix P will do [v]C = P [v]B for every v, we get the
C←B C←B
following matrix equalities:
1 1 1 1
= [x]C = P [x]B = P , = [y]C = P [y]B = P
−1 C←B C←B 1 1 C←B C←B −1
1 1 1 1 1 1
So we have = P P = P . Thus:
−1 1 C←B 1 C←B −1 C←B 1 −1
−1
1 1 1 1 1 0
P = = .
C←B −1 1 1 −1 0 −1
Qn. 2 (20 marks) Find the inverse (if exists) of the following matrix A:
1 0 0 0
1 2 0 0
A= 0
.
2 3 0
0 0 3 4
2
Solution: We perform EROs to the combined matrix [ A | I4 ]:
1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0
1 2 0 0 0 1 0 0 −r1 +r2 0 2 0 0 −1 1 0 0
0 2 3 0 0 0 1 0 −−−−− −→
0 2 3 0 0 0 1 0
0 0 3 4 0 0 0 1 0 0 3 4 0 0 0 1
1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0
−r2 +r3 0 2 0 0 −1 1 0 0 −r3 +r4 0 2 0 0 −1 1 0 0
−−−−−−→ 0 0 3 0 1 −1 1 0 −−−−−
−→
0 0 3 0 1 −1 1 0
0 0 3 4 0 0 0 1 0 0 0 4 −1 1 −1 1
1 0 0 0 1 0 0 0
scalings 0 1 0 0 − 1 1 0 0
−−−−−
−→ 2 2
1
0 0 1 0
3 − 3 31 0
1
0 0 0 1 − 14 41 − 14 41
− 41 14 − 14 14
Hence x1 , x2 , x3 are all basic variables, and the vector equation should have unique zero solution.
So {v1 , v2 , v3 } is a linearly independent set.
(ii) Yes. We consider the augmented matrix of the vector equation x1 v1 + x2 v2 + x3 v3 = u:
1 1 0 3 −r +r 1 1 0 3 r2 +r3
1 1 0 3
1 3
0 1 1 2 −−−−−−→ 0 1 1 2 −−−−− −→ 0 1 1 2
1 0 1 5 0 −1 1 2 0 0 2 4
Qn. 4 (20 marks) Find a basis for Nul A, where A is given by:
1 3 1 2 1 1
A = 2 1 2 −1 3 0 .
3 4 3 6 5 2
3
Solution: We perform EROs on A:
1 3 1 2 1 1 −2r1 +r2
1 3 1 2 1 1 −r2 +r3
1 3 1 2 1 1
2 1 2 −1 3 0 −−−−− −→ 0 −5 0 −5 1 −2 −−−−− −→ 0 −5 0 −5 1 −2
−3r1 +r3
3 4 3 6 5 2 0 −5 0 0 2 −1 0 0 0 5 1 1
3 3
1 0 1 0 95
r3 +r2
1 3 1 0 5 5 3
r +r1 0
5 2
−−−−− −→ 0 −5 0 0 2 −1 −−−−− −→ 0 −5 0 0 2 −1
− 52 r3 +r1 0 0 0 5 1 1 0 0 0 5 1 1
9
scalings 1 0 1 0 5 0
−−−−− −→ 0 1 0 0 − 25 15
0 0 0 1 51 15
So x3 , x5 , x6 are free variables. Set x3 = s, x5 = t, x6 = u. Then:
1 1 2 1 9
x4 = − t − u, x2 = t − u, x1 = −s − t.
5 5 5 5 5
The parametric vector form of the solution to Ax = 0 is:
9 9
−1 −5 −1 −5
x1 0 0
x2 0 2 −1 0 2 −1
5 5 5 5
x3 1 0 0 1 0 0
x= x4 = s 0 + t − 1 + u − 1 , s, t, u ∈ R.; B = { 0 , − 1 , − 1 }.
5 5 5 5
x5 0 1 0 0 1 0
x6 0 0 1 0 0 1
Thus a basis for Nul A can be chosen as B.
Qn. 5 (20 marks) Consider the polynomial space P2 . Let B = {1, 1 + t, 1 + t + t2 } and C =
{1, 1 − t, 1 − t − t2 } be two bases of P2 . Let f (t) = t + t2 .
(i) Find the coordinate vectors [f ]B and [f ]C .
(ii) Find the change of coordinates matrix P , and verify that [f ]C = P [f ]B .
C←B C←B
Solution: (i) By definition, we need to solve:
t + t2 = x1 (1) + x2 (1 + t) + x3 (1 + t + t2 ) and t + t2 = y1 (1) + y2 (1 − t) + y3 (1 − t − t2 ).
We get solutions (x1 , x2 , x3 ) = (−1, 0, 1) and (y1 , y2 , y3 ) = (1, 0, −1). So:
−1 1
[f ]B = 0 , [f ]C = 0 .
1 −1
(ii) By definition, we first obtain solutions for the linear combinations:
1 = 1(1) + 0(1 − t) + 0(1 − t − t2 )
1 + t = 2(1) + (−1)(1 − t) + 0(1 − t − t2 )
1 + t + t2 = 2(1) + 0(1 − t) + (−1)(1 − t − t2 )
Putting the coefficients of the linear combinations in column forms, we get:
1 2 2
P = 0 −1 0 .
C←B
0 0 −1
And it is straightforward to verify that:
1 2 2 −1 1
P [f ]B = 0 −1 0 0 = 0 = [f ]C .
C←B
0 0 −1 1 −1
— END —