Docsity

Matrix Operations Cheat Sheet: Linear Algebra PDF Guide, Cheat Sheet of Mathematics

Toggle sidebar
bg1
Matrix Operations Cheat Sheet
Linear Algebra Reference Guide • Fundamental Definitions, Properties, and Calculations
1. Basic Definitions
Dimensions:
An
m × n
matrix has
m
rows and
n
columns.
Square Matrix:
Number of rows equals
columns (
m = n
).
Identity Matrix (
I
):
Square matrix with ones
on the main diagonal and zeros elsewhere (
AI =
IA = A
).
Zero Matrix (
0
):
All entries are zero (
A + 0
= A
).
2. Matrix Addition & Scalar Multiplication
Addition:
Element-wise sum. Defined only for
matrices of the exact same dimensions:
(A +
B)ij = Aij + Bij
.
Properties:
• Commutative:
A + B = B + A
• Associative:
(A + B) + C = A + (B + C)
Scalar Multiplication:
Multiply every element
by scalar
c
:
(cA)ij = c · Aij
.
3. Matrix Multiplication
Condition:
To compute
AB
where
A
is
m ×
p
and
B
is
p × n
, inner dimensions must
match. Result is
m × n
.
Formula:
(AB)ij =
∑
(Aik · Bkj)
over
k
.
Non-Commutative:
Generally,
AB
≠
BA
.
Associative & Distributive:
A(BC) =
(AB)C
,
A(B + C) = AB + AC
.
4. Transpose Operations
Definition:
Flips matrix over its diagonal; rows
become columns:
(AT)ij = Aji
.
Properties:
•
(AT)T = A
•
(A + B)T = AT + BT
•
(AB)T = BTAT
(Order reverses!)
•
(cA)T = cAT
SPECIAL MATRIX TYPES
Type Condition / Definition Key Property
Symmetric Matrix
AT = A
(implies
A
is square) Eigenvalues are real; orthogonal
eigenvectors.
Diagonal Matrix
Aij = 0
for all
i
≠
j
Easy powers and inversion.
Orthogonal Matrix
ATA = AAT = I
Preserves lengths and angles
(
||Ax|| = ||x||
).
Matrix Operations Reference Cheat Sheet Page 1 of 3
pf3

Partial preview of the text

Download Matrix Operations Cheat Sheet: Linear Algebra PDF Guide and more Cheat Sheet Mathematics in PDF only on Docsity!

Matrix Operations Cheat Sheet

Linear Algebra Reference Guide • Fundamental Definitions, Properties, and Calculations

1. Basic Definitions

Dimensions: An m × n matrix has m rows and n columns. Square Matrix: Number of rows equals columns ( m = n ). Identity Matrix ( I ): Square matrix with ones on the main diagonal and zeros elsewhere ( AI = IA = A ). Zero Matrix ( 0 ): All entries are zero ( A + 0 = A ).

2. Matrix Addition & Scalar Multiplication

Addition: Element-wise sum. Defined only for matrices of the exact same dimensions: (A + B)ij = Aij + Bij. Properties:

  • Commutative: A + B = B + A
  • Associative: (A + B) + C = A + (B + C) Scalar Multiplication: Multiply every element by scalar c : (cA)ij = c · Aij.

3. Matrix Multiplication

Condition: To compute AB where A is m × p and B is p × n , inner dimensions must match. Result is m × n. Formula: (AB)ij = ∑ (Aik · Bkj) over k. Non-Commutative: Generally, AB ≠ BA. Associative & Distributive: A(BC) = (AB)C , A(B + C) = AB + AC.

4. Transpose Operations

Definition: Flips matrix over its diagonal; rows become columns: (AT)ij = Aji. Properties:

  • (AT)T^ = A
  • (A + B)T^ = AT^ + BT
  • (^) (AB)T^ = BTAT^ (Order reverses!)
  • (cA)T^ = cAT

SPECIAL MATRIX TYPES

Type Condition / Definition Key Property

Symmetric Matrix (^) AT^ = A (implies A is square) Eigenvalues are real; orthogonaleigenvectors.

Diagonal Matrix Aij = 0^ for all^ i^ ≠^ j^ Easy powers and inversion.

Orthogonal Matrix (^) ATA = AAT^ = I Preserves lengths and angles( ||Ax|| = ||x|| ).

DETERMINANTS AND INVERSES

5. Determinants ( det(A) or |A| )

Definition: A scalar value computed for square matrices that encodes scaling factor of linear transformations. 2×2 Formula: For A = [[a, b], [c, d]] , det(A) = ad - bc. 3×3 Expansion: Cofactor expansion along any row or column. Singular Matrix: If det(A) = 0 , the matrix is non-invertible (singular). Key Rules: det(AB) = det(A)det(B) and det(AT) = det(A).

6. Matrix Inversion ( A-1^ )

Definition: For a square matrix A , if AA-1^ = A-1A = I , then A-1^ is the inverse. Existence: Exists if and only if det(A) ≠ 0 (nonsingular). 2×2 Formula: A-1^ = 1/det(A) · [[d, -b], [-c, a]] Properties:

  • (A-1)-1^ = A
  • (AB)-1^ = B-1A-
  • (AT)-1^ = (A-1)T

7. Systems of Linear Equations

Matrix Form: Express system as Ax = b , where A is coefficient matrix, x is variable vector, and b is constants vector. Solution via Inverse: If A is square and invertible, x = A-1b^. Cramer’s Rule: Uses determinants to solve variables: xi = det(Ai) / det(A) where Ai replaces column i with b.

8. Elementary Row Operations (EROs)

Type 1 (Swap): Interchange two rows ( Ri ↔ Rj ). Reverses determinant sign. Type 2 (Scaling): Multiply a row by a non-zero scalar ( cRi → Ri ). Scales determinant by c. Type 3 (Replacement): Add a multiple of one row to another ( Ri + cRj → Ri ). Leaves determinant unchanged. Applications: Gaussian elimination, finding inverses, and computing rank.