The Kronecker delta is a function of two discrete variables, typically integer indexes, such that is equal to zero if the indexes are different and to one if they are the same:
It commonly arises in linear algebra.
Usage in nested sums#
The Kronecker delta is particularly useful when appearing in nested sums over its indexes. In these cases, one can exploit the nullity in different indexes to make one of the sums vanish, alongside the delta itself. In fact, given some generic values and dependent on the indexes, we see:
This is because all terms with vanish, leaving only the terms. We can therefore merge the sums and drop the second index.