Matrices and Determinants

A matrix is a rectangular array of numbers arranged in rows and columns. Matrices are powerful tools in engineering for solving large systems of linear equations and representing linear transformations, particularly in structural analysis and finite element methods.

Matrix Operations

Basic Operations

  • Addition/Subtraction: Matrices must have the same dimensions. Add or subtract corresponding elements.
  • Scalar Multiplication: Multiply every element in the matrix by the given scalar (constant).
  • Matrix Multiplication: To multiply Am×nA_{m \times n} by Bn×pB_{n \times p}, the inner dimensions (nn) must match. The resulting matrix is m×pm \times p. Multiply rows of AA by columns of BB.
  • Note: Matrix multiplication is generally not commutative: ABBAAB \neq BA.
  • Transpose (ATA^T): Swap the rows and columns of a matrix. The first row becomes the first column, the second row becomes the second column, etc.

Determinants

The determinant is a scalar value calculated from a square matrix. It provides important properties about the matrix, such as whether it has an inverse.

Determinant of a 2x2 Matrix

A=[abcd]    det(A)=A=adbc A = \begin{bmatrix} a & b \\\\ c & d \end{bmatrix} \implies \det(A) = |A| = ad - bc

Determinant of a 3x3 Matrix (Sarrus' Rule)

For a 3×33 \times 3 matrix, copy the first two columns to the right, add the products of the diagonals going down-right, and subtract the products of the diagonals going up-right.
A=a(eifh)b(difg)+c(dheg) |A| = a(ei - fh) - b(di - fg) + c(dh - eg)

Properties of Determinants

  • Transpose: det(AT)=det(A)\det(A^T) = \det(A)
  • Row Swap: Swapping any two rows (or columns) multiplies the determinant by 1-1.
  • Zero Row/Column: If a matrix has a row or column of all zeros, the determinant is 00.
  • Proportional Rows: If two rows (or columns) are identical or proportional, the determinant is 00.
  • Triangular Matrices: The determinant of an upper or lower triangular matrix is simply the product of the entries on its main diagonal.

Matrix Transformations Visualizer

Observe how applying a 2×22 \times 2 transformation matrix changes the coordinate space. The area of the transformed unit square is equal to the determinant of the matrix.

2x2 Matrix Transformation

Area:1.00
A=[1001]A = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}
a (i-hat x)1.0
c (i-hat y)0.0
b (j-hat x)0.0
d (j-hat y)1.0

Inverse of a Matrix

The inverse of a matrix AA, denoted A1A^{-1}, satisfies the property AA1=IAA^{-1} = I, where II is the identity matrix. A matrix has an inverse if and only if its determinant is non-zero (non-singular matrix).

Inverse of a 2×2 Matrix

Calculates the multiplicative inverse of a 2×2 matrix, provided the determinant is non-zero.

A1=1adbc[dbca]A^{-1} = \frac{1}{ad - bc} \begin{bmatrix} d & -b \\\\ -c & a \end{bmatrix}

Variables

SymbolDescriptionUnit
A1A^{-1}The inverse of matrix A-
a,b,c,da, b, c, dThe elements of the original matrix A-
adbcad - bcThe determinant of matrix A-

Cramer's Rule

Cramer's Rule uses determinants to solve systems of linear equations. It is particularly useful when you need to solve for just one variable without solving the entire system.

Applying Cramer's Rule

  • Write the system as a coefficient matrix AA and calculate det(A)\det(A). (If det(A)=0\det(A) = 0, Cramer's Rule cannot be used).
  • To solve for xx, replace the x-column in AA with the constants column to form AxA_x. Calculate det(Ax)\det(A_x).
  • x=det(Ax)det(A)x = \frac{\det(A_x)}{\det(A)}. Repeat for other variables.
Key Takeaways
  • Multiplication Rule: You can only multiply A×BA \times B if columns of AA equal rows of BB.
  • Determinant Zero: If det(A)=0\det(A) = 0, the matrix has no inverse, and Cramer's Rule will not work (the system is either dependent or inconsistent).
  • Geometric Meaning: The determinant represents the scaling factor of the transformation. A negative determinant means the space was flipped.
  • Inverse: The inverse of a 2×22 \times 2 matrix involves swapping the main diagonal, negating the off-diagonal, and dividing by the determinant.