Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to understand the effect of the kronecker delta function in this expression $\sum_{i,j}(1+\delta_{i,j})M_{ij}$ given that $M$ is a matrix with real-entries.

How does this operation work!?

share|cite|improve this question
up vote 2 down vote accepted

The Kronecker-delta factor does a "trace," meaning a summation over the diagonal components. Remember that $\delta_{ij}=0$ if $i\ne j$. So, then for any function $f(i,j)$, you'd have \begin{equation} \sum_{i,j} \delta_{ij} f(i,j) = \sum_{i=j} f(i,j) = \sum_i f(i,i) \end{equation}

In your example, then, \begin{equation} \sum_{i,j} (1+\delta_{ij}) M_{ij} = \sum_{i,j} M_{ij} + \sum_i M_{ii} \end{equation}

The first term is the sum of every element in the matrix. The second term is the sum of the elements on the diagonal.

share|cite|improve this answer

This is a sum over all entries $M_{ij}$ of $M$, multiplying the diagonal entries $M_{ii}$ by $2$.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.