Set . The trace distance is , where . Since is a Hermitian operator, its spectral decomposition is . Define its positive part of a Hermitian operator and negative part of a Hermitian operator by
They are positive semidefinite operators, satisfy and , and obey . Therefore
The states have equal trace, so and . This is the spectral-parts formula for trace distance.
The positive part of a Hermitian operator and negative part of a Hermitian operator are the positive operators
Thus and . In this convention the negative part itself is nonnegative. This is the positive-negative decomposition of the Hermitian operator.
The operator absolute value is defined by the unique positive operator square root
The scalar identity applied in the spectral decomposition proves
For a Hermitian operator with spectral decomposition , its positive part is . It is a positive operator supported on the positive spectral subspace. Together with the negative part of a Hermitian operator it satisfies and .
For the Hermitian difference , define its positive part of a Hermitian operator and negative part of a Hermitian operator . Their supports are orthogonal and . Equal traces give , so the trace distance is both and . This explains why the positive spectral projector attains the variational characterization of trace distance.