Article 786N2 Proof of the rank-trace theorem

Proof of the rank-trace theorem

by
John
from John D. Cook on (#786N2)

The previous post discussed the motivation for and application of the rank-trace theorem. This post will give a proof.

SupposeA is a real symmetric matrix. The rank-trace inequality says

rank_trace1.svg

where tr is the trace operator, the sum of the elements along the diagonal of the matrix.

Terse proof

Here's the proof in a nutshell: diagonalizeA and use the Cauchy-Schwarz inequality.

Detailed proof

Now let's unpack that. Any real symmetric matrix A is similar to a matrix D with the eigenvalues ofA along the diagonal.

rank_trace2.svg

The trace of a matrix stays the same under a similarity transformation, i.e. multiplying byP on one side and its inverse on the other side. So without loss of generality we may as well assumeA is diagonal.

The rank of a matrix equals the number of non-zero eigenvalues, so a vector containing the non-zero eigenvalues ofA

rank_trace3.svg

has length r where r is the rank of A. Define w to be the vector of dimensionr consisting of all 1's.

rank_trace4.svg

Then by the Cauchy-Schwarz inequality we have

rank_trace6.svg

Cyclic trace property

Why should a matrixA and its diagonalizationD have the same trace?

The trace of a matrix productAB equals the trace of the productBA. To prove this, write out matrix products and the traces, then note that the two expressions are equal.

trace_commute.svg

Therefore

rank_trace7.svg

More generally, trace has the cyclic property

cycle_trace.svg

However, not all permutations preserve the trace. For example, let

rank_trace8.svg

Then

rank_trace11.svg

but

rank_trace10.svg

The post Proof of the rank-trace theorem first appeared on John D. Cook.
External Content
Source RSS or Atom Feed
Feed Location http://feeds.feedburner.com/TheEndeavour?format=xml
Feed Title John D. Cook
Feed Link https://www.johndcook.com/blog
Reply 0 comments