What are the differences between these pairs of functions? In many cases, they seem to act the same. For example, both DiscreteDelta
and KroneckerDelta
are defined to be 1 when the argument is 0 and zero otherwise. Both exhibit the "sifting" property:
{Sum[KroneckerDelta[a, 3] f[a], {a, Infinity}],
Sum[DiscreteDelta[a - 3] f[a], {a, Infinity}]}
{f[3],f[3]}
Similarly, both UnitStep
and HeavisideTheta
plot the same, and act the same in many situations -- you can simply replace one with the other in many of the examples in the Help files, for instance:
Integrate[HeavisideTheta[x Cos[x]], {x, -5, 5}]
and
Integrate[UnitStep[x Cos[x]], {x, -5, 5}]
return the same thing. Yet they are not identical. Consider:
D[HeavisideTheta[t], t]
which returns DiracDelta[t]
vs.
D[UnitStep[t], t]
The question is how to understand the differences in these functions, how to know what situations would call for HeavisideTheta
vs DiracDelta
and when to use KroneckerDelta
instead of DiscreteDelta
. Is there an underlying pattern?