Comprehensive Linear Algebra Notes

Chapter 1 Matrices and Basic Operations

Introduction

  • Linear algebra studies sets of matrices and operations on them.
  • Matrices help organise coefficients/ constants of linear systems.

Matrices

  • A matrix is a rectangular array of numbers written inside brackets/parentheses.
  • Order: m×nm \times n means mm rows, nn columns.
  • Entry notation: aija_{ij} is element in row ii column jj.
  • Special names
    • Row vector: one-row matrix.
    • Column vector: one-column matrix.
    • Square matrix: n×nn \times n.
  • Real vs complex matrices: entries real ⇒ real matrix, else complex.

Equality (1.3)

  • A=BA=B iff same order and every corresponding entry equal.

Addition (1.4)

  • C=A+BC=A+B where c<em>ij=a</em>ij+bijc<em>{ij}=a</em>{ij}+b_{ij}.
  • Laws
    • Commutative: A+B=B+AA+B=B+A.
    • Associative: (A+B)+C=A+(B+C)(A+B)+C=A+(B+C).
  • Zero/Null matrix 0m×n0_{m\times n}: all entries 0; A+0=AA+0=A.
  • Negative: A-A has entries aij-a_{ij}; A+(A)=0A+(-A)=0.

Scalar Multiplication (1.5)

  • kAkA multiplies every entry by scalar kk.
  • 1A=A,(1)A=A1A=A, (-1)A=-A.

Matrix Multiplication (1.6)

  • Defined when columns of AA = rows of BB.
  • ABAB entry: c<em>ij=</em>k=1na<em>ikb</em>kj.c<em>{ij}=\sum</em>{k=1}^{n} a<em>{ik}b</em>{kj}.
  • Identity InI_n: ones on main diagonal, zeros elsewhere. AI=IA=AAI=IA=A and unique.
  • Laws (selected)
    • Associative: (AB)C=A(BC)(AB)C=A(BC).
    • Distributive: A(B+C)=AB+ACA(B+C)=AB+AC.
    • Scalar: α(AB)=(αA)B=A(αB)\alpha(AB)=(\alpha A)B=A(\alpha B).
  • Non-commutative: generally ABBAAB\neq BA.

Powers of a Matrix (1.7)

  • Ak=AAA<em>k timesA^k=\underbrace{AA\dots A}<em>{k \text{ times}}, A0=I</em>nA^0=I</em>n.
  • Laws: ArAs=Ar+s,  (Ar)s=Ars.A^rA^s=A^{r+s},\;(A^r)^s=A^{rs}.

Idempotent Matrix (1.8)

  • A2=A.A^2=A.
  • Then An=AA^n=A for n1n\ge 1.

Chapter 2 Transpose of a Matrix

Definition

  • ATA^T obtained by interchanging rows & columns, (AT)<em>ij=a</em>ji(A^T)<em>{ij}=a</em>{ji}.

Properties

  • (AT)T=A(A^T)^T=A.
  • (αA)T=αAT(\alpha A)^T=\alpha A^T.
  • (A+B)T=AT+BT(A+B)^T=A^T+B^T.
  • (AB)T=BTAT(AB)^T=B^TA^T.

Special Square Matrices

  • Diagonal: off-diagonal zeros.
  • Upper triangular: elements below main diagonal 0.
  • Lower triangular: elements above main diagonal 0.
  • Symmetric: AT=AA^T=A.
  • Skew-symmetric: AT=AA^T=-A (diagonal entries 0).
  • Every square matrix A=S+KA=S+K with S=12(A+AT)S=\tfrac12(A+A^T) symmetric, K=12(AAT)K=\tfrac12(A-A^T) skew-symmetric.

Chapter 3 Systems of Linear Equations

Terminology

  • Linear system in nn variables x<em>j{x<em>j}: </em>j=1na<em>ijx</em>j=bi\sum</em>{j=1}^{n} a<em>{ij}x</em>j=b_i for i=1,,m.i=1,\dots,m.
  • Homogeneous: all bi=0b_i=0 (always consistent; trivial solution all zeros).

Matrix Form

  • AX=BAX=B where AA coefficient matrix, XX variable column, BB RHS.
  • Augmented matrix [A  B][A\;B].

Row Operations (EROs)

  1. Swap rows.
  2. Multiply row by non-zero scalar.
  3. Add multiple of one row to another.

Gaussian Elimination

  • Reduce [A  B][A\;B] to Row-Echelon (RE) form then solve by back-substitution.
  • RE conditions:
    1. Zero rows below non-zero.
    2. Leading entry of each non-zero row to right of row above.
  • Reduced Row-Echelon (RRE): additionally leading entries are 1 and column-unique.

Rank (to preview)

  • Number of non-zero rows in RE form = rank.

Solution Types

  • Unique: rank =n=n.
  • Infinite: rank < n and consistent.
  • None: inconsistent (e.g. 0=2 row).

Chapter 4 Inverse of a Matrix

Definition

  • AA invertible if B\exists\,B such that AB=BA=IAB=BA=I; then B=A1B=A^{-1} (unique).

Properties

  • (A1)1=A(A^{-1})^{-1}=A.
  • (AT)1=(A1)T(A^T)^{-1}=(A^{-1})^T.
  • (kA)1=k1A1(kA)^{-1}=k^{-1}A^{-1}.
  • (AB)1=B1A1(AB)^{-1}=B^{-1}A^{-1}.

2×2 Formula

A=\begin{bmatrix}a&b\c&d\end{bmatrix},\;\det A\neq0\Rightarrow A^{-1}=\frac{1}{ad-bc}\begin{bmatrix}d&-b\-c&a\end{bmatrix}.

Elementary Matrices

  • Obtained by applying one ERO to InI_n.
  • Invertible; inverse is elementary.
  • Pre-multiplying by elementary matrix ⇔ performing same ERO.

Finding A1A^{-1} via EROs

  • Form [A  I][I  A1][A\;I] \rightarrow [I\;A^{-1}].

Positive & Negative Powers

  • For integer kk, AkA^k defined using A1A^{-1} when k<0.

Chapter 5 Determinants

Definitions

  • Order 1: a=a|a|=a.
  • Order 2: \begin{vmatrix}a&b\c&d\end{vmatrix}=ad-bc.
  • Order 3 (Sarrus):
    \begin{vmatrix}a1&b1&c1\a2&b2&c2\a3&b3&c3\end{vmatrix}=a1b2c3+b1c2a3+c1a2b3-a3b2c1-b3c2a1-c3a2b_1.
  • General nn: expand along a row/column using minors & cofactors.

Cofactor A<em>ij=(1)i+jM</em>ijA<em>{ij}=(-1)^{i+j}M</em>{ij}.

Properties (selection)

  • Row/col swap multiplies det by 1-1.
  • Factor kk in a row ⇒ det multiplies by kk.
  • Row addition ((Ri+kRj)) keeps det.
  • Zero row/col ⇒ det 0.
  • Equal rows ⇒ det 0.
  • Triangular: det = product diagonal.
  • AB=AB.|AB|=|A||B|.

Adjoint & Inverse

  • Adjoint adjA=(Aij)T\operatorname{adj} A=(A_{ij})^T.
  • AadjA=AIA1=adjAAA\,\operatorname{adj}A=|A|I\Rightarrow A^{-1}=\dfrac{\operatorname{adj}A}{|A|} (if A0|A|\neq0).

Cramer’s Rule

  • Unique solution (A0|A|\neq0): x<em>j=A</em>jAx<em>j=\dfrac{|A</em>j|}{|A|} where AjA_j replaces jj-th column by RHS.

Chapter 6 Linear Independence & Rank

Linear Combination

  • u=c<em>1v</em>1++c<em>nv</em>nu=c<em>1v</em>1+\cdots+c<em>nv</em>n.

Independence

  • Vectors v<em>i{v<em>i} independent if c</em>iv<em>i=0\sum c</em>i v<em>i=0 only with all c</em>i=0c</em>i=0; otherwise dependent.

Tests via Matrices

  • Arrange vectors as rows or columns; reduce to RE.
  • Dependent ⇔ zero row appears.

Rank r(A)r(A)

  • Maximum number of independent rows (equals column rank).
  • Equal to non-zero rows in any RE form.
  • r(A)min(m,n).r(A)\le \min(m,n).

System Consistency (Rouché–Capelli)

  • AX=B consistent iff r(A)=r([A  B])r(A)=r([A\;B]).
  • Number of solutions:
    • Unique: r=nr=n.
    • Infinite: r<n.

Chapter 7 Eigenvalues, Eigenvectors & Diagonalization

Definitions

  • Eigenvalue λ\lambda: non-zero vector xx s.t. Ax=λxAx=\lambda x.
  • Eigenvector: associated x0x\neq0.

Characteristic Polynomial

  • p(λ)=AλIp(\lambda)=|A-\lambda I|.
  • Roots are eigenvalues.
  • Properties: product of eigenvalues =A=|A|; sum =trA=\operatorname{tr}A.

Finding Eigenvectors

  • Solve (AλI)x=0(A-\lambda I)x=0 for each eigenvalue.

Similarity & Diagonalization

  • ABA\sim B if P(P1AP=B).\exists P\, (P^{-1}AP=B). Similar matrices share eigenvalues & trace.
  • Diagonalizable ⇔ AD=diag(λ<em>1,,λ</em>n).A\sim D=\operatorname{diag}(\lambda<em>1,\dots,\lambda</em>n).
  • Sufficient condition: nn distinct eigenvalues ⇒ diagonalizable.
  • General criterion (Theorem): AA diagonalizable iff it has nn linearly independent eigenvectors; then PP formed by these eigenvectors yields P1AP=DP^{-1}AP=D.

Cayley–Hamilton Theorem

  • Every square matrix satisfies its characteristic polynomial: p(A)=0p(A)=0.
  • Applications
    • Compute A1A^{-1} when A0|A|\neq0 by rearranging p(A)=0p(A)=0.
    • Express high powers AkA^k via lower powers.