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.