KatInterview

Rank of BA When AB Has Rank 2 in a 4×4 Setting

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentslinear-algebrarankmatrix-products

Last updated

Given two 4×4 real matrices with rank(AB) = 2, find every integer value rank(BA) can take and construct matrices achieving each extreme.

Setup

Let A and B be real matrices of size 4 × 4. You are told that

rank(AB) = 2

Your job is to figure out exactly which integer values rank(BA) can take.

What you need to do

  1. Identify the full set of achievable values. List every integer r such that some pair (A, B) satisfies rank(AB) = 2 and rank(BA) = r.

  2. Prove the bounds. Use standard rank inequalities — the product rank bound and Sylvester's inequality — to show why no value outside your set is possible.

  3. Construct witnesses for the extremes. For the smallest and largest achievable values, write down explicit 4 × 4 matrices and verify both rank(AB) = 2 and that rank(BA) hits the target.

What a complete answer looks like

  • The exact set (not just bounds).
  • A short derivation of each bound with the inequality spelled out.
  • Concrete matrices for the minimum and maximum, with a check that they work.
  • A brief note on why the value just outside your upper bound is impossible.

Hints

Hint 1

Let a = rank(A) and b = rank(B). Apply the product-rank bound rank(AB) ≤ min(a, b) to get a floor on both a and b, then apply Sylvester's inequality rank(AB) ≥ a + b − 4 to get a ceiling on their sum. Do the same steps for rank(BA) using the same a and b.

Hint 2

For the minimum: ask whether BA = 0 is consistent with rank(AB) = 2. That happens when the image of A lands entirely inside the kernel of B, while the image of B avoids the kernel of A. Try a = b = 2 with A and B chosen so their images and kernels are complementary subspaces.

Hint 3

For the maximum: you need a = b = 3. Sylvester then gives rank(AB) ≥ 3 + 3 − 4 = 2, which matches the constraint, so it is not ruled out. Build B so that exactly one dimension of its image falls into ker A (reducing AB's rank to 2), while none of A's image falls into ker B (keeping rank(BA) as high as possible).