Matrix

Comprehensive Guide to Matrices
1. Matrix Fundamentals

A matrix is a rectangular array of numbers, symbols, or expressions arranged in rows (horizontal) and columns (vertical).

  • Requirements: A matrix must have a defined dimension (m×nm \times n ), where mm is the number of rows and nn is the number of columns. Every "slot" in the grid must be filled.

  • Square Matrix: A matrix where the number of rows equals the number of columns (n×nn \times n ).

  • Transpose Matrix (ATA^T ): Formed by swapping the rows and columns of a matrix. The first row becomes the first column, the second row becomes the second column, etc.


2. Matrix Arithmetic

Addition and Subtraction:

  • Requirement: Both matrices must have the exact same dimensions.

  • How to calculate: Simply add or subtract the corresponding elements in each position.

    • Example: A1,1+B1,1=New1,1A_{1,1} + B_{1,1} = \text{New}_{1,1} .

Matrix Multiplication (Product):

  • Requirement: The number of columns in the first matrix must equal the number of rows in the second matrix.

  • How to calculate: Use the "Dot Product" method. Multiply the elements of a row from the first matrix by the elements of a column from the second matrix and sum them up.

    • Result dimension: If you multiply (m×n)(m \times n) by (n×p)(n \times p) , the result is (m×p)(m \times p) .


3. Special Matrices & Powers
  • Identity Matrix(In)(I_n) : A square matrix with 1s1s on the main diagonal (top-left to bottom-right) and 00s everywhere else.

    • Logic: It acts like the number "11 " in scalar math (A×I=AA \times I = A ).

  • Powers of Matrices: For a square matrix AA ,AnA^n means multiplying AA by itself nn times (A×A×A...A \times A \times A... ).

    • Logic: A0=IA^0 = I (any square matrix to the power of 0 is the Identity matrix).

  • Symmetric Matrix: A square matrix that is equal to its transpose (A=ATA = A^T ). The elements are mirrored across the main diagonal.


4. Zero-One Matrices (Boolean Matrices)

In Discrete Math, these matrices contain only 00 s and 11 s. They use Boolean logic instead of standard arithmetic.

  • Join (∨\vee ): Similar to the "OR" operation. The result has a 11 if either matrix has a 11 at that position.

  • Meet (∧\wedge ): Similar to the "AND" operation. The result has a 11 only if both matrices have a 11 at that position.

  • Boolean Product (A⊙BA \odot B ): Calculated like standard multiplication, but you use ANDAND (∧\wedge ) instead of multiplication and OR (∨\vee ) instead of addition.


Flash Cards

Front: What is the requirement for Matrix Addition?

Back: The matrices must have identical dimensions (m×nm \times n ).

Front: If Matrix A is 2×32 \times 3 and Matrix B is 3×53 \times 5 , what is the dimension of the Product AB?

Back: 2×52 \times 5 . (The inner numbers must match, the outer numbers give the result size).

Front: What defines a Symmetric Matrix?

Back: A square matrix whereA=ATA = A^T . It looks the same even if you flip its rows and columns.

Front: In Zero-One Matrices, what is a Join?

Back: A Boolean "OR" operation performed element-wise. The result is 1 if at least one of the elements is 11 .

Front: What is the Identity Matrix equivalent to in regular multiplication?

Back: The number 11 . Multiplying a matrix by the Identity matrix does not change its value.

Front: How do you find the Transpose of a matrix?

Back: You switch the rows and columns (aija_{ij} becomes ajia_{ji} ).

Front: Can you find the Power (A2A^2 ) of a 2×32 \times 3 matrix?

Back: No. Matrix powers are only possible for Square Matrices (n×nn \times n ) because the number of columns must match the rows for multiplication.


Quick Proof Logic
  • Identity Proof: To prove AI=AAI = A , show that the summation of aik×δkja_{ik} \times \delta_{kj} (where δ\delta is the Kronecker delta) equals aija_{ij} , because δkj\delta_{kj} is only 11 when k=jk=j .

  • Transpose of a Product: (AB)T=BTAT(AB)^T = B^T A^T . Note: The order reverses!