NATIONAL UNIVERSITY OF SINGAPORE
Department of Mathematics
MA1522 Linear Algebra for Computing
Homework 1
(a) Write your answers on A4 size papers. You may choose to write or type your answer
digitally.
(b) Write the page number on the top right corner of each page of the answer script.
(c) You may use MATLAB to aid in your calculations, however, you need to show all your
workings clearly.
(d) If you have written your answer on an A4 paper, to submit, scan or take pictures of
your work (make sure the images can be read clearly). Merge all your images into one
PDF file (make sure they are in order of the page).
(e) If you have written or typed your answer digitally, print it into a PDF file.
(f) Name the PDF file by StudentNo HW1 (e.g. A1234567Z HW1.pdf).
(g) Submit the PDF file to Canvas assignments, Homework 1.
1. A swimming pool has a volume of 2, 880, 000 litres. To fill water into the pool, they have
three types of water pumps, X, Y and Z that can pump x litres per second, y litres per
second, and z litres per second respectively. To test the pumping rate of the three types
of pumps, the management team of the swimming pool uses different combinations of
pump types and gets the following results.
(i) 2 pumps of type X, 3 pumps of type Y and 4 pumps of type Z will fill the pool in
2 hours.
(ii) 1 pump of type X, 2 pumps of type Y and 1 pump of type Z will fill the pool in 4
hours.
(iii) 2 pumps of type Y and 4 pumps of type Z will fill the pool in 5 hours.
(a) (3 points) Write down a linear system with variables x, y, and z representing the
information given above.
(b) (5 points) Solve for the system.
You need to show the elementary row operations used.
2. Consider the following linear system
ax1
+ 2x2 +
ax3
ax1
+ 2x2 +
ax3
3x
+
3x
−
bx3
1
2
(a + 1)x1 + 3x2 + (a + 1)x3
+ (a + b)x4
+
ax4
+
3x4
+ (a + 1)x4
=
a−b
=
a−b
=
−b
= a−b+1
for some real numbers a, b.
(a) (3 points) Determine the values of a and b in which the system has no solution.
(b) (3 points) Determine the values of a and b in which the system has a unique solution
and find the solution.
(c) (3 points) Determine the values of a and b in which the system has infinitely many
solution with 1 parameter in the general solution. In these case, what are the values
of x1 in the solutions if x3 = 1 and x4 = 0?
(d) (3 points) Is it possible for the system to have infinitely many solutions with 3
parameters? Explain your answer.
You need to show the elementary row operations used.
3. It is given that
−1 2 −2 4
0 15 −7 24
R +R1 R4 −R2 R2 +5R1
A −−3−−→
−−−−→−−−−→ U =
0 0 1 −3 .
0 0 0 −3
(a) (3 points) Find a 4 × 4 matrix L such that A = LU. Explain how you derive your
answer.
2
8
(b) (4 points) Use your answer in (a) to solve Ax =
−2. Show how you derive your
5
answer. Solving the system using any other method will not fetch any marks.
(c) (3 points) What is det(A), the determinant of A?
4. (a) Let
a a a
A = 1 1 0 .
0 1 1
i. (2 points) For what values of a is A invertible? Explain your answer.
ii. (3 points) Compute the adjoint of A by cofactor expansion. Show all your
workings clearly.
iii. (2 points) Suppose A is invertible. Use your answer in (b) to compute the
inverse of A. Using another other methods will not fetch you marks.
(b) (3 points) Suppose
1
1
adj(A) =
1
0
1
1
0
1
1
0
1
1
0
1
.
1
1
What is adj(3A)? Explain how you derive your answer.