LINEAR-ALGEBRA Ā· Interactive Practice | Unit 31 Ā· Video 2

Left and Right Inverses (and the Projections Hiding in Between)

IKey Formulas

Formula Name When it works
(ATA)āˆ’1AT A=I(A^T A)^{-1} A^T \, A = I Left-inverse Tall matrix, full column rank (m>nm > n, r=nr = n)
A AT(AAT)āˆ’1=IA \, A^T (A A^T)^{-1} = I Right-inverse Wide matrix, full row rank (n>mn > m, r=mr = m)
P=A(ATA)āˆ’1ATP = A (A^T A)^{-1} A^T Projection matrix Same pieces, wrong order; P2=PP^2 = P, PT=PP^T = P
ATA x^=ATbA^T A \, \hat{x} = A^T b Normal equations Least squares: Ax^=PbA\hat{x} = Pb

IIVisualization 1 — Which side gets the inverse?

A rectangular matrix inverts from only one side — the Gram matrix that stays full-rank picks which.

IIIVisualization 2 — Projection onto the column space

PP sends bb to the nearest point of the column space — straight down, perpendicular.

šŸ’” Because PP fixes every vector already in the column space, projecting twice changes nothing: P2=PP^2 = P.

IVVisualization 3 — Same pieces, different order

The same three matrices give the identity in one order and a projection in the other.

VQuiz Questions

Question 1

Let AA be a tall matrix that is mƗnm \times n with m>nm > n and full column rank (r=nr = n). Which one-sided inverse is guaranteed to exist?

āœ… Correct! ATAA^T A is invertible, giving the left-inverse.

āŒ Not quite. For a tall matrix it is ATAA^T A (not AATA A^T) that is invertible.

Show solution

Solution:

For a tall matrix with full column rank, the columns are independent, so the Gram matrix ATAA^T A (size nƗnn \times n) is invertible. This gives the left-inverse:

(ATA)āˆ’1ATā‹…A=(ATA)āˆ’1(ATA)=In.(A^T A)^{-1} A^T \cdot A = (A^T A)^{-1}(A^T A) = I_n.

A right-inverse would require AATA A^T (mƗmm \times m) to be invertible, but its rank is only n<mn < m, so it is singular. Hence only the left-inverse exists.

Question 2

A student claims: "Since the tall matrix AA has a left-inverse, it must also have a right-inverse — just multiply AAT(AAT)āˆ’1A A^T (A A^T)^{-1}."

True or False: This reasoning is correct.

āœ… Correct! AATA A^T has rank n<mn < m, so it is singular — no right-inverse.

āŒ Not quite. AATA A^T is mƗmm \times m but rank n<mn < m, so it cannot be inverted.

Show solution

Solution:

The claim is False. For the tall case, AATA A^T is mƗmm \times m but its rank is only n<mn < m, so AATA A^T is singular — its inverse (AAT)āˆ’1(A A^T)^{-1} does not exist.

The deeper reason: a rectangular matrix can never be inverted from both sides, because either AA or ATA^T always has a nontrivial null space. Something always gets collapsed, and a collapse cannot be undone from both directions.

Question 3

For the projection matrix P=A(ATA)āˆ’1ATP = A(A^T A)^{-1} A^T, which pair of properties always holds?

āœ… Correct! Projections are symmetric and idempotent (P2=PP^2 = P).

āŒ Not quite. PP is symmetric, but projecting twice gives P2=PP^2 = P, not II.

Show solution

Solution:

A projection matrix satisfies two defining properties:

  • Symmetric: PT=PP^T = P.
  • Idempotent: P2=PP^2 = P (projecting twice is the same as projecting once — once bb is on the plane, it stays put).

It is not the identity (P≠IP \neq I) and it is not invertible (it collapses the component perpendicular to the column space). For the example matrix, P=[2/3āˆ’1/31/3āˆ’1/32/31/31/31/32/3]P = \begin{bmatrix} 2/3 & -1/3 & 1/3 \\ -1/3 & 2/3 & 1/3 \\ 1/3 & 1/3 & 2/3 \end{bmatrix} indeed satisfies PT=PP^T = P and P2=PP^2 = P.

Question 4

An over-determined system Ax=bAx = b has no exact solution. We solve the normal equations ATA x^=ATbA^T A \,\hat{x} = A^T b to get the least-squares solution x^\hat{x}. What does Ax^A\hat{x} equal?

āœ… Correct! Least squares delivers Ax^=PbA\hat{x} = Pb, the projection of bb.

āŒ Not quite. Since Ax=bAx=b is unsolvable, Ax^A\hat{x} is the projection PbPb, not bb itself.

Show solution

Solution:

Solving the normal equations gives x^=(ATA)āˆ’1ATb\hat{x} = (A^T A)^{-1} A^T b. Therefore

Ax^=A(ATA)āˆ’1AT b=Pb,A\hat{x} = A(A^T A)^{-1} A^T \, b = P b,

which is exactly the projection of bb onto the column space of AA. Since bb is unreachable (no exact solution), PbPb is the closest reachable point — the best approximation. The Gram matrix ATAA^T A reappears here as the coefficient matrix of the normal equations, and it is invertible precisely because AA has full column rank.

Solved: 0 / 4