1.4 Linear Algebra, Matrices, and Systems of Equations
Key Takeaways
- Matrix multiplication is associative $(AB)C = A(BC)$ but generally non-commutative ($AB \neq BA$).
- A square matrix $A$ is invertible if and only if its determinant $\det(A) \neq 0$ (non-singular).
- Cramer's Rule solves linear systems $A\mathbf{x} = \mathbf{b}$ using ratios of determinants $x_i = \det(A_i)/\det(A)$.
- Eigenvalues $\lambda$ satisfy the characteristic equation $\det(A - \lambda I) = 0$, representing principal stretch factors or natural frequencies in engineering systems.
- System consistency depends on matrix rank: $\text{rank}(A) = \text{rank}([A|b]) = n$ guarantees a unique solution.
1.4 Linear Algebra, Matrices, and Systems of Equations
Linear algebra provides the mathematical framework for solving large-scale structural truss systems, electrical circuit networks, finite element analysis (FEA), state-space control systems, and principal stress transformations on the FE exam.
1. Matrix Operations & Properties
Matrix Definition & Order
An $m \times n$ matrix $A$ consists of $m$ rows and $n$ columns. The element in row $i$ and column $j$ is denoted $a_{ij}$.
Fundamental Operations
-
Scalar Multiplication: $k A = [k a_{ij}]$
-
Matrix Addition: For $A$ and $B$ of identical size $m \times n$, $C = A + B \implies c_{ij} = a_{ij} + b_{ij}$.
-
Matrix Multiplication: For $A$ ($m \times p$) and $B$ ($p \times n$), the product $C = AB$ ($m \times n$) has elements: Note: Matrix multiplication is non-commutative ($AB \neq BA$ in general).
-
Transpose of a Matrix ($A^T$): Formed by swapping rows and columns ($a_{ij}^T = a_{ji}$).
- $(A + B)^T = A^T + B^T$
- $(AB)^T = B^T A^T$
- A matrix is symmetric if $A^T = A$, and skew-symmetric if $A^T = -A$.
-
Trace of a Square Matrix: Sum of diagonal elements $\text{tr}(A) = \sum_{i=1}^n a_{ii}$.
2. Determinants & Matrix Inverses
Determinants
Determinants exist only for square ($n \times n$) matrices.
-
$2 \times 2$ Matrix:
-
$3 \times 3$ Matrix (Cofactor Expansion along Row 1):
Key Determinant Rules
- $\det(AB) = \det(A) \cdot \det(B)$
- $\det(A^T) = \det(A)$
- $\det(A^{-1}) = \frac{1}{\det(A)}$
- $\det(kA) = k^n \det(A)$ for an $n \times n$ matrix.
- Swapping two rows/columns changes the sign of the determinant.
- If a row or column is all zeros, or if two rows are identical/proportional, $\det(A) = 0$.
Inverse Matrix ($A^{-1}$)
A square matrix $A$ has an inverse $A^{-1}$ such that $A A^{-1} = A^{-1} A = I$ if and only if $\det(A) \neq 0$ ($A$ is non-singular).
-
$2 \times 2$ Matrix Inverse Formula:
-
General Adjugate Formula: where $C_{ij} = (-1)^{i+j} M_{ij}$ is the cofactor matrix.
3. Systems of Linear Equations & Cramer's Rule
A system of $n$ linear equations in $n$ unknowns can be written in matrix form $A\mathbf{x} = \mathbf{b}$:
Existence & Uniqueness Criteria
- Unique Solution: $\text{rank}(A) = \text{rank}([A|\mathbf{b}]) = n \iff \det(A) \neq 0$.
- Infinitely Many Solutions: $\text{rank}(A) = \text{rank}([A|\mathbf{b}]) < n$.
- No Solution (Inconsistent System): $\text{rank}(A) < \text{rank}([A|\mathbf{b}])$.
Cramer's Rule
If $\det(A) \neq 0$, the unique solution for variable $x_i$ is: where $A_i$ is the matrix formed by replacing column $i$ of $A$ with column vector $\mathbf{b}$.
4. Eigenvalues and Eigenvectors
For a square $n \times n$ matrix $A$, a scalar $\lambda$ and non-zero vector $\mathbf{v}$ are an eigenvalue and eigenvector if:
Characteristic Equation
For a non-trivial vector $\mathbf{v} \neq \mathbf{0}$ to exist, the matrix $(A - \lambda I)$ must be singular:
Evaluating this determinant yields the $n$-th degree characteristic polynomial in $\lambda$. Roots of this polynomial are the eigenvalues $\lambda_i$.
Physical Significance in Engineering
- Solid Mechanics: Eigenvalues of the 2D/3D stress tensor represent principal stresses ($\sigma_1, \sigma_2, \sigma_3$), and eigenvectors indicate principal stress orientations.
- Vibrations & Dynamics: Eigenvalues represent squared natural frequencies ($\omega^2$), and eigenvectors represent mode shapes.
5. Worked Engineering Problems
Worked Example 1: Solving Electrical Mesh System via Cramer's Rule
Problem: Solve for mesh current $I_2$ in the 3-mesh circuit system:
Solution:
Step 1: Compute determinant of coefficient matrix $\det(A)$.
Step 2: Form matrix $A_2$ by replacing Column 2 with vector $\mathbf{b}$.
Step 3: Compute $\det(A_2)$ by expanding along Row 3 or Column 2. Expanding along Column 2:
Step 4: Compute $I_2$.
Worked Example 2: Principal Stresses via Eigenvalue Analysis
Problem: A state of plane stress is represented by matrix $A = \begin{bmatrix} 40 & 20 \\ 20 & 10 \end{bmatrix}\text{ MPa}$. Find the eigenvalues $\lambda_1, \lambda_2$ (principal stresses) of matrix $A$.
Solution:
Step 1: Set up characteristic equation $\det(A - \lambda I) = 0$.
Step 2: Solve for roots $\lambda$.
Thus, the principal stresses are $\sigma_1 = 50\text{ MPa}$ and $\sigma_2 = 0\text{ MPa}$.
What is the determinant of the 3x3 matrix A = [[2, 1, 3], [0, 4, -1], [1, 2, 0]]?
Compute the inverse of the 2x2 matrix A = [[4, 2], [3, 2]].
Determine the eigenvalues of the matrix A = [[5, 2], [2, 2]].
Apply Cramer's Rule to find y for the system of equations: 2x + y = 7 and x + 3y = 11.