ENGG1120 PastPapers Midterm 2021spring Solutions
ENGG1120 PastPapers Midterm 2021spring Solutions
M IDTERM E XAMINATION
11 March 2021, 20:00–21:30 HKT
Sign-in time: 19:30 HKT
Please write your name and student ID at the top of the first page of your solutions.
http://www.cuhk.edu.hk/policy/academichonesty/Eng_htm_files_(2013-14)/declaration_en.doc
You have to submit the declaration to Blackboard when the exam ends.
PAGE 1 OF 9
M IDTERM E XAMINATION
ENGG 1120 S ECTIONS A, B, C, D, E, F 11 M ARCH 2021, 20:00–21:30 HKT
L INEAR A LGEBRA FOR E NGINEERS S IGN - IN TIME : 19:30 HKT
1. Define
−3 1 4 −1 1 3 0 1 3 0 0 1 0 1 0
A= 2 0 5 , B = 4 2 6 , C = −5 2 6 , X = 0 1 0 , Y = 0 0 1 .
6 4 2 7 −5 0 4 9 −2 1 0 0 0 0 0
Solution:
(d) [2 points] What is the effect of multiplying a matrix with three rows from the left by X?
Hint: How are B and X · B related?
Solution: Multiplying a matrix from the left by X has the effect of swapping the first and the
third row.
(e) [2 points] Compute (X · A) · C.
Hint: Try to use the results that you obtained in Part (a).
PAGE 2 OF 9
ENGG 1120 S ECTIONS A, B, C, D, E, F S TUDENT ’ S NAME :
L INEAR A LGEBRA FOR E NGINEERS S TUDENT ’ S I D :
Solution:
−12 32 38
(X · A) · C = X · (A · C) = 20 47 −4 .
11 35 −11
Therefore,
Y · (A + YB + Y2 C) = YA + Y2 B + Y3 C
2 0 5 7 −5 0 0 0 0
= 6 4 2 + 0 0 0 + 0 0 0
0 0 0 0 0 0 0 0 0
9 −5 5
= 6 4 2 .
0 0 0
(a) [8 points] Determine all value(s) of a and b such that this system of linear equations has no solu-
tion. Justify your answer.
Solution: Let à = (A | b) be the augmented matrix. We bring à into row echelon form by a
suitable sequence of elementary row operations:
0 1 2 −4
à = 3 −4 a 4
2 −3 6 b
3 −4 a 4
∼ 0 1 2 −4
2 −3 6 b
3 −4 a 4
∼ 0 1 2 −4
0 − 3 6 − 3 b − 38
1 2a
3 −4 a 4
∼ 0 1 2 −4 .
2·(10−a)
0 0 3 b−4
Let Ã′ = (A′ | b′ ) be the obtained augmented matrix. Because we applied only elementary row
operations, it holds that rank(A) = rank(A′ ) and rank(Ã) = rank(Ã′ ).
PAGE 3 OF 9
M IDTERM E XAMINATION
ENGG 1120 S ECTIONS A, B, C, D, E, F 11 M ARCH 2021, 20:00–21:30 HKT
L INEAR A LGEBRA FOR E NGINEERS S IGN - IN TIME : 19:30 HKT
• First approach: Recall that a system of linear equations has no solution if and only if it is
inconsistent, i.e., if and only if Ã′ contains a row where all entries except the last entry are
zero. Here this is the case if and only if a = 10 and b ̸= 4.
• Second approach: Recall that a system of linear equations has no solution if and only if
Here, rank(A′ ) = 2 and rank(Ã′ ) = 3 (and with this rank(A′ ) < rank(Ã′ )) if and only if
a = 10 and b ̸= 4.
(b) [4 points] Determine all value(s) of a and b such that this system of linear equations has a unique
solution. Justify your answer.
Solution: The system of linear equations has a unique solution if and only if a ̸= 10.
Reasoning:
• First approach: Recall that a system of linear equations has a unique solution if and only if
det(A) ̸= 0, i.e., if and only if det(A′ ) ̸= 0. Because det(A′ ) = 20 − 2a, this is the case if and
only if a ̸= 10.
• Second approach: Recall that a system of linear equations with three unknowns has a
unique solution if and only if
rank(A′ ) = rank(Ã′ ) = 3.
(c) [8 points] Determine the value(s) of a and b such that this system of linear equations has infinitely
many solutions. Moreover, find the solution set of the system in this case.
Solution: Recall that a system of linear equations with three unknowns has infinitely many so-
lutions if and only if
PAGE 4 OF 9
ENGG 1120 S ECTIONS A, B, C, D, E, F S TUDENT ’ S NAME :
L INEAR A LGEBRA FOR E NGINEERS S TUDENT ’ S I D :
We bring Ã′ into reduced row echelon form by a suitable sequence of elementary row operations:
3 −4 10 4
Ã′ = 0 1 2 −4
0 0 0 0
4 10 4
1 −3 3 3
∼ 0 1 2 −4
0 0 0 0
1 0 6 −4
∼ 0 1 2 −4 .
0 0 0 0
Solution: Recall that A is invertible if and only if det(A) ̸= 0. Let us therefore compute the
determinant of A and find for which values of α it is nonzero. We get
det(A) = α · (1 · α − 2 · 2) − 2 · (2 · α − 2 · 2) + 2 · (2 · 2 − 1 · 2)
= α2 − 4α − 4α + 8 + 8 − 4
= α2 − 8α + 12.
B = (AT · A)−1 · AT .
Use determinant properties toward expressing det(B) in terms of det(A). Justify your answer.
Solution:
PAGE 5 OF 9
M IDTERM E XAMINATION
ENGG 1120 S ECTIONS A, B, C, D, E, F 11 M ARCH 2021, 20:00–21:30 HKT
L INEAR A LGEBRA FOR E NGINEERS S IGN - IN TIME : 19:30 HKT
1
= · det A
T
det A · A
1
= T
· det A
det(A ) · det(A)
1
= · det A
det(A) · det(A)
1
= ,
det(A)
• where the second and fifth equalities follow from the determinant of a product of matrices
being equal to the product of the determinants,
• where the third and sixth equalities follow from the determinant of the transpose of a matrix
being equal to the determinant of the matrix,
• where the fourth equality follows from the determinant of the inverse of a matrix being
equal to the multiplicative inverse of the determinant of the matrix.
B = (AT · A)−1 · AT
= A−1 · (AT )−1 · AT
= A−1 · I
= A−1 ,
where the second equality follows from the expression (C · D)−1 = D−1 · C−1 , which holds for
invertible square matrices C and D of the same size. This implies
1
= ,
det(A)
where the second equality follows from the determinant of the inverse of a matrix being equal to
the multiplicative inverse of the determinant of the matrix.
4. (a) [5 points] Let A be an n × n symmetric nonsingular matrix. Prove that A−1 is also symmetric.
Note: A matrix A is called symmetric if AT = A.
Solution:
PAGE 6 OF 9
ENGG 1120 S ECTIONS A, B, C, D, E, F S TUDENT ’ S NAME :
L INEAR A LGEBRA FOR E NGINEERS S TUDENT ’ S I D :
I = IT
T
= A · A−1
= (A−1 )T · AT
= (A−1 )T · A.
(A−1 )T = A−1 .
A = AT .
A−1 = (A−1 )T .
C11 = −1,
C21 = 3, C22 = −3,
C31 = −2, C32 = 1, C33 = 0.
PAGE 7 OF 9
M IDTERM E XAMINATION
ENGG 1120 S ECTIONS A, B, C, D, E, F 11 M ARCH 2021, 20:00–21:30 HKT
L INEAR A LGEBRA FOR E NGINEERS S IGN - IN TIME : 19:30 HKT
and
Second approach (Gauss–Jordan method): Applying elementary row operations to the matrix
(A | I), we obtain
1 2 3 1 0 0
A I = 2 4 5 0 1 0
3 5 6 0 0 1
1 0 0 1 −3 2
∼ 0 1 0 −3 3 −1
0 0 1 2 −1 0
A−1
= I .
Thus
1 −3 2
A−1 = −3 3 −1 .
2 −1 0
PAGE 8 OF 9
ENGG 1120 S ECTIONS A, B, C, D, E, F S TUDENT ’ S NAME :
L INEAR A LGEBRA FOR E NGINEERS S TUDENT ’ S I D :
Solution: We bring A into row echelon form by a suitable sequence of elementary row opera-
tions:
1 2 3 2 1
A = 3 1 −5 −2 1
7 8 −1 2 5
1 2 3 2 1
∼ 0 −5 −14 −8 −2
0 −6 −22 −12 −2
1 2 3 2 1
∼ 0 −5 −14 −8 −2 .
0 0 −5.2 −2.4 0.4
The rank of A equals the number of non-zero rows of the last matrix. Therefore,
rank(A) = 3.
(c) [3 points] Let C be a real matrix of size 3×5. What is the largest possible value for rank(C)? Justify
your answer.
Solution: The rank C is upper bounded by the number of rows and by the number of columns.
Therefore,
rank(C) ≤ min(3, 5) = 3.
PAGE 9 OF 9