The Matrix Equation Ax = b - Comprehensive Study Notes

Definition of the Matrix-Vector Product

  • Formal Definition: If AA is an m×nm \times n matrix, with columns a1,a2,…,an\mathbf{a}_1, \mathbf{a}_2, \dots, \mathbf{a}_n, and if x\mathbf{x} is in Rn\mathbb{R}^n, then the product of AA and x\mathbf{x}, denoted by AxA\mathbf{x}, is the linear combination of the columns of AA using the corresponding entries in x\mathbf{x} as weights.

  • Mathematical Expression:     Ax=[a1 a2 … an](x1x2⋮xn)=x1a1+x2a2+⋯+xnanA\mathbf{x} = [\mathbf{a}_1 \ \mathbf{a}_2 \ \dots \ \mathbf{a}_n] \begin{pmatrix} x_1 \\ x_2 \\ \vdots \\ x_n \end{pmatrix} = x_1\mathbf{a}_1 + x_2\mathbf{a}_2 + \dots + x_n\mathbf{a}_n

  • Existence Constraint: The product AxA\mathbf{x} is defined only if the number of columns of the matrix AA is equal to the number of entries in the vector x\mathbf{x}.

Conversion Between Linear Combinations and Matrix-Vector Products

  • Example 1: Writing a linear combination as a matrix-vector product.
    • Problem: For vectors v1,v2,v3\mathbf{v}_1, \mathbf{v}_2, \mathbf{v}_3, write the linear combination 4v1−4v2+7v34\mathbf{v}_1 - 4\mathbf{v}_2 + 7\mathbf{v}_3 as a matrix times a vector.
    • Solution: Place the vectors v1,v2,v3\mathbf{v}_1, \mathbf{v}_2, \mathbf{v}_3 into the columns of a matrix AA and place the weights 4,−4,4, -4, and 77 into a vector x\mathbf{x}.
    • Result: [v1 v2 v3](4−47)[\mathbf{v}_1 \ \mathbf{v}_2 \ \mathbf{v}_3] \begin{pmatrix} 4 \\ -4 \\ 7 \end{pmatrix}

Equivalence of Systems, Vector Equations, and Matrix Equations

  • System Transformation: A system of linear equations can be represented as a vector equation involving a linear combination of vectors.

    • Example: The system:         {x1+2x2−x3=4−5x2+3x3=1\begin{cases} x_1 + 2x_2 - x_3 = 4 \\ -5x_2 + 3x_3 = 1 \end{cases}
    • Is equivalent to the vector equation:         x1(10)+x2(2−5)+x3(−13)=(41)x_1 \begin{pmatrix} 1 \\ 0 \end{pmatrix} + x_2 \begin{pmatrix} 2 \\ -5 \end{pmatrix} + x_3 \begin{pmatrix} -1 \\ 3 \end{pmatrix} = \begin{pmatrix} 4 \\ 1 \end{pmatrix}
    • Which is equivalent to the matrix equation (Ax=bA\mathbf{x} = \mathbf{b}):         (12−10−53)(x1x2x3)=(41)\begin{pmatrix} 1 & 2 & -1 \\ 0 & -5 & 3 \end{pmatrix} \begin{pmatrix} x_1 \\ x_2 \\ x_3 \end{pmatrix} = \begin{pmatrix} 4 \\ 1 \end{pmatrix}
  • Theorem 3: If AA is an m×nm \times n matrix, with columns a1,…,an\mathbf{a}_1, \dots, \mathbf{a}_n, and if b\mathbf{b} is in Rm\mathbb{R}^m, the matrix equation Ax=bA\mathbf{x} = \mathbf{b} has the same solution set as the vector equation:     x1a1+x2a2+⋯+xnan=bx_1\mathbf{a}_1 + x_2\mathbf{a}_2 + \dots + x_n\mathbf{a}_n = \mathbf{b}     which, in turn, has the same solution set as the system of linear equations whose augmented matrix is:     [a1 a2 … an b][\mathbf{a}_1 \ \mathbf{a}_2 \ \dots \ \mathbf{a}_n \ \mathbf{b}]

Existence of Solutions and Theorem 4

  • Fundamental Criterion: 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.

  • Theorem 4 (Equivalence Theorem): Let AA be an m×nm \times n matrix. The following four statements are logically equivalent (for a specific AA, they are either all true or all false):

    • (a) For each b\mathbf{b} in Rm\mathbb{R}^m, the equation Ax=bA\mathbf{x} = \mathbf{b} has a solution.
    • (b) Each b\mathbf{b} in Rm\mathbb{R}^m is a linear combination of the columns of AA.
    • (c) The columns of AA span Rm\mathbb{R}^m.
    • (d) AA has a pivot position in every row.

Proof of Theorem 4

  • Strategy: Since (a), (b), and (c) are logically equivalent by definition, it suffices to show that (a) and (d) are either both true or both false for an arbitrary matrix AA.
  • Process:
    • Let UU be an echelon form of AA.
    • For any b\mathbf{b} in Rm\mathbb{R}^m, the augmented matrix [A b][A \ \mathbf{b}] can be row reduced to [U d][U \ \mathbf{d}] for some vector d\mathbf{d}.
  • Case 1 (d is true): If statement (d) is true, then each row of UU contains a pivot position. Consequently, there can be no pivot in the augmented column of the reduced matrix. Thus, Ax=bA\mathbf{x} = \mathbf{b} has a solution for any b\mathbf{b}, making (a) true.
  • Case 2 (d is false): If (d) is false, the last row of UU is all zeros. If we choose a vector d\mathbf{d} where the last entry is 11, then the system [U d][U \ \mathbf{d}] is inconsistent. Because row operations are reversible, this can be transformed back to an original system [A b][A \ \mathbf{b}] which is also inconsistent. Therefore, statement (a) is false.

Computational Rules for Ax

  • Example 2 (Definition Method): Compute AxA\mathbf{x}, where:     A=(234−15−3),x=(1−21)A = \begin{pmatrix} 2 & 3 & 4 \\ -1 & 5 & -3 \end{pmatrix}, \mathbf{x} = \begin{pmatrix} 1 \\ -2 \\ 1 \end{pmatrix}     Using the definition:     Ax=1(2−1)−2(35)+1(4−3)=(2−6+4−1−10−3)=(0−14)A\mathbf{x} = 1 \begin{pmatrix} 2 \\ -1 \end{pmatrix} - 2 \begin{pmatrix} 3 \\ 5 \end{pmatrix} + 1 \begin{pmatrix} 4 \\ -3 \end{pmatrix} = \begin{pmatrix} 2 - 6 + 4 \\ -1 - 10 - 3 \end{pmatrix} = \begin{pmatrix} 0 \\ -14 \end{pmatrix}

  • Row-Vector Rule for Computing Ax:

    • The first entry in AxA\mathbf{x} is the sum of products (a dot product) using the first row of AA and the entries in x\mathbf{x}.
    • Specifically, the entry in row ii of the resulting vector AxA\mathbf{x} is calculated by multiplying the entries in the ii-th row of AA by the corresponding entries in x\mathbf{x} and summing the results.
    • Calculation for Example 2 using the Row-Vector Rule:
      • Entry 1: (2×1)+(3×−2)+(4×1)=2−6+4=0(2 \times 1) + (3 \times -2) + (4 \times 1) = 2 - 6 + 4 = 0
      • Entry 2: (−1×1)+(5×−2)+(−3×1)=−1−10−3=−14(-1 \times 1) + (5 \times -2) + (-3 \times 1) = -1 - 10 - 3 = -14

The Identity Matrix

  • Definition: The matrix with 11s on the main diagonal (from top-left to bottom-right) and 00s elsewhere is called the identity matrix and is denoted by II.
  • Notation: If the size needs to be specified, it is written as InI_n for an n×nn \times n identity matrix.
  • Property: For any x\mathbf{x} in Rn\mathbb{R}^n, Ix=xI\mathbf{x} = \mathbf{x}.
  • Example (3×33 \times 3 Identity Matrix):     I=(100010001)I = \begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{pmatrix}

Properties of the Matrix-Vector Product Ax (Theorem 5)

  • Theorem 5: Let AA be an m×nm \times n matrix, let u\mathbf{u} and v\mathbf{v} be vectors in Rn\mathbb{R}^n, and let cc be a scalar. Then:

    • (a) A(u+v)=Au+AvA(\mathbf{u} + \mathbf{v}) = A\mathbf{u} + A\mathbf{v}
    • (b) A(cu)=c(Au)A(c\mathbf{u}) = c(A\mathbf{u})
  • Proof Logic:

    • For simplicity, assume n=3n=3 and the columns of AA are a1,a2,a3\mathbf{a}_1, \mathbf{a}_2, \mathbf{a}_3. Let uiu_i and viv_i be the entries of u\mathbf{u} and v\mathbf{v}.
    • Proving (a): Compute A(u+v)A(\mathbf{u} + \mathbf{v}) as a linear combination of columns:         (u1+v1)a1+(u2+v2)a2+(u3+v3)a3(u_1 + v_1)\mathbf{a}_1 + (u_2 + v_2)\mathbf{a}_2 + (u_3 + v_3)\mathbf{a}_3         By regrouping terms:         (u1a1+u2a2+u3a3)+(v1a1+v2a2+v3a3)=Au+Av(u_1\mathbf{a}_1 + u_2\mathbf{a}_2 + u_3\mathbf{a}_3) + (v_1\mathbf{a}_1 + v_2\mathbf{a}_2 + v_3\mathbf{a}_3) = A\mathbf{u} + A\mathbf{v}
    • Proving (b): Compute A(cu)A(c\mathbf{u}) as a linear combination using entries cuicu_i as weights:         (cu1)a1+(cu2)a2+(cu3)a3=c(u1a1+u2a2+u3a3)=c(Au)(cu_1)\mathbf{a}_1 + (cu_2)\mathbf{a}_2 + (cu_3)\mathbf{a}_3 = c(u_1\mathbf{a}_1 + u_2\mathbf{a}_2 + u_3\mathbf{a}_3) = c(A\mathbf{u})

Copyright and Dissemination Notice

  • This material is from "Linear Algebra and Its Applications" Sixth Edition by Pearson Education, Inc.
  • This work is protected by United States copyright laws.
  • The material is provided for instructor use in teaching and assessing student learning; sale or dissemination (including on the web) is not permitted.