Matrix Inverses and Subspaces of $$\\mathbb{R}^n$$

Criteria and Formulas for Matrix Invertibility

  • Recall of Invertibility for 2x2 Matrices:     * For a matrix A=(aamp;b camp;d)A = \begin{pmatrix} a & b \ c & d \end{pmatrix}, the matrix is invertible if and only if the determinant is non-zero.     * Determinant Formula: det(A)=adbc0\det(A) = ad - bc \neq 0.

  • Fact: Calculation of the Inverse for a 2x2 Matrix:     * If A=(aamp;b camp;d)A = \begin{pmatrix} a & b \ c & d \end{pmatrix} is invertible, then the inverse matrix A1A^{-1} is calculated as:     * A1=1adbc(damp;b camp;a)A^{-1} = \frac{1}{ad - bc} \begin{pmatrix} d & -b \ -c & a \end{pmatrix}.

  • Example Case Study:     * Let A=(1amp;2 3amp;4)A = \begin{pmatrix} 1 & 2 \ 3 & 4 \end{pmatrix}.     * First, calculate the determinant: det(A)=(1×4)(2×3)=46=2\det(A) = (1 \times 4) - (2 \times 3) = 4 - 6 = -2.     * Since det(A)=20\det(A) = -2 \neq 0, matrix AA is invertible.     * Applying the formula: A1=12(4amp;2 3amp;1)=(2amp;1 32amp;12)A^{-1} = \frac{1}{-2} \begin{pmatrix} 4 & -2 \ -3 & 1 \end{pmatrix} = \begin{pmatrix} -2 & 1 \ \frac{3}{2} & -\frac{1}{2} \end{pmatrix}.

  • Verification (Check):     * Multiplying AA by its inverse: (1amp;2 3amp;4)(2amp;1 32amp;12)=(2+3amp;11 6+6amp;32)=(1amp;0 0amp;1)\begin{pmatrix} 1 & 2 \ 3 & 4 \end{pmatrix} \begin{pmatrix} -2 & 1 \ \frac{3}{2} & -\frac{1}{2} \end{pmatrix} = \begin{pmatrix} -2 + 3 & 1 - 1 \ -6 + 6 & 3 - 2 \end{pmatrix} = \begin{pmatrix} 1 & 0 \ 0 & 1 \end{pmatrix}.

Properties and Computation of Matrix Inverses

  • Fact on Matrice Multiplicity:     * For any n×nn \times n matrices AA and BB, the following statement holds true: AB=In    BA=InAB = I_n \iff BA = I_n.

  • Inverse of a Product:     * The inverse of a product of two invertible matrices is the product of their inverses in reverse order:     * (AB)1=B1A1(AB)^{-1} = B^{-1} A^{-1}.

  • Computing the Inverse using Gauss-Jordan Elimination:     * We compute A1A^{-1} by executing the Gauss-Jordan algorithm on matrix AA and the identity matrix InI_n simultaneously.     * This is represented as performing row operations on the augmented matrix [AIn][A | I_n] until it reaches the form [InA1][I_n | A^{-1}].

  • Step-by-Step Example of Inversion:     * Given matrix A=(1amp;1amp;1 0amp;1amp;1 1amp;1amp;1)A = \begin{pmatrix} 1 & 1 & 1 \ 0 & 1 & 1 \ -1 & 1 & -1 \end{pmatrix}.     * Augmented Matrix: (1amp;1amp;1amp;amp;1amp;0amp;0 0amp;1amp;1amp;amp;0amp;1amp;0 1amp;1amp;1amp;amp;0amp;0amp;1)\begin{pmatrix} 1 & 1 & 1 & | & 1 & 0 & 0 \ 0 & 1 & 1 & | & 0 & 1 & 0 \ -1 & 1 & -1 & | & 0 & 0 & 1 \end{pmatrix}.     * Step 1: Add Row 1 to Row 3 (R3+R1R3R_3 + R_1 \rightarrow R_3):         * (1amp;1amp;1amp;amp;1amp;0amp;0 0amp;1amp;1amp;amp;0amp;1amp;0 0amp;2amp;0amp;amp;1amp;0amp;1)\begin{pmatrix} 1 & 1 & 1 & | & 1 & 0 & 0 \ 0 & 1 & 1 & | & 0 & 1 & 0 \ 0 & 2 & 0 & | & 1 & 0 & 1 \end{pmatrix}.     * Step 2: Subtract 2×2 \times, Row 2 from Row 3 (R32R2R3R_3 - 2R_2 \rightarrow R_3):         * (1amp;1amp;1amp;amp;1amp;0amp;0 0amp;1amp;1amp;amp;0amp;1amp;0 0amp;0amp;2amp;amp;1amp;2amp;1)\begin{pmatrix} 1 & 1 & 1 & | & 1 & 0 & 0 \ 0 & 1 & 1 & | & 0 & 1 & 0 \ 0 & 0 & -2 & | & 1 & -2 & 1 \end{pmatrix}.     * Step 3: Multiply Row 3 by 12-\frac{1}{2} (R3×(12)R3R_3 \times (-\frac{1}{2}) \rightarrow R_3):         * (1amp;1amp;1amp;amp;1amp;0amp;0 0amp;1amp;1amp;amp;0amp;1amp;0 0amp;0amp;1amp;amp;12amp;1amp;12)\begin{pmatrix} 1 & 1 & 1 & | & 1 & 0 & 0 \ 0 & 1 & 1 & | & 0 & 1 & 0 \ 0 & 0 & 1 & | & -\frac{1}{2} & 1 & -\frac{1}{2} \end{pmatrix}.     * Step 4: Subtract Row 3 from Row 2 (R2R3R2R_2 - R_3 \rightarrow R_2) and subtract Row 3 from Row 1 (R1R3R1R_1 - R_3 \rightarrow R_1):         * (1amp;1amp;0amp;amp;32amp;1amp;12 0amp;1amp;0amp;amp;12amp;0amp;12 0amp;0amp;1amp;amp;12amp;1amp;12)\begin{pmatrix} 1 & 1 & 0 & | & \frac{3}{2} & -1 & \frac{1}{2} \ 0 & 1 & 0 & | & \frac{1}{2} & 0 & \frac{1}{2} \ 0 & 0 & 1 & | & -\frac{1}{2} & 1 & -\frac{1}{2} \end{pmatrix}.     * Step 5: Subtract Row 2 from Row 1 (R1R2R1R_1 - R_2 \rightarrow R_1):         * (1amp;0amp;0amp;amp;1amp;1amp;0 0amp;1amp;0amp;amp;12amp;0amp;12 0amp;0amp;1amp;amp;12amp;1amp;12)\begin{pmatrix} 1 & 0 & 0 & | & 1 & -1 & 0 \ 0 & 1 & 0 & | & \frac{1}{2} & 0 & \frac{1}{2} \ 0 & 0 & 1 & | & -\frac{1}{2} & 1 & -\frac{1}{2} \end{pmatrix}.     * Result: The inverse matrix is A1=(1amp;1amp;0 12amp;0amp;12 12amp;1amp;12)A^{-1} = \begin{pmatrix} 1 & -1 & 0 \ \frac{1}{2} & 0 & \frac{1}{2} \ -\frac{1}{2} & 1 & -\frac{1}{2} \end{pmatrix}.

  • Final Check:     * Multiplying AA and the resulting A1A^{-1} yields (1amp;0amp;0 0amp;1amp;0 0amp;0amp;1)\begin{pmatrix} 1 & 0 & 0 \ 0 & 1 & 0 \ 0 & 0 & 1 \end{pmatrix}.

Subspaces of Rn\mathbb{R}^n and the Concept of Images

  • Definition of the Image of a Function:     * For a function f:XYf: X \rightarrow Y, the image, denoted as Im(f)Im(f), is defined as the set of all outputs resulting from inputs in the domain XX.     * Im(f)=f(x):xXIm(f) = { f(x) : x \in X }.     * Alternatively expressed as: Im(f)=yY:y=f(x) for some xXIm(f) = { y \in Y : y = f(x) \text{ for some } x \in X }.

  • Remark on Terminology:     * The image of a function is also commonly referred to as the range of ff.

  • The Image of a Matrix:     * The image of an n×mn \times m matrix AA is defined as the image of the linear transformation TT defined by that matrix.     * Im(A)=Im(T)Im(A) = Im(T).     * Given an n×mn \times m matrix A=(v1amp;v2amp;amp;vm)A = \begin{pmatrix} \vec{v}_1 & \vec{v}_2 & \dots & \vec{v}_m \end{pmatrix}, where vi\vec{v}_i are the columns and xRm\vec{x} \in \mathbb{R}^m:     * Im(A)=Ax:xRnIm(A) = { A\vec{x} : \vec{x} \in \mathbb{R}^n }.     * This is the set of all linear combinations of the column vectors: Im(A)=x1v1++xmvm:x1,,xmRIm(A) = { x_1 \vec{v}_1 + \dots + x_m \vec{v}_m : x_1, \dots, x_m \in \mathbb{R} }.

  • Definition of Span:     * The set of all linear combinations of vectors v1,,vm\vec{v}_1, \dots, \vec{v}_m is called the span of these vectors.

Questions & Discussion

  • Question regarding Projections:     * Q: What is the image of the projection projL:R2R2proj_L: \mathbb{R}^2 \rightarrow \mathbb{R}^2 onto the line LL?     * A: The image is the line LL itself!

  • Example Analysis of Matrix Images:     * Consider matrix A=(1amp;0amp;1 0amp;1amp;0)A = \begin{pmatrix} 1 & 0 & 1 \ 0 & 1 & 0 \end{pmatrix}.     * Im(A)=x1(1 0)+x2(0 1)+x3(1 0):x1,x2,x3RIm(A) = { x_1 \begin{pmatrix} 1 \ 0 \end{pmatrix} + x_2 \begin{pmatrix} 0 \ 1 \end{pmatrix} + x_3 \begin{pmatrix} 1 \ 0 \end{pmatrix} : x_1, x_2, x_3 \in \mathbb{R} }.     * This simplifies to (x1+x3 x2)\begin{pmatrix} x_1 + x_3 \ x_2 \end{pmatrix}.     * In the plane, this represents the entirety of the x1x2x_1-x_2 plane (the entirety of R2\mathbb{R}^2) because any vector (a b)\begin{pmatrix} a \ b \end{pmatrix} can be achieved by choosing appropriate weights for the columns.

  • Problem-Solving - Membership in the Image:     * Q: Is the vector (1 2)\begin{pmatrix} 1 \ 2 \end{pmatrix} in the image of the matrix A=(0amp;1 2amp;3)A = \begin{pmatrix} 0 & 1 \ 2 & 3 \end{pmatrix}?     * A: To determine this, we check if there exists a vector x=(x1 x2)\vec{x} = \begin{pmatrix} x_1 \ x_2 \end{pmatrix} such that Ax=bA\vec{x} = \vec{b}, i.e., (0amp;1 2amp;3)(x1 x2)=(1 2)\begin{pmatrix} 0 & 1 \ 2 & 3 \end{pmatrix} \begin{pmatrix} x_1 \ x_2 \end{pmatrix} = \begin{pmatrix} 1 \ 2 \end{pmatrix}.     * This yields the linear system:         1. 0x1+1x2=1    x2=10 \cdot x_1 + 1 \cdot x_2 = 1 \implies x_2 = 1.         2. 2x1+3x2=22 \cdot x_1 + 3 \cdot x_2 = 2.     * Substituting x2=1x_2 = 1 into the second equation: 2x1+3(1)=2    2x1=1    x1=122x_1 + 3(1) = 2 \implies 2x_1 = -1 \implies x_1 = -\frac{1}{2}.     * Conclusion: YES, the vector is in the image because it is the image of the vector x=(1/2 1)\vec{x} = \begin{pmatrix} -1/2 \ 1 \end{pmatrix}.