alg5.pdf
Table of contents
- Problem Set 5 Solution
- Section 4.2
- Section 8.2
1. Problem Set 5 Solution
1.1 Fredholm's Alternative and orthogonality
The relationship between the solvability of a linear system and the properties of its fundamental subspaces is governed by Fredholm's Alternative.
- Fredholm's Alternative: exactly one of the following two problems has a solution: Ax=b OR ATy=0 with yTb=1.
- Solvability condition: if b is not in the column space of A, it is not orthogonal to the nullspace of AT.
- Orthogonality of subspaces: the column space of A and the nullspace of AT are orthogonal 1.
📝 For the system of equations x1−x2=1, x2−x3=1, and x1−x3=1, choosing y1=1,y2=1,y3=−1 results in the left-hand side summing to 0 and the right-hand side summing to 1, satisfying 0=1 1.
1.2 Nullspaces and fundamental subspaces 1 2
The properties of the matrix ATA and the relationship between the nullspace and row space are critical for understanding matrix structure.
- Nullspace of ATA: if ATAx=0, then Ax=0 because Ax is in the nullspace of AT and also in the column space of A, which are orthogonal.
- Nullspace identity: ATA has the same nullspace as A.
- Row space via nullspace: the command
null(N')where N is a basis for the nullspace of A produces a basis for the row space of A 1.
| Matrix/Command | Resulting Space |
|---|---|
| N = null(A) | Nullspace of A |
| B = null(N') | Row space of A |
1.3 Conditions for fundamental subspace bases 3 4
Constructing a matrix from given vectors requires satisfying specific orthogonality and dimension requirements for the four fundamental subspaces.
- Orthogonality requirements:
- Row space and nullspace: the basis vectors r (row space) and n (nullspace) must satisfy r⋅n=0.
- Column space and left nullspace: the basis vectors c (column space) and l (left nullspace) must satisfy c⋅l=0.
- Dimension requirements:
- For n×m matrix: dimN(A)+dimC(AT)=n and dimN(AT)+dimC(A)=m4.
- Matrix construction: a matrix A can be constructed as A=crT to satisfy specific row and column space requirements 3.
| Subspace Pair | Orthogonality Condition |
|---|---|
| C(A^T) and N(A) | ri⋅nj=0 |
| C(A) and N(A^T) | ci⋅lj=0 |
2. Section 4.2
2.1 Projection matrices and properties 5 6
Projection matrices map vectors onto specific subspaces, such as the column space or the row space.
- Projection matrix shape: if projecting a vector in Rm onto a subspace, the projection matrix P is m×m.
- Idempotency: a projection matrix satisfies P2=P.
- Complementary projection: if P projects onto the column space of A, then I−P projects onto the left nullspace of A 5.
- Testing a projection: to verify if p is the projection of b onto a subspace spanned by {a1,…,an}, one must check:
- Membership: p must lie in the span of the ai vectors.
- Orthogonality: the error vector b−p must be orthogonal to each ai 6.
| Matrix | Projection Target |
|---|---|
| P | Column space of A |
| I−P | Left nullspace of A |
📝 If A is a 4×3 matrix and b=(1,2,3,4), the projection matrix P is 4×4. If the column space is the wxy-space, the projection of b is (1,2,3,0) 5.
2.2 Rank and invertibility 6
The rank of a product of matrices is constrained by the ranks of its factors.
- Rank of product: multiplying a matrix AB by any matrix on the left or right cannot increase its rank.
- Invertibility condition: if A is m×r with independent columns and B is r×n with independent rows, then AB is an r×r invertible matrix 6.
| Matrix Property | Implication |
|---|---|
| A has r independent columns | ATA is invertible |
| B has r independent rows | BBT is invertible |
3. Section 8.2
3.1 Problem 17: Analysis of incidence matrices 8
This section examines the properties of an incidence matrix A derived from a connected graph to determine its rank, solvability conditions, and node degree relationships.
- Graph dimensions: For an incidence matrix A of size m×n, the matrix represents a graph with n nodes and m edges.
- Rank and independence: In a connected graph with n nodes, the rank of the incidence matrix A is n−1.
- Solvability of ATy=f: To solve the system ATy=f, the vector f must reside in the column space C(AT).
- Orthogonality conditions: The column space $C(A^T)