MA 351: Introduction to Linear Algebra and Its Applications Fall 2026, Midterm Two

Instructor: Yip

Read the above instructions!

Name: Answer Key (Major: )

Question and Score
Question Score
1.(20 pts)
2.(20 pts)
3.(20 pts)
4.(20 pts)
5.(20 pts)
Total (100 pts)
  1. Find a basis for the following subspace:

    \[ \begin{gathered} U = \left\{ \begin{bmatrix} a + 3b + c & -2b + 2c & 2a + 8c \\ -3a + 2b - 14c & a - 3b + 7c & 5a + 3b + 17c \end{bmatrix} : a, b, c \in R \right\} \\[0.5em] = a\begin{bmatrix} 1 & 0 & 2 \\ -3 & 1 & 5 \end{bmatrix} + b\begin{bmatrix} 3 & -2 & 0 \\ 2 & -3 & 3 \end{bmatrix} + c\begin{bmatrix} 1 & 2 & 8 \\ -14 & 7 & 17 \end{bmatrix} \end{gathered} \]

    The three matrices are labeled \( M_1 \), \( M_2 \), \( M_3 \) respectively.

    \[ U = \text{Spand}\{M_1, M_2, M_3\} \]

    check for lin ind for \( M_1, M_2, M_3 \)

    \[ aM_1 + bM_2 + cM_3 = 0 \] \[ \iff \begin{cases} a + 3b + c & = 0 \\ -2b + 2c & = 0 \\ 2a \phantom{{}+3b} + 8c & = 0 \\ -3a + 2b - 14c & = 0 \\ a - 3b + 7c & = 0 \\ 5a + 3b + 17c & = 0 \end{cases} \iff \left(\begin{array}{ccc|c} 1 & 3 & 1 & 0 \\ 0 & -2 & 2 & 0 \\ 2 & 0 & 8 & 0 \\ -3 & 2 & -14 & 0 \\ 1 & -3 & 7 & 0 \\ 5 & 3 & 17 & 0 \end{array}\right) \] \[ \to \left(\begin{array}{ccc|c} 1 & 3 & 1 & 0 \\ 0 & 1 & -1 & 0 \\ 0 & -6 & 6 & 0 \\ 0 & 11 & -11 & 0 \\ 0 & -6 & 6 & 0 \\ 0 & -12 & 12 & 0 \end{array}\right) \to \left(\begin{array}{ccc|c} 1 & 3 & 1 & 0 \\ 0 & 1 & -1 & 0 \\ 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 \end{array}\right) \]

    \( U = \text{Spand}\{M_1, M_2\} \)

    \[ (M_3 = 4M_1 - M_2) \]
  1. Consider the following matrix:

    \[ A = \begin{pmatrix} 1 & 1 & 3 & 2 \\ 2 & 2 & 6 & 4 \\ 10 & 2 & 14 & 20 \\ 2\sqrt{2} & -\sqrt{2} & 0 & 4\sqrt{2} \\ \sqrt{2} & \sqrt{3} & \sqrt{2} + 2\sqrt{3} & 2\sqrt{2} \\ 2 & 2 & 6 & 4 \\ 1 & 1 & 3 & 2 \end{pmatrix} \]
    1. Find the rank and nullity of \( A \).
    2. Find a basis for the Col and Null and Row spaces of \( A \).
    3. For any \( b \), can you find an \( X \) such that \( AX = b \)? Explain.
    4. Does the solution \( AX = b \) has a unique solution (if a solution exists)? Explain.

    (a)

    \[ \left(\begin{array}{cccc|c} 1 & 1 & 3 & 2 & 0 \\ 2 & 2 & 6 & 4 & 0 \\ 10 & 2 & 14 & 20 & 0 \\ 2\sqrt{2} & -\sqrt{2} & 0 & 4\sqrt{2} & 0 \\ \sqrt{2} & \sqrt{3} & \sqrt{2}+2\sqrt{3} & 2\sqrt{2} & 0 \\ 2 & 2 & 6 & 4 & 0 \\ 1 & 1 & 3 & 2 & 0 \end{array}\right) \xrightarrow{\phantom{x}} \left(\begin{array}{cccc|c} 1 & 1 & 3 & 2 & 0 \\ 0 & 0 & 0 & 0 & 0 \\ 0 & -8 & -16 & 0 & 0 \\ 0 & -3\sqrt{2} & -6\sqrt{2} & 0 & 0 \\ 0 & \sqrt{3}-\sqrt{2} & -2\sqrt{2}+2\sqrt{3} & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \end{array}\right) \]
\[ \xrightarrow{?} \left(\begin{array}{cccc|c} 1 & 1 & 3 & 2 & 0 \\ 0 & 1 & 2 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \end{array}\right) \xrightarrow{?} \begin{array}{cccc} x_1 & x_2 & x_3 & x_4 \end{array} \left(\begin{array}{cccc|c} 1 & 0 & 1 & 2 & 0 \\ 0 & 1 & 2 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \end{array}\right) \]

(a) \( \text{Rank} = 2, \; \text{Nullity} = 2 \)

(b) Basis for \( \text{Col}(A) = \left\{ \begin{pmatrix} 1 \\ 2 \\ 10 \\ 2\sqrt{2} \\ \sqrt{2} \\ 2 \\ 1 \end{pmatrix}, \begin{pmatrix} 1 \\ 2 \\ 2 \\ -\sqrt{2} \\ \sqrt{3} \\ 2 \\ 1 \end{pmatrix} \right\} \)

Basis for \( \text{Null}(A) \):

\[ \begin{gathered} x_3 = \alpha, \; x_4 = \beta \\[0.5em] x_1 = -\alpha - 2\beta \\[0.5em] x_2 = -2\alpha \\[0.5em] \begin{pmatrix} x_1 \\ x_2 \\ x_3 \\ x_4 \end{pmatrix} = \begin{pmatrix} -\alpha - 2\beta \\ -2\alpha \\ \alpha \\ \beta \end{pmatrix} = \alpha \begin{pmatrix} -1 \\ -2 \\ 1 \\ 0 \end{pmatrix} + \beta \begin{pmatrix} -2 \\ 0 \\ 0 \\ 1 \end{pmatrix} \end{gathered} \]

Basis

Basis for

\[ \text{Row}(A) = \left\{ \begin{pmatrix} 1 & 0 & 1 & 2 \end{pmatrix}, \begin{pmatrix} 0 & 1 & 2 & 0 \end{pmatrix} \right\} \]

(c) \( AX = b \) does not have a solution for any \( b \)

\[ ( \because \text{Rank} = 2 < 7 ) \]

(d) \( AX = b \) can have infinitely many solution

\[ ( \because \text{Nullity} = 2 > 0, \text{ there are 2 free vars.} ) \]
  1. Let \( A = \begin{pmatrix} 1 & -1 \\ 2 & 0 \end{pmatrix} \). Find a basis and the dimension for the following subspace of \( 2 \times 2 \) matrices:

    \[ \begin{gathered} \mathcal{M} = \{ B : AB = BA \}. \\[0.5em] B = \begin{pmatrix} a & b \\ c & d \end{pmatrix} \qquad \begin{pmatrix} a & b \\ c & d \end{pmatrix} \begin{pmatrix} 1 & -1 \\ 2 & 0 \end{pmatrix} = \begin{pmatrix} 1 & -1 \\ 2 & 0 \end{pmatrix} \begin{pmatrix} a & b \\ c & d \end{pmatrix} \\[0.5em] \begin{pmatrix} a + 2b & -a \\ c + 2d & -c \end{pmatrix} = \begin{pmatrix} a - c & b - d \\ 2a & 2b \end{pmatrix} \end{gathered} \] \[ \begin{array}{llll} a + 2b = a - c & \iff & c = -2b & (1) \\ -a = b - d & \iff & a + b = d & (2) \\ c + 2d = 2a & \iff & 2a = c + 2d & (3) \\ -c = 2b & \iff & c = -2b & (4) \end{array} \] \[ 2a = -2b + 2d \]

    use \( b \) & \( d \) as free vars.

    \[ \begin{gathered} a = -b + d \quad \text{same as (2)} \\[0.5em] \begin{pmatrix} a & b \\ c & d \end{pmatrix} = \begin{pmatrix} -b + d & b \\ -2b & d \end{pmatrix} = b \begin{pmatrix} -1 & 1 \\ -2 & 0 \end{pmatrix} + d \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} \end{gathered} \]

    \( M_1 \), \( M_2 \) are basis vector.

Alternatively,

\[ \Rightarrow \begin{cases} 2b + c = 0 \\ a + b \quad - d = 0 \\ 2a \quad - c - 2d = 0 \\ 2b + c = 0 \end{cases} \Rightarrow \left[\begin{array}{cccc|c} 0 & 2 & 1 & 0 & 0 \\ 1 & 1 & 0 & -1 & 0 \\ 2 & 0 & -1 & -2 & 0 \\ 0 & 2 & 1 & 0 & 0 \end{array}\right] \] \[ \xrightarrow{\phantom{x}} \left[\begin{array}{cccc|c} 1 & 1 & 0 & -1 & 0 \\ 0 & 2 & 1 & 0 & 0 \\ 2 & 0 & -1 & -2 & 0 \\ 0 & 2 & 1 & 0 & 0 \end{array}\right] \xrightarrow{\phantom{x}} \left[\begin{array}{cccc|c} 1 & 1 & 0 & -1 & 0 \\ 0 & 2 & 1 & 0 & 0 \\ 0 & -2 & -1 & 0 & 0 \\ 0 & 2 & 1 & 0 & 0 \end{array}\right] \] \[ \xrightarrow{\phantom{x}} \left[\begin{array}{cccc|c} 1 & 1 & 0 & -1 & 0 \\ 0 & 2 & 1 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \end{array}\right] \rightarrow \begin{array}{l} b = -\dfrac{c}{2} \\ a = -b + d \\ a = +\dfrac{c}{2} + d \end{array} \]

c , d are free

basis

\[ \begin{pmatrix} a & b \\ c & d \end{pmatrix} = \begin{pmatrix} \frac{c}{2} + d & -\frac{c}{2} \\ c & d \end{pmatrix} = c \begin{pmatrix} \frac{1}{2} & -\frac{1}{2} \\ 1 & 0 \end{pmatrix} + d \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} \]
  1. Let \( \mathcal{S} = \{A^{2\times 2} : A = A^t\} \) and \( \mathcal{K} = \{B^{2\times 2} : B = -B^t\} \). (The superscript \( ^t \) means taking the transpose of a matrix. The set \( \mathcal{S} \) and \( \mathcal{K} \) are called the space of symmetric and skew-symmetric matrices.)

    1. Find a basis and the dimension for \( \mathcal{S} \).
    2. Find a basis and the dimension for \( \mathcal{K} \).
    3. If you collect the basis vectors for \( \mathcal{S} \) and \( \mathcal{K} \) together, do they form a basis for the space of all \( 2 \times 2 \) matrices? If so, write a general \( 2 \times 2 \) matrix as a linear combination of these basis vectors.

    (a)

    \[ \begin{gathered} A = A^T \qquad \begin{pmatrix} a & b \\ c & d \end{pmatrix} = \begin{pmatrix} a & c \\ b & d \end{pmatrix} \\[0.5em] \Rightarrow \quad a = a, \; b = c, \; c = b, \; d = d \\[0.5em] \begin{pmatrix} a & b \\ c & d \end{pmatrix} = \begin{pmatrix} a & b \\ b & d \end{pmatrix} = a \begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix} + b \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix} + d \begin{pmatrix} 0 & 0 \\ 0 & 1 \end{pmatrix} \end{gathered} \]

    \( S_1 \), \( S_2 \), \( S_3 \)

    basis for \( \mathcal{S} \), \( \dim = 3 \)

    (b)

    \[ \begin{gathered} B = -B^T \qquad \begin{pmatrix} a & b \\ c & d \end{pmatrix} = -\begin{pmatrix} a & c \\ b & d \end{pmatrix} \\[0.5em] \Rightarrow \quad a = -a, \; b = -c, \; c = -b, \; d = -d \end{gathered} \]

    \( a = 0 \)

    \( d = 0 \)

    \[ \begin{pmatrix} a & b \\ c & d \end{pmatrix} = \begin{pmatrix} 0 & b \\ -b & 0 \end{pmatrix} = b \begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix} \]

    \( K_1 \) basis, \( \dim = 1 \)

(c)

\[ \begin{gathered} \left\{ \begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix}, \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}, \begin{pmatrix} 0 & 0 \\ 0 & 1 \end{pmatrix}, \begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix} \right\} \\[0.5em] \begin{pmatrix} a & b \\ c & d \end{pmatrix} = c_1 \begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix} + c_2 \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix} + c_3 \begin{pmatrix} 0 & 0 \\ 0 & 1 \end{pmatrix} + c_4 \begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix} \end{gathered} \] \[ \begin{array}{l} a = c_1, \\ b = c_2 + c_4 \\ c = c_2 - c_4 \\ d = c_3 \end{array} \quad \Rightarrow \quad \begin{array}{l} c_1 = a \\ c_2 = \frac{b+c}{2} \\ c_4 = \frac{b-c}{2} \\ c_3 = d \end{array} \]

Yes. They do form a basis. (They are lin. ind. (why?))

\[ \begin{pmatrix} a & b \\ c & d \end{pmatrix} = a \begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix} + \frac{b+c}{2} \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix} + d \begin{pmatrix} 0 & 0 \\ 0 & 1 \end{pmatrix} + \frac{b-c}{2} \begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix} \]
  1. Let \( T \) be a linear transformation from \( R^2 \) to \( R^3 \) such that

    \[ T\begin{pmatrix} 2 \\ 3 \end{pmatrix} = \begin{pmatrix} 1 \\ 0 \\ -1 \end{pmatrix}, \quad T\begin{pmatrix} 1 \\ 2 \end{pmatrix} = \begin{pmatrix} 0 \\ 1 \\ 1 \end{pmatrix}. \]
    1. Find the matrix representation of \( T \), i.e. find the matrix \( A \) such that \( T(X) = AX \).
    2. Is \( T \) onto/surjective, i.e. for any \( Y \), can you find (its pre-image) \( X \) such that \( T(X) = Y \)? Either prove it or find a vector \( Y \) such that it does not have a pre-image.
    3. Is \( T \) one-to-one/injective, i.e. does \( T(X_1) = T(X_2) \) imply \( X_1 = X_2 \)? Either prove it or find two vectors \( X_1 \) and \( X_2 \) such that \( T(X_1) = T(X_2) \) but \( X_1 \ne X_2 \).

    (a)

    \[ \begin{pmatrix} a & b \\ c & d \\ e & f \end{pmatrix} \begin{pmatrix} 2 \\ 3 \end{pmatrix} = \begin{pmatrix} 1 \\ 0 \\ -1 \end{pmatrix}, \quad \begin{pmatrix} a & b \\ c & d \\ e & f \end{pmatrix} \begin{pmatrix} 1 \\ 2 \end{pmatrix} = \begin{pmatrix} 0 \\ 1 \\ 1 \end{pmatrix} \] \[ \begin{array}{lll} 2a + 3b = 1 & 2c + 3d = 0 & 2e + 3f = -1 \\ a + 2b = 0 & c + 2d = 1 & e + 2f = 1 \end{array} \] \[ \Rightarrow \quad \begin{array}{lll} b = -1 & d = 2 & f = 3 \\ a = 2 & c = -3 & e = -5 \end{array} \] \[ A = \begin{pmatrix} 2 & -1 \\ -3 & 2 \\ -5 & 3 \end{pmatrix} \]

    [Check

    \[ \begin{pmatrix} 2 & -1 \\ -3 & 2 \\ -5 & 3 \end{pmatrix} \begin{pmatrix} 2 \\ 3 \end{pmatrix} = \begin{pmatrix} 1 \\ 0 \\ -1 \end{pmatrix}, \quad \begin{pmatrix} 2 & -1 \\ -3 & 2 \\ -5 & 3 \end{pmatrix} \begin{pmatrix} 1 \\ 2 \end{pmatrix} = \begin{pmatrix} 0 \\ 1 \\ 1 \end{pmatrix} \]

    ]

(b)

\[ \left[\begin{array}{cc|c} 2 & -1 & a \\ -3 & 2 & b \\ -5 & 3 & c \end{array}\right] \rightarrow \left[\begin{array}{cc|c} 1 & -\frac{1}{2} & \frac{a}{2} \\ -3 & 2 & b \\ -5 & 3 & c \end{array}\right] \rightarrow \left[\begin{array}{cc|c} 1 & -\frac{1}{2} & \frac{a}{2} \\ 0 & \frac{1}{2} & \frac{3a}{2} + b \\ 0 & \frac{1}{2} & \frac{5a}{2} + c \end{array}\right] \rightarrow \left[\begin{array}{cc|c} 1 & -\frac{1}{2} & \frac{a}{2} \\ 0 & \frac{1}{2} & \frac{3a}{2} + b \\ 0 & 0 & a + c - b \end{array}\right] \]

We need \( a + c - b = 0 \). Choose for example \( \begin{pmatrix} 0 \\ 0 \\ 1 \end{pmatrix} \) No pre-image

\( T \) is not onto

(c) \( T \) is one-to-one as there is no free variable.