These definitions look very much the same. What is the difference?
One difference comes from the input variables (the domain). For the Kronecker delta, the input variables \(i\) and \(j\) are discrete variables; for the Dirac delta, the input variable \(x\) is a continuous variable. You should always choose to use the form of the delta that is appropriate for the input variables.
Definition17.14.Discrete vs. Continuous Variables.
A variable is called a continuous variable if for any two values you can always find another in between them (think about the real numbers). The values of these variables are typically obtained by measuring; common examples are distance and time. If the values of the variable are spaced apart (think about the integers), so that there is always a gap between one value and its nearest neighbor(s), the variable is called a discrete variable. These values of these variables are typically obtained by counting; simple examples include the sets \(\{0, 1, 2, 3\}\) and the even integers. These variables can be either finite or countably infinite. Examples can also include more abstract sets such as \(\{x, y, z\}\) since the elements could be assigned discrete numbers according to their position in the list.
Another difference between the Kronecker delta and the Dirac delta comes from the output variables (the range). The Kronecker delta compares the discrete input variables \(i\) and \(j\text{.}\) It takes the value one whenever these two input variables are the same. The Dirac delta compares the continuous input variable \(x\) to the constant parameter \(a\text{.}\) It takes the value \(\infty\) whenever \(x\) is the same a \(a\text{.}\) This choice between one and \(\infty\) comes from the ways in which the deltas are used. The Kronecker delta is used to pick out a particular term in a sum (see Section 17.1). For example, if we want to pick out the term \(a_N\) in a sum, we use \(\delta_{iN}\)
On the other hand, the Dirac delta is used to pick out a particular term in an integral (see Section 17.4). For example, if we want to pick out the value of the function \(f(x)\) when \(x=a\) in an integral, we use \(\delta(x-a)\)