Salta al contenuto
Note per Studenti LTI Systems and Discrete-Time Convolution Report

LTI Systems and Discrete-Time Convolution

In questa pagina 6

LTI systems

A system (U,Y,Σ)(\mathcal{U},\mathcal{Y},\Sigma) is LTI (linear and time-invariant) if

  1. (linearity) Σ[α1u1+α2u2]=α1Σ[u1]+α2Σ[u2]\Sigma[\alpha_1u_1+\alpha_2u_2]=\alpha_1\Sigma[u_1]+\alpha_2\Sigma[u_2];
  2. (time invariance) Σ∘UT=UT∘Σ\Sigma\circ U_T=U_T\circ\Sigma for all TT.

(See Properties of Systemsdefinitions of static, dynamic, time-invariant, causal, anticausal, acausal, omnicausal, linear and BIBO-stable systems, with examples, counterexamples and a long set of worked classification exercises.Properties of Systems →.) Henceforth we assume that Σ\Sigma is LTI.

Impulse response (discrete time)

Consider the Kronecker impulse δ(k)\delta(k) (Discrete-Time Unit Step and Kronecker Impulsedefinition of the discrete unit step and the Kronecker impulse, their relation as discrete derivative and accumulation, and the unit-area, sampling and sifting properties of the impulse.Discrete-Time Unit Step and Kronecker Impulse →).

Definition (impulse response). δ→[Σ]→h\delta\to[\Sigma]\to h, i.e.

Σ[{δ(k)}]={h(k)},\Sigma[\{\delta(k)\}]=\{h(k)\},

and h(k)h(k) is called the impulse response.

By time invariance, a shifted impulse produces a shifted response:

δ(k−k0)→[Σ]→h(k−k0).\delta(k-k_0)\to[\Sigma]\to h(k-k_0).

By linearity, for any complex coefficients αn∈C\alpha_n\in\mathbb{C},

Σ ⁣[∑n=N1N2αn{δ(k−n)}]=∑n=N1N2αn{h(k−n)}.\Sigma\!\left[\sum_{n=N_1}^{N_2}\alpha_n\{\delta(k-n)\}\right]=\sum_{n=N_1}^{N_2}\alpha_n\{h(k-n)\}.

Any bounded-support input is a combination of impulses

Assume that u(k)u(k) is defined over a bounded support [N1,N2][N_1,N_2]. Idea: such u(k)u(k) can be represented through a linear combination of shifted Kronecker impulses, i.e. u(k)=u(k)= linear combination [impulses]. By the sampling property of δ\delta:

{u(k)}=∑n=N1N2u(n) {δ(k−n)}.\{u(k)\}=\sum_{n=N_1}^{N_2}u(n)\,\{\delta(k-n)\}.

Example. Let u(k)=1u(k)=1 for k=±1k=\pm1, u(k)=−2u(k)=-2 for k=0k=0, u(k)=2u(k)=2 for k=5k=5, and 00 otherwise. Then {u(k)}=u(−1){δ(k+1)}+u(0){δ(k)}+u(1){δ(k−1)}+u(5){δ(k−5)}={δ(k+1)}−2{δ(k)}+{δ(k−1)}+2{δ(k−5)}.\{u(k)\}=u(-1)\{\delta(k+1)\}+u(0)\{\delta(k)\}+u(1)\{\delta(k-1)\}+u(5)\{\delta(k-5)\}=\{\delta(k+1)\}-2\{\delta(k)\}+\{\delta(k-1)\}+2\{\delta(k-5)\}.

Superposition and the meaning of h(k)h(k)

This is the superposition principle in action:

{y(k)}=Σ[{u(k)}]=∑n=N1N2u(n){h(k−n)}.\{y(k)\}=\Sigma[\{u(k)\}]=\sum_{n=N_1}^{N_2}u(n)\{h(k-n)\}.

We can remove the braces { }\{\ \} because we have just shown this for every k∈Zk\in\mathbb{Z}. Here is the meaning of h(k)h(k): for an input defined over a bounded support,

y(k)=∑n=−∞+∞h(k−n) u(n)\boxed{y(k)=\sum_{n=-\infty}^{+\infty}h(k-n)\,u(n)}

Convolution (discrete time)

Just a matter of notation:

y(k)=(h∗u)(k)=∑n=−∞+∞h(k−n) u(n).y(k)=(h*u)(k)=\sum_{n=-\infty}^{+\infty}h(k-n)\,u(n).

This operation is called convolution. Clearly ∗* is a linear and time-invariant operator by construction, but let us prove again that ∗* is LTI.

  • Linearity: (h∗(α1u1+α2u2))(k)=∑nh(k−n)(α1u1(n)+α2u2(n))=α1∑nh(k−n)u1(n)+α2∑nh(k−n)u2(n)=α1(h∗u1)(k)+α2(h∗u2)(k).(h*(\alpha_1u_1+\alpha_2u_2))(k)=\sum_{n}h(k-n)\big(\alpha_1u_1(n)+\alpha_2u_2(n)\big)=\alpha_1\sum_nh(k-n)u_1(n)+\alpha_2\sum_nh(k-n)u_2(n)=\alpha_1(h*u_1)(k)+\alpha_2(h*u_2)(k).
  • Time invariance: with m=n−k0m=n-k_0, ∑n=−∞+∞h(k−n) u(n−k0)=∑m=−∞+∞h((k−k0)−m)u(m)=y(k−k0).\sum_{n=-\infty}^{+\infty}h(k-n)\,u(n-k_0)=\sum_{m=-\infty}^{+\infty}h\big((k-k_0)-m\big)u(m)=y(k-k_0).

Convolutional LTI systems

But there is an elephant in the room: what about all those inputs defined over unbounded supports? If, for all k∈Zk\in\mathbb{Z} and all u∈Uu\in\mathcal{U} (possibly defined over unbounded support), it holds that

lim⁡N2→+∞N1→−∞∣y(k)−∑n=N1N2h(k−n) u(n)∣=0,\lim_{\substack{N_2\to+\infty\\N_1\to-\infty}}\left|y(k)-\sum_{n=N_1}^{N_2}h(k-n)\,u(n)\right|=0,

then we can use the convolution also to determine the output y(k)y(k) in response to such u(k)u(k), for a certain LTI system with impulse response h(k)h(k). Those LTI systems for which the above limit is satisfied for all u∈Uu\in\mathcal{U} and all k∈Zk\in\mathbb{Z} are called, with lack of imagination, convolutional LTI systems.

 Set of systems:   +-----------------------------+----------------+
                   |  LTI  (contains the set of   |      LTV       |
                   |  CONVOLUTIONAL LTI systems)  |                |
                   +-----------------------------+----------------+
                   |  NONL-TI                    |    NONL-TV     |
                   +-----------------------------+----------------+

An LTI system that is not convolutional

Yes, you cannot win them all. Let A≠0A\neq0 and

y(k)≡A⋅lim⁡n→−∞u(n),b:=lim⁡n→−∞u(n)y(k)\equiv A\cdot\lim_{n\to-\infty}u(n),\qquad b:=\lim_{n\to-\infty}u(n)

(a constant output AbAb, in general non-zero). It is LTI:

  • L: Σ[α1u1+α2u2]=Alim⁡n→−∞(α1u1(n)+α2u2(n))=α1Σ[u1]+α2Σ[u2]\Sigma[\alpha_1u_1+\alpha_2u_2]=A\lim_{n\to-\infty}(\alpha_1u_1(n)+\alpha_2u_2(n))=\alpha_1\Sigma[u_1]+\alpha_2\Sigma[u_2].
  • TI: trivial, since y(k−n)=y(k)y(k-n)=y(k) for all n∈Zn\in\mathbb{Z}.

Since lim⁡n→−∞δ(n)=0\lim_{n\to-\infty}\delta(n)=0, setting u(k):=δ(k)u(k):=\delta(k) gives y(k)=0y(k)=0 for all k∈Zk\in\mathbb{Z}: the impulse response is h(k)≡0h(k)\equiv0. Notice: take for example u(k):=1(−k)u(k):=\mathbf{1}(-k). Then y(k)≠(h∗u)(k)y(k)\neq(h*u)(k):

∑n=−∞+∞h(k−n) 1(−n)=0≠Ab=y(k),∀k∈Z,\sum_{n=-\infty}^{+\infty}h(k-n)\,\mathbf{1}(-n)=0\neq Ab=y(k),\quad\forall k\in\mathbb{Z},

with b=1b=1 if u(k):=1(−k)u(k):=\mathbf{1}(-k).

Henceforth we focus only on convolutional LTI systems. It can be proven that this kind of system is dense in ℓ1\ell^1 and ℓ2\ell^2, so there are always infinitely many convolutional LTI systems waiting for you.

Step response of a convolutional LTI system (discrete)

Definition (step response). It is the output with respect to u(k)=1(k)u(k)=\mathbf{1}(k), often indicated as h−1(k)h_{-1}(k).

Classic example. Let h(k)=γk1(k)h(k)=\gamma^k\mathbf{1}(k), γ∈(0,1)\gamma\in(0,1) (stems 1,γ,γ2,…1,\gamma,\gamma^2,\dots for k≥0k\ge0, zero for k<0k<0). Then

h−1(k)=∑n=−∞+∞h(k−n)u(n)=∑n=−∞+∞γk−n 1(k−n) 1(n).h_{-1}(k)=\sum_{n=-\infty}^{+\infty}h(k-n)u(n)=\sum_{n=-\infty}^{+\infty}\gamma^{k-n}\,\mathbf{1}(k-n)\,\mathbf{1}(n).

The factor 1(k−n)\mathbf{1}(k-n) is active for k−n≥0k-n\ge0 and 1(n)\mathbf{1}(n) for n≥0n\ge0, so

h−1(k)=∑n=0kγk−n=m=k−n∑m=0kγm={0,k<01−γk+11−γ,k≥0 = 1−γk+11−γ 1(k).h_{-1}(k)=\sum_{n=0}^{k}\gamma^{k-n}\overset{m=k-n}{=}\sum_{m=0}^{k}\gamma^m=\begin{cases}0,&k<0\\[1mm]\dfrac{1-\gamma^{k+1}}{1-\gamma},&k\ge0\end{cases}\ =\ \frac{1-\gamma^{k+1}}{1-\gamma}\,\mathbf{1}(k).

The step response is 00 for k<0k<0, equals 11 at k=0k=0, and increases monotonically towards the horizontal asymptote

lim⁡k→+∞h−1(k)=11−γ.\lim_{k\to+\infty}h_{-1}(k)=\frac{1}{1-\gamma}.

Exercise: this system is BIBO stable

Show that Σ:h(k)=γk1(k)\Sigma:h(k)=\gamma^k\mathbf{1}(k) is BIBO stable. Proof. With ∣u(k)∣≤Mu|u(k)|\le M_u:

∣y(k)∣=∣∑n=−∞+∞γk−n1(k−n)u(n)∣≤triangle ineq.∑n=−∞+∞γk−n1(k−n)∣u(n)∣≤Mu∑n=−∞kγk−n=m:=k−nMu∑m=0+∞γm=Mu1−γ=:My,|y(k)|=\left|\sum_{n=-\infty}^{+\infty}\gamma^{k-n}\mathbf{1}(k-n)u(n)\right|\overset{\text{triangle ineq.}}{\le}\sum_{n=-\infty}^{+\infty}\gamma^{k-n}\mathbf{1}(k-n)|u(n)|\le M_u\sum_{n=-\infty}^{k}\gamma^{k-n}\overset{m:=k-n}{=}M_u\sum_{m=0}^{+\infty}\gamma^m=\frac{M_u}{1-\gamma}=:M_y,

using the geometric series with γ∈(0,1)\gamma\in(0,1). ■\blacksquare

Observation from the lecture: it looks like there is a deep relation between absolutely summable impulse responses and BIBO stability.

Existence (finiteness) of the discrete convolution

Previously we introduced convolutional LTI systems, for which, for all k∈Zk\in\mathbb{Z},

y(k)=∑n=−∞+∞h(k−n) u(n)=:(h∗u)(k).y(k)=\sum_{n=-\infty}^{+\infty}h(k-n)\,u(n)=:(h*u)(k).

Forget for a moment the meaning of y,h,uy,h,u: what are the conditions for ∗* to exist finite? Short answer: if h,u∈ℓ1h,u\in\ell^1 then there exists y(k)=(h∗u)(k)y(k)=(h*u)(k) with ∣y(k)∣<+∞|y(k)|<+\infty for all k∈Zk\in\mathbb{Z}.

Recall ℓ1:={{x(k)}  ∣  ∑n=−∞+∞∣x(n)∣<+∞}\ell^1:=\left\{\{x(k)\}\;\Big|\;\sum_{n=-\infty}^{+\infty}|x(n)|<+\infty\right\}. In general we can define, for every p∈Rp\in\mathbb{R}, p>0p>0, the space

ℓp:={{x(k)}  ∣  ∑n=−∞+∞∣x(n)∣p<+∞}.\ell^p:=\left\{\{x(k)\}\;\Big|\;\sum_{n=-\infty}^{+\infty}|x(n)|^p<+\infty\right\}.

There exist extensions of ℓp\ell^p for p→0p\to0 and p→+∞p\to+\infty via pp-norms (see the appendix on Lebesgue spaces).

Theorem. If h,u∈ℓ1h,u\in\ell^1 then ∥y∥1≤∥h∥1⋅∥u∥1<+∞\|y\|_1\le\|h\|_1\cdot\|u\|_1<+\infty. Moreover y∈ℓ1y\in\ell^1.

Proof. ∥y∥1=∑m=−∞+∞∣y(m)∣=∑m∣∑nh(m−n)u(n)∣≤∑m∑n∣h(m−n)∣ ∣u(n)∣.\|y\|_1=\sum_{m=-\infty}^{+\infty}|y(m)|=\sum_{m}\left|\sum_nh(m-n)u(n)\right|\le\sum_m\sum_n|h(m-n)|\,|u(n)|. By Tonelli's theorem we can exchange the order of the sums: =(∑m=−∞+∞∣h(m−n)∣)(∑n=−∞+∞∣u(n)∣)=(∑m=−∞+∞∣h(m)∣)(∑n=−∞+∞∣u(n)∣)=∥h∥1∥u∥1.=\left(\sum_{m=-\infty}^{+\infty}|h(m-n)|\right)\left(\sum_{n=-\infty}^{+\infty}|u(n)|\right)=\left(\sum_{m=-\infty}^{+\infty}|h(m)|\right)\left(\sum_{n=-\infty}^{+\infty}|u(n)|\right)=\|h\|_1\|u\|_1. Under the assumptions this gives ∥y∥1≤∥h∥1∥u∥1<+∞\|y\|_1\le\|h\|_1\|u\|_1<+\infty, hence y∈ℓ1y\in\ell^1. ■\blacksquare

Properties and worked examples of the convolution sum are in Properties of Discrete-Time Convolutionalgebraic properties of the discrete convolution (time invariance, commutativity, associativity, bilinearity, neutral element, support), its link with correlation and a set of worked examples including the rectangle-by-rectangle graphical method.Properties of Discrete-Time Convolution →; the continuous-time version is in Continuous-Time Convolutioncontinuous-time impulse response and the convolution integral for LTI systems, conditions for its existence in L1 and L2, its properties and the step response of the first-order system h(t) = e^{-gamma t} 1(t).Continuous-Time Convolution →.

Versione ripasso

  • LTI: linear (Σ[α1u1+α2u2]=α1Σ[u1]+α2Σ[u2]\Sigma[\alpha_1u_1+\alpha_2u_2]=\alpha_1\Sigma[u_1]+\alpha_2\Sigma[u_2]) and time-invariant (Σ∘UT=UT∘Σ\Sigma\circ U_T=U_T\circ\Sigma).
  • Impulse response: Σ[{δ(k)}]={h(k)}\Sigma[\{\delta(k)\}]=\{h(k)\}. By TI, δ(k−k0)↦h(k−k0)\delta(k-k_0)\mapsto h(k-k_0).
  • Key idea: a bounded-support input is {u(k)}=∑n=N1N2u(n){δ(k−n)}\{u(k)\}=\sum_{n=N_1}^{N_2}u(n)\{\delta(k-n)\} (sampling property), so by linearity and TI y(k)=∑n=−∞+∞h(k−n)u(n)=(h∗u)(k).y(k)=\sum_{n=-\infty}^{+\infty}h(k-n)u(n)=(h*u)(k).
  • Convolution is LTI (proof by linearity of the sum and the substitution m=n−k0m=n-k_0).
  • Convolutional LTI systems: those for which the finite sums ∑n=N1N2\sum_{n=N_1}^{N_2} converge to y(k)y(k) for every uu; not every LTI system is convolutional (counterexample y(k)=Alim⁡n→−∞u(n)y(k)=A\lim_{n\to-\infty}u(n), which has h≡0h\equiv0 but outputs AA for u=1(−k)u=\mathbf{1}(-k)).
  • Step response h−1h_{-1}: output for u=1(k)u=\mathbf{1}(k). For h(k)=γk1(k)h(k)=\gamma^k\mathbf{1}(k), γ∈(0,1)\gamma\in(0,1): h−1(k)=1−γk+11−γ1(k)→11−γh_{-1}(k)=\frac{1-\gamma^{k+1}}{1-\gamma}\mathbf{1}(k)\to\frac1{1-\gamma}.
  • BIBO stability of that system: ∣y(k)∣≤Mu∑m≥0γm=Mu1−γ|y(k)|\le M_u\sum_{m\ge0}\gamma^m=\frac{M_u}{1-\gamma}. Link to guess: h∈ℓ1h\in\ell^1 and BIBO stability.
  • Existence theorem: h,u∈ℓ1⇒∥y∥1≤∥h∥1∥u∥1h,u\in\ell^1\Rightarrow\|y\|_1\le\|h\|_1\|u\|_1, so y∈ℓ1y\in\ell^1 (triangle inequality, Tonelli, shift of index in the sum).
  • ℓp\ell^p spaces: ∑∣x(n)∣p<+∞\sum|x(n)|^p<+\infty.
  • Typical mistakes: forgetting to restrict the sum to the "active" range of the two step functions; thinking every LTI system is a convolution; flipping hh incorrectly (the sum uses h(k−n)h(k-n) with nn the running index).

Teoria collegata