The Timpson Lyceum seal

The Timpson Lyceum · Linear Algebra (2026)

1.4 Exercises

Problems with worked solutions · 20 points · 4 extra credit

The Matrix Equation Ax = b

  1. 1. (2 pts) Compute AxA\mathbf{x} for A=[1−23004]A = \begin{bmatrix} 1 & -2 \\ 3 & 0 \\ 0 & 4 \end{bmatrix} and x=[21]\mathbf{x} = \begin{bmatrix} 2 \\ 1 \end{bmatrix}, writing AxA\mathbf{x} as a linear combination of the columns of AA.

    Solution

    1. Ax=2[130]+1[−204]=[2−26+00+4]=[064].A\mathbf{x} = 2\begin{bmatrix} 1 \\ 3 \\ 0 \end{bmatrix} + 1\begin{bmatrix} -2 \\ 0 \\ 4 \end{bmatrix} = \begin{bmatrix} 2 - 2 \\ 6 + 0 \\ 0 + 4 \end{bmatrix} = \begin{bmatrix} 0 \\ 6 \\ 4 \end{bmatrix}.

  2. 2. (3 pts) Solve the matrix equation Ax=bA\mathbf{x} = \mathbf{b} for A=[1−22−3]A = \begin{bmatrix} 1 & -2 \\ 2 & -3 \end{bmatrix}, b=[14]\mathbf{b} = \begin{bmatrix} 1 \\ 4 \end{bmatrix}. Also write the equation in the form of a vector equation.

    Solution

    2. The system Ax=bA\mathbf{x} = \mathbf{b} is x1−2x2=12x1−3x2=4.\begin{aligned} x_1 - 2x_2 &= 1 \\ 2x_1 - 3x_2 &= 4. \end{aligned} Applying R2−2R1R_2 - 2R_1: x2=2x_2 = 2, then x1=1+2(2)=5x_1 = 1 + 2(2) = 5. So x=[52]\mathbf{x} = \begin{bmatrix} 5 \\ 2 \end{bmatrix}. As a vector equation:

    x1[12]+x2[−2−3]=[14].x_1\begin{bmatrix} 1 \\ 2 \end{bmatrix} + x_2\begin{bmatrix} -2 \\ -3 \end{bmatrix} = \begin{bmatrix} 1 \\ 4 \end{bmatrix}.

  3. 3. (3 pts) Do the columns of A=[13−125114−4]A = \begin{bmatrix} 1 & 3 & -1 \\ 2 & 5 & 1 \\ 1 & 4 & -4 \end{bmatrix} span R3\mathbb{R}^3? Justify using pivot positions.

    Solution

    3. Row reduce AA:

    [13−125114−4]→R3−R1R2−2R1[13−10−1301−3]→R3+R2[13−10−13000].\begin{bmatrix} 1 & 3 & -1 \\ 2 & 5 & 1 \\ 1 & 4 & -4 \end{bmatrix} \xrightarrow[R_3 - R_1]{R_2 - 2R_1} \begin{bmatrix} 1 & 3 & -1 \\ 0 & -1 & 3 \\ 0 & 1 & -3 \end{bmatrix} \xrightarrow{R_3 + R_2} \begin{bmatrix} 1 & 3 & -1 \\ 0 & -1 & 3 \\ 0 & 0 & 0 \end{bmatrix}.

    There are only two pivots (rows 1 and 2); row 3 has no pivot. Since AA does not have a pivot in every row, its columns do not span R3\mathbb{R}^3 (they span a plane).

  4. 4. (3 pts) Does Ax=bA\mathbf{x} = \mathbf{b} have a solution for every b\mathbf{b} in R3\mathbb{R}^3, where A=[101011113]A = \begin{bmatrix} 1 & 0 & 1 \\ 0 & 1 & 1 \\ 1 & 1 & 3 \end{bmatrix}? Justify using pivot positions.

    Solution

    4. Row reduce AA:

    [101011113]→R3−R1[101011012]→R3−R2[101011001].\begin{bmatrix} 1 & 0 & 1 \\ 0 & 1 & 1 \\ 1 & 1 & 3 \end{bmatrix} \xrightarrow{R_3 - R_1} \begin{bmatrix} 1 & 0 & 1 \\ 0 & 1 & 1 \\ 0 & 1 & 2 \end{bmatrix} \xrightarrow{R_3 - R_2} \begin{bmatrix} 1 & 0 & 1 \\ 0 & 1 & 1 \\ 0 & 0 & 1 \end{bmatrix}.

    There is a pivot in each of the three rows, so by the equivalent conditions of Theorem 4 the columns of AA span R3\mathbb{R}^3 and Ax=bA\mathbf{x} = \mathbf{b} has a solution for every b∈R3\mathbf{b} \in \mathbb{R}^3.

  5. 5. (3 pts) State whether each of the following is true or false, and justify each answer.

    (a) If AA is m×nm \times n and Ax=bA\mathbf{x} = \mathbf{b} is consistent for every b\mathbf{b} in Rm\mathbb{R}^m, then AA has a pivot position in every row.

    (b) A 3×43 \times 4 matrix can have columns that span R3\mathbb{R}^3.

    (c) The product AxA\mathbf{x} is defined only when the number of columns of AA equals the number of entries in x\mathbf{x}.

    Solution

    5.

    (a) True. This is one of the equivalent statements of Theorem 4: Ax=bA\mathbf{x}=\mathbf{b} is consistent for all b\mathbf{b} iff the columns span Rm\mathbb{R}^m iff AA has a pivot in every row.

    (b) True. A 3×43 \times 4 matrix can have three pivots (one per row), e.g. AA in Problem 4 padded with a fourth column; three pivots means the columns span R3\mathbb{R}^3.

    (c) True. AxA\mathbf{x} is defined as x1a1+⋯+xnanx_1\mathbf{a}_1 + \cdots + x_n\mathbf{a}_n, which requires exactly as many entries in x\mathbf{x} as columns of AA.

  6. 6. (3 pts) Suppose AA is a matrix with Au=[12]A\mathbf{u} = \begin{bmatrix} 1 \\ 2 \end{bmatrix} and Av=[3−1]A\mathbf{v} = \begin{bmatrix} 3 \\ -1 \end{bmatrix}. Without knowing AA, compute A(2u−3v)A(2\mathbf{u} - 3\mathbf{v}), and state which properties of the matrix–vector product you used.

    Solution

    6. Using A(cu+dv)=cAu+dAvA(c\mathbf{u} + d\mathbf{v}) = cA\mathbf{u} + dA\mathbf{v} (linearity of the matrix–vector product):

    A(2u−3v)=2Au−3Av=2[12]−3[3−1]=[24]−[9−3]=[−77].A(2\mathbf{u} - 3\mathbf{v}) = 2A\mathbf{u} - 3A\mathbf{v} = 2\begin{bmatrix} 1 \\ 2 \end{bmatrix} - 3\begin{bmatrix} 3 \\ -1 \end{bmatrix} = \begin{bmatrix} 2 \\ 4 \end{bmatrix} - \begin{bmatrix} 9 \\ -3 \end{bmatrix} = \begin{bmatrix} -7 \\ 7 \end{bmatrix}.

    The properties used are A(u+v)=Au+AvA(\mathbf{u}+\mathbf{v}) = A\mathbf{u} + A\mathbf{v} and A(cu)=c(Au)A(c\mathbf{u}) = c(A\mathbf{u}).

  7. 7. (3 pts) Let AA be an m×nm \times n matrix, u,v\mathbf{u}, \mathbf{v} vectors in Rn\mathbb{R}^n, and cc a scalar. Prove that A(u+v)=Au+AvA(\mathbf{u} + \mathbf{v}) = A\mathbf{u} + A\mathbf{v} and A(cu)=c(Au)A(c\mathbf{u}) = c(A\mathbf{u}), using the definition of AxA\mathbf{x} as a linear combination of the columns of AA.

    Solution

    7. Let the columns of AA be a1,…,an\mathbf{a}_1, \dots, \mathbf{a}_n, and write u=(u1,…,un)\mathbf{u} = (u_1, \dots, u_n), v=(v1,…,vn)\mathbf{v} = (v_1, \dots, v_n). By definition Ax=x1a1+⋯+xnanA\mathbf{x} = x_1\mathbf{a}_1 + \cdots + x_n\mathbf{a}_n. Then

    A(u+v)=∑j=1n(uj+vj)aj=∑j=1nujaj+∑j=1nvjaj=Au+Av,A(\mathbf{u}+\mathbf{v}) = \sum_{j=1}^n (u_j + v_j)\mathbf{a}_j = \sum_{j=1}^n u_j\mathbf{a}_j + \sum_{j=1}^n v_j\mathbf{a}_j = A\mathbf{u} + A\mathbf{v},

    using distributivity of scalar multiplication over vector addition. Similarly

    A(cu)=∑j=1n(cuj)aj=c∑j=1nujaj=c(Au).A(c\mathbf{u}) = \sum_{j=1}^n (cu_j)\mathbf{a}_j = c\sum_{j=1}^n u_j\mathbf{a}_j = c(A\mathbf{u}).

    ■\blacksquare

  8. 8. (4 pts ••) Prove that the equation Ax=bA\mathbf{x} = \mathbf{b} has a solution if and only if b\mathbf{b} is a linear combination of the columns of AA.

    Solution

    8. Let a1,…,an\mathbf{a}_1, \dots, \mathbf{a}_n be the columns of AA. By definition, for any x=(x1,…,xn)\mathbf{x} = (x_1, \dots, x_n),

    Ax=x1a1+⋯+xnan.A\mathbf{x} = x_1\mathbf{a}_1 + \cdots + x_n\mathbf{a}_n.

    (⇒\Rightarrow) If Ax=bA\mathbf{x} = \mathbf{b} has a solution x\mathbf{x}, then b=x1a1+⋯+xnan\mathbf{b} = x_1\mathbf{a}_1 + \cdots + x_n\mathbf{a}_n is a linear combination of the columns.

    (⇐\Leftarrow) Conversely, if b=c1a1+⋯+cnan\mathbf{b} = c_1\mathbf{a}_1 + \cdots + c_n\mathbf{a}_n for some scalars cjc_j, then x=(c1,…,cn)\mathbf{x} = (c_1, \dots, c_n) satisfies Ax=bA\mathbf{x} = \mathbf{b}, so the equation is solvable.

    Hence Ax=bA\mathbf{x} = \mathbf{b} has a solution if and only if b\mathbf{b} is a linear combination of the columns of AA. ■\blacksquare