1.6 More on Linear Systems and Invertible Matrices
Imron Rosyadi
Linear Algebra in ECE
1.6 More on Linear Systems and Invertible Matrices
Imron Rosyadi
Leveraging matrix inverses to efficiently solve linear systems and deepen our understanding of system properties.
Number of Solutions of a Linear System
THEOREM 1.6.1 A system of linear equations has zero, one, or infinitely many solutions. There are no other possibilities.
Proof Idea: If \(A\mathbf{x} = \mathbf{b}\) has more than one solution (\(\mathbf{x}_1\) and \(\mathbf{x}_2\)), then their difference \(\mathbf{x}_0 = \mathbf{x}_1 - \mathbf{x}_2 \ne \mathbf{0}\) is a non-trivial solution to the associated homogeneous system \(A\mathbf{x} = \mathbf{0}\).
Then, for any scalar \(k\), \(\mathbf{x}_1 + k\mathbf{x}_0\) is also a solution to \(A\mathbf{x} = \mathbf{b}\). \[
A(\mathbf{x}_{1}+k\mathbf{x}_{0})=A\mathbf{x}_{1}+k(A\mathbf{x}_{0}) = \mathbf{b}+k\mathbf{0}=\mathbf{b}
\] Since there are infinitely many choices for \(k\), there are infinitely many solutions.
Number of Solutions of a Linear System
Visualizing Solution Spaces
graph TD
A[Linear System Ax=b] --> B{Number of Solutions?};
B --> C{Zero};
B --> D{One};
B --> E{Infinitely Many};
This fundamental theorem applies to any linear system, regardless of its size or the properties of its coefficient matrix.
Solving Linear Systems by Matrix Inversion
THEOREM 1.6.2 If \(A\) is an invertible \(n \times n\) matrix, then for each \(n \times 1\) matrix \(\mathbf{b}\), the system of equations \(A\mathbf{x} = \mathbf{b}\) has exactly one solution, namely, \(\mathbf{x} = A^{-1}\mathbf{b}\).
Proof Idea:
Existence:
Verify that \(\mathbf{x} = A^{-1}\mathbf{b}\) is indeed a solution: \(A(A^{-1}\mathbf{b}) = (AA^{-1})\mathbf{b} = I\mathbf{b} = \mathbf{b}\).
Uniqueness:
Assume \(\mathbf{x}_0\) is any solution, so \(A\mathbf{x}_0 = \mathbf{b}\).
Multiply by \(A^{-1}\) from the left: \(A^{-1}(A\mathbf{x}_0) = A^{-1}\mathbf{b} \implies (A^{-1}A)\mathbf{x}_0 = A^{-1}\mathbf{b} \implies I\mathbf{x}_0 = A^{-1}\mathbf{b} \implies \mathbf{x}_0 = A^{-1}\mathbf{b}\).
This method provides a direct formula to find the solution.
Example 1: Solution of a Linear System Using \(A^{-1}\)
Consider the system: \[
\begin{array}{r}{x_{1} + 2x_{2} + 3x_{3} = 5}\\ {2x_{1} + 5x_{2} + 3x_{3} = 3}\\ {x_{1}\qquad +8x_{3} = 17} \end{array}
\] In matrix form \(A\mathbf{x} = \mathbf{b}\): \[
A = {\left[ \begin{array}{l l l}{1} & {2} & {3}\\ {2} & {5} & {3}\\ {1} & {0} & {8} \end{array} \right]},\quad \mathbf{x} = {\left[ \begin{array}{l}{x_{1}}\\ {x_{2}}\\ {x_{3}} \end{array} \right]},\quad \mathbf{b} = {\left[ \begin{array}{l}{5}\\ {3}\\ {17} \end{array} \right]}
\] From Example 4 of the preceding section, we know \(A^{-1}\): \[
A^{-1} = \left[ \begin{array}{rrr} - 40 & 16 & 9 \\ 13 & -5 & -3 \\ 5 & -2 & -1 \end{array} \right]
\] By Theorem 1.6.2, the solution is \(\mathbf{x} = A^{-1}\mathbf{b}\).
Example 1: Python Calculation of Solution
Let’s compute \(\mathbf{x} = A^{-1}\mathbf{b}\) using numpy.
The solution is \(x_1 = 1, x_2 = -1, x_3 = 2\).
This method is efficient when \(A^{-1}\) is already known.
Linear Systems with a Common Coefficient Matrix
Often, we need to solve sequences of systems: \[
A\mathbf{x} = \mathbf{b}_1,\quad A\mathbf{x} = \mathbf{b}_2,\quad \ldots ,\quad A\mathbf{x} = \mathbf{b}_k
\] all sharing the same square coefficient matrix \(A\).
If \(A\) is invertible, solutions are \(\mathbf{x}_j = A^{-1}\mathbf{b}_j\). This involves one inversion and \(k\) multiplications.
Efficient Approach (Gauss-Jordan combined): Form the partitioned matrix: \[
[A\mid \mathbf{b}_{1}\mid \mathbf{b}_{2}\mid \dots \mid \mathbf{b}_{k}]
\] Reduce this entire matrix to reduced row echelon form. The solutions \(\mathbf{x}_j\) will appear in the columns corresponding to \(\mathbf{b}_j\) on the right side once \(A\) is reduced to \(I\).
This method works even if \(A\) is not invertible (you’d still see the consistency conditions and solutions, if any).
Example 2: Python Verification of Combined Solution
Let’s use numpy.linalg.solve to confirm the solutions.
The computed solutions match the results from the combined Gauss-Jordan reduction.
Properties of Invertible Matrices
Conventionally, for a matrix \(B\) to be the inverse of \(A\), we need both \(AB=I\) and \(BA=I\).
THEOREM 1.6.3 Let \(A\) be a square matrix.
If \(B\) is a square matrix satisfying \(BA = I\), then \(B = A^{-1}\).
If \(B\) is a square matrix satisfying \(AB = I\), then \(B = A^{-1}\).
Significance: To show that \(B\) is the inverse of \(A\), you only need to verify one of the conditions (\(AB=I\) or \(BA=I\)). The other condition holds automatically for square matrices.
THEOREM 1.6.4: Extended Equivalent Statements
If \(A\) is an \(n \times n\) matrix, then the following are equivalent:
\(A\) is invertible.
\(A\mathbf{x} = \mathbf{0}\) has only the trivial solution.
The reduced row echelon form of \(A\) is \(I_{n}\).
\(A\) is expressible as a product of elementary matrices.
\(A\mathbf{x} = \mathbf{b}\) is consistent for every \(n \times 1\) matrix \(\mathbf{b}\).
\(A\mathbf{x} = \mathbf{b}\) has exactly one solution for every \(n \times 1\) matrix \(\mathbf{b}\).
Invertibility of Product Matrices
THEOREM 1.6.5 Let \(A\) and \(B\) be square matrices of the same size. If \(AB\) is invertible, then \(A\) and \(B\) must also be invertible.
ECE Relevance: This theorem is important when considering cascading systems or transformations. If you have two operations represented by matrices \(A\) and \(B\) performing sequentially (\(AB\)), and their combined effect is reversible (invertible), then each individual operation (\(A\) and \(B\)) must also be reversible. This applies to signal processing chains, control system components, or multi-stage filters.
The Fundamental Problem: Consistency Conditions
Problem: Let \(A\) be a fixed \(m \times n\) matrix. Find all \(m \times 1\) matrices \(\mathbf{b}\) such that the system of equations \(A\mathbf{x} = \mathbf{b}\) is consistent.
Case 1: \(A\) is invertible (\(n \times n\) square matrix)
By Theorem 1.6.2 and 1.6.4, \(A\mathbf{x}=\mathbf{b}\) has a unique solution \(\mathbf{x} = A^{-1}\mathbf{b}\) for every\(\mathbf{b}\). So, no conditions on \(\mathbf{b}\).
Case 2: \(A\) is not square, or \(A\) is square but not invertible.
Theorem 1.6.2 does not apply.
\(\mathbf{b}\) must usually satisfy certain conditions for \(A\mathbf{x}=\mathbf{b}\) to be consistent.
We use row reduction on \([A \mid \mathbf{b}]\) to identify these conditions.
Example 4: Determining Consistency by Elimination (System from Ex. 1)
What conditions must \(b_1, b_2, b_3\) satisfy for the system to be consistent? \[
\begin{array}{r}x_{1} + 2x_{2} + 3x_{3} = b_{1} \\ 2x_{1} + 5x_{2} + 3x_{3} = b_{2} \\ x_{1} + 8x_{3} = b_{3} \end{array}
\] (This is \(A\mathbf{x}=\mathbf{b}\) where \(A\) is the invertible matrix from Example 1).
Augmented matrix \([A \mid \mathbf{b}]\): \[
\left[ \begin{array}{llll}1 & 2 & 3 & b_1\\ 2 & 5 & 3 & b_2\\ 1 & 0 & 8 & b_3 \end{array} \right]
\] Reducing this to reduced row echelon form yields (as seen when finding \(A^{-1}\)): \[
\begin{array}{r}\left[ \begin{array}{cccc}1 & 0 & 0 & -40b_1 + 16b_2 + 9b_3\\ 0 & 1 & 0 & 13b_1 - 5b_2 - 3b_3\\ 0 & 0 & 1 & 5b_1 - 2b_2 - b_3 \end{array} \right] \end{array}
\]Result: There are no restrictions on \(b_1, b_2, b_3\). The system has a unique solution for all values of \(b_1, b_2, b_3\). This confirms Theorem 1.6.4 (e) and (f) for invertible matrices.
ECE Applications & Summary
Key Concepts for ECE:
Existence and Uniqueness of Solutions: Critical for ensuring that models of circuits, control systems, or communication links have predictable and solvable outcomes.
System behaves consistently.
Output is uniquely determined by input.
Efficient System Solving:
Using \(A^{-1}\) for direct \(\mathbf{x} = A^{-1}\mathbf{b}\) when \(A\) is invertible.
Solving multiple systems simultaneously via augmented matrices. Reduces computation in large-scale simulations.
System Properties: Invertibility of component matrices and their product defines the overall reversibility and predictability of complex engineering systems.
ECE Applications & Summary
Today We Covered:
The fundamental theorem that linear systems have 0, 1, or ∞ solutions.
Solving \(A\mathbf{x}=\mathbf{b}\) using \(A^{-1}\) for invertible \(A\).
Simultaneous solution of multiple linear systems with a common coefficient matrix.
Properties of invertible matrices, including the extended Equivalence Theorem.
How to determine consistency conditions for \(A\mathbf{x}=\mathbf{b}\) by elimination.