alg5

Table of contents

  1. Problem Set 5 Solution
  2. Section 4.2
  3. 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=bAx = b OR ATy=0A^T y = 0 with yTb=1y^T b = 1.
  • Solvability condition: if bb is not in the column space of AA, it is not orthogonal to the nullspace of ATA^T.
  • Orthogonality of subspaces: the column space of AA and the nullspace of ATA^T are orthogonal 1.

📝 For the system of equations x1−x2=1x_1 - x_2 = 1, x2−x3=1x_2 - x_3 = 1, and x1−x3=1x_1 - x_3 = 1, choosing y1=1,y2=1,y3=−1y_1 = 1, y_2 = 1, y_3 = -1 results in the left-hand side summing to 00 and the right-hand side summing to 11, satisfying 0=10 = 1 1.

1.2 Nullspaces and fundamental subspaces 1 2

The properties of the matrix ATAA^T A and the relationship between the nullspace and row space are critical for understanding matrix structure.

  • Nullspace of ATAA^T A: if ATAx=0A^T Ax = 0, then Ax=0Ax = 0 because AxAx is in the nullspace of ATA^T and also in the column space of AA, which are orthogonal.
  • Nullspace identity: ATAA^T A has the same nullspace as AA.
  • Row space via nullspace: the command null(N') where NN is a basis for the nullspace of AA produces a basis for the row space of AA 1.
Matrix/CommandResulting 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 rr (row space) and nn (nullspace) must satisfy r⋅n=0r \cdot n = 0.
  • Column space and left nullspace: the basis vectors cc (column space) and ll (left nullspace) must satisfy c⋅l=0c \cdot l = 0.
  • Dimension requirements:
  • For n×mn \times m matrix: dim⁡N(A)+dim⁡C(AT)=n\dim N(A) + \dim C(A^T) = n and dim⁡N(AT)+dim⁡C(A)=m\dim N(A^T) + \dim C(A) = m4.
  • Matrix construction: a matrix AA can be constructed as A=crTA = cr^T to satisfy specific row and column space requirements 3.
Subspace PairOrthogonality Condition
C(A^T) and N(A)ri⋅nj=0r_i \cdot n_j = 0
C(A) and N(A^T)ci⋅lj=0c_i \cdot l_j = 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\mathbb{R}^m onto a subspace, the projection matrix PP is m×mm \times m.
  • Idempotency: a projection matrix satisfies P2=PP^2 = P.
  • Complementary projection: if PP projects onto the column space of AA, then I−PI - P projects onto the left nullspace of AA 5.
  • Testing a projection: to verify if pp is the projection of bb onto a subspace spanned by {a1,…,an}\{a_1, \dots, a_n\}, one must check:
  • Membership: pp must lie in the span of the aia_i vectors.
  • Orthogonality: the error vector b−pb - p must be orthogonal to each aia_i 6.
MatrixProjection Target
PPColumn space of AA
I−PI - PLeft nullspace of AA

📝 If AA is a 4×34 \times 3 matrix and b=(1,2,3,4)b = (1, 2, 3, 4), the projection matrix PP is 4×44 \times 4. If the column space is the wxywxy-space, the projection of bb is (1,2,3,0)(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 ABAB by any matrix on the left or right cannot increase its rank.
  • Invertibility condition: if AA is m×rm \times r with independent columns and BB is r×nr \times n with independent rows, then ABAB is an r×rr \times r invertible matrix 6.
Matrix PropertyImplication
AA has rr independent columnsATAA^T A is invertible
BB has rr independent rowsBBTBB^T is invertible

3. Section 8.2

3.1 Problem 17: Analysis of incidence matrices 8

This section examines the properties of an incidence matrix AA derived from a connected graph to determine its rank, solvability conditions, and node degree relationships.

  • Graph dimensions: For an incidence matrix AA of size m×nm \times n, the matrix represents a graph with nn nodes and mm edges.
  • Rank and independence: In a connected graph with nn nodes, the rank of the incidence matrix AA is n−1n - 1.
  • Solvability of ATy=fA^T y = f: To solve the system ATy=fA^T y = f, the vector ff must reside in the column space C(AT)C(A^T).
  • Orthogonality conditions: The column space C(AT)C(A^T) is orthogonal to the null space N(A)N(A), which is generated by the all-ones vector (1,1,…,1)(1, 1, \dots, 1) 8.
ConditionRequirement for ATy=fA^T y = f
Vector ff membershipEntries of ff must sum to 0
Orthogonalityff must be orthogonal to N(A)N(A)
  • Node degrees and diagonal entries: The diagonal entries of the matrix ATAA^T A represent the number of edges incident to each node.
  • Sum of degrees: The sum of the diagonal entries of ATAA^T A equals the sum of the degrees of all nodes in the graph.
  • Edge counting principle: Because each edge connects exactly two nodes, it is counted twice in the sum of degrees 8.
PropertyValue/Relationship
Matrix size12×912 \times 9 (12 edges, 9 nodes)
Rank of AA8 (tree with 8 edges)
Sum of diagonal entries24 (2 ×\times 12 edges)

📝 A 12×912 \times 9 incidence matrix AA from a connected graph has 8 independent columns because the rank of a connected graph with 9 nodes is 9−1=89 - 1 = 8.

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also