Is δ(n)=u(n)−u(n−1)δ(n)=u(n)−u(n−1)

信息处理 discrete-signals
2022-02-06 22:52:50

In my text book, Digital Signal Processing, Principles, Algorithms, and Applications by John Proakis, it asks the question to show how

δ(n)=u(n)u(n1).

I can understand how this is true if nu(n)

1个回答

You are correct that this equality is only true when n

Explanation

There are in fact 2 different flavors of the delta function.

  1. The Dirac delta function is defined as

    δ(x)=0x0
    δ(x)0x=0
    δ(x)dx=1
    You can sense from at least the third part of this definition that the Dirac delta (impulse function) is a continuous function over all R. It can also have meaning in C and in multiple dimensions. Under this definition, the function is only non-zero exactly at x=0. It's 0 everywhere else including x=0.5, x=0.00000001, x=π, etc. In this case
    u(x)u(x1)=rect(x0.5)δ(x)

  2. The Kronecker delta function is a function of two discrete variables and is defined as

    δi,j={1i=j0ij
    A special case of the Kronecker delta function is known as the unit sample function δ[n]δn,0 which comes up in digital signal processing often. This can be defined more simply as
    δ[n]={1n=00n is another integer
    You can see from this definition that the Kronecker Delta function and therefore the unit sample function are discrete functions that only have meaning as functions of integers. For example, δ[0.5] does not make any sense because 0.5 does not belong to an integer set. In this case
    u[n]u[n1]=δ[n]
    where the unit step function u[n] is a sampled version of the continuous unit step function with sample rate T.
    u[n]=u(nT)

To alleviate some of the confusion, authors tend to use the variable n when dealing with discrete-time functions, and the variable t when dealing with continuous-time functions. You will also notice from my answer that people also often use brackets instead of parentheses when dealing with discrete functions, although Proakis does not do this. For this question you need to assume n is an integer based on the fact you're being asked to prove the equality.