Salta al contenuto
Note per Studenti Properties of Systems Report

Properties of Systems

In questa pagina 6

Throughout, Σ:U→Y\Sigma:\mathcal{U}\to\mathcal{Y} is a system as in Mathematical Models of Systemswhat a system is (a triple of input family, output family and a map), examples of physical and artificial systems, basic operators (shift, scaling, integrator, difference, derivative, sampler), the RC circuit and series and parallel interconnections.Mathematical Models of Systems →, and UTU_T is the time-shift operator.

Static and dynamic systems

Definition (static, algebraic or memoryless system). A system is static if there exists a static relation, namely a function ff such that

y(t)=f(t,u(t))∀t∈R, ∀u(t)∈U.y(t)=f(t,u(t))\qquad\forall t\in\mathbb{R},\ \forall u(t)\in\mathcal{U}.

Meaning: if I know the present information then I know the output.

  • Ohm's law v(t)=Ri(t)v(t)=Ri(t) is static (u(t)=v(t)u(t)=v(t), y(t)=i(t)y(t)=i(t) or vice versa).
  • y(k)=sin⁡(u(k))+u(k)2y(k)=\sin(u(k))+u(k)^2 is static.

Definition (dynamic, nonalgebraic or memory system). If a system is not static then it is dynamic. Meaning: the output is also determined by past or future inputs. Examples: the temporal shift UTU_T, the temporal scaling SαS_\alpha, the integrator.

Time-invariant systems

Definition (time-invariant system). Since systems are operators, a system Σ\Sigma is time-invariant if

Σ∘UT=UT∘Σ∀T∈R.\Sigma\circ U_T=U_T\circ\Sigma\qquad\forall T\in\mathbb{R}.

Meaning: the output y(t)=f(t,u(⋅))y(t)=f(\cancel{t},u(\cdot)) does not depend on tt explicitly, but only implicitly via the input u(⋅)u(\cdot).

Causality

Definition (causal system). Σ\Sigma is causal if y(t)y(t) only depends on {u(τ)∣∀τ≤t}\{u(\tau)\mid\forall\tau\le t\}. Meaning: no need to know the future inputs to determine the output.

Key observation: all physically realizable systems (e.g. the RC circuit) are causal.

Example (analysis of demographic trends). Let kk be the current year, u(k)u(k) the number of births every year and y(k)y(k) the average number of people born since the year k−Nk-N, N≥0N\ge0:

ΣADT: y(k)=1N+1∑n=0Nu(k−n).\Sigma_{ADT}:\ y(k)=\frac{1}{N+1}\sum_{n=0}^{N}u(k-n).

It is a dynamic causal system, because we cannot use future information on births, only past and present.

Definition (anticausal system). Σ\Sigma is anticausal if y(t)y(t) only depends on {u(τ)∣∀τ≥t}\{u(\tau)\mid\forall\tau\ge t\}. Meaning: no need to know the "past" inputs. This can look strange, but tt or kk do not always mean "time".

Example (pattern recognition in image processing). Consider an array of images indexed k=0,1,…,4k=0,1,\dots,4 (a black background at k=0k=0 plus partial images). By inverting the indexes causality arises:

image(0)=black+∑k=14image(k).\text{image}(0)=\text{black}+\sum_{k=1}^{4}\text{image}(k).

Observation: in general, if Σ\Sigma is anticausal then R∘Σ\mathcal{R}\circ\Sigma is causal.

Definition (acausal systems). All systems that are neither causal nor anticausal. Example: y(k)=u(−k)y(k)=u(-k). Careful: the temporal inversion R\mathcal{R} is acausal.

Definition (omnicausal system). Σ\Sigma is omnicausal if y(t)y(t) is equally determined ∀t∈R\forall t\in\mathbb{R} by u(τ)u(\tau) such that {τ≥t}\{\tau\ge t\} or {τ≤t}\{\tau\le t\}. Example: the derivative x(t)→[ddt]→x˙(t)=lim⁡∣Δt∣→0x(t+Δt)−x(t)Δtx(t)\to[\frac{d}{dt}]\to\dot x(t)=\lim_{|\Delta t|\to0}\frac{x(t+\Delta t)-x(t)}{\Delta t}. Super careful: continuous-time derivative operators are omnicausal if the input space is contained in C1\mathcal{C}^1 (but in general they are acausal). Also: if Σ\Sigma is static then Σ\Sigma is omnicausal.

Linear systems

Definition (linear system). Σ\Sigma is linear if it is a linear operator, i.e. if the two properties hold:

  1. Additivity: Σ[u1+u2]=Σ[u1]+Σ[u2]\Sigma[u_1+u_2]=\Sigma[u_1]+\Sigma[u_2], ∀u1,u2∈U\forall u_1,u_2\in\mathcal{U}.
  2. Homogeneity: Σ[αu]=αΣ[u]\Sigma[\alpha u]=\alpha\Sigma[u], ∀u∈U\forall u\in\mathcal{U}, ∀α∈C\forall\alpha\in\mathbb{C}.

Meaning: the output can be computed as the superposition of the effects caused by each input.

Definition (nonlinear system). A system that is not linear.

Linear examples: the RC circuit vs(t)→vc(t)v_s(t)\to v_c(t); the time-shift operator UTU_T; the temporal scaling operator SαS_\alpha; amplifiers y(t)=Au(t)y(t)=Au(t), A∈CA\in\mathbb{C}; the integrator; the derivative operator and the difference operator.

Nonlinear examples: y(t)=u(t−1)u(t+1)y(t)=u(t-1)u(t+1); y(k)=Re⁡[u(k)]y(k)=\operatorname{Re}[u(k)]; a lot of systems in physics and biology, e.g. the Van der Pol oscillator and the Lotka-Volterra model for preys and predators.

BIBO stability

Definition (BIBO stability). BIBO = bounded input, bounded output. Σ:u(t)→y(t)\Sigma:u(t)\to y(t) is BIBO stable if there exists MuM_u such that ∣u(t)∣≤Mu|u(t)|\le M_u implies that there exists MyM_y such that ∣y(t)∣≤My|y(t)|\le M_y for all t∈Rt\in\mathbb{R}. The same definition holds in discrete time.

Examples of BIBO-stable systems:

  • v(t)=Ri(t)v(t)=Ri(t): Mv=RMiM_v=RM_i.
  • Moving average y(k)=1N+1∑n=0Nu(k−n)y(k)=\frac1{N+1}\sum_{n=0}^{N}u(k-n): My=N+1N+1Mu=MuM_y=\frac{N+1}{N+1}M_u=M_u.
  • The difference operator: ∣y(k)∣=∣u(k)−u(k−1)∣≤∣u(k)∣+∣u(k−1)∣≤2Mu=:My|y(k)|=|u(k)-u(k-1)|\le|u(k)|+|u(k-1)|\le2M_u=:M_y.

Counterexamples (UNSTABLE systems):

  • The integrator is not BIBO stable. Take u(k):=1(k)u(k):=\mathbf{1}(k). Then y(k)=∑m=−∞ku(m)=1+k→+∞y(k)=\sum_{m=-\infty}^{k}u(m)=1+k\to+\infty as k→+∞k\to+\infty although ∣u(k)∣≤1=Mu|u(k)|\le1=M_u for all kk.
  • The derivative operator is not BIBO stable. Take u(t)=1(t)u(t)=\mathbf{1}(t), ∣u(t)∣≤1|u(t)|\le1, but ddt1(t)=δ(t)\frac{d}{dt}\mathbf{1}(t)=\delta(t) diverges at t=0t=0. Discontinuities can be avoided by taking u(t)=sin⁡(et)u(t)=\sin(e^t): ∣u(t)∣≤1=Mu|u(t)|\le1=M_u for all tt, but ∣y(t)∣=et∣cos⁡(et)∣→+∞|y(t)|=e^t|\cos(e^t)|\to+\infty as tt grows.

Exercises on systems and operators

Time invariance

  1. Determine whether the following systems are time-invariant.

    • 1a) y(k)=ku(k)y(k)=ku(k). Take u(k)=1u(k)=1 for all k∈Zk\in\mathbb{Z}: Σ[Uk0[{u(k)}]]=Σ[{1}]={k}\Sigma[U_{k_0}[\{u(k)\}]]=\Sigma[\{1\}]=\{k\}, while Uk0[Σ[{u(k)}]]=Uk0[{k}]={k−k0}U_{k_0}[\Sigma[\{u(k)\}]]=U_{k_0}[\{k\}]=\{k-k_0\}. They differ, so the system is time varying.
    • 1b) y(t)=e−tu(t)y(t)=e^{-t}u(t). Take u(t)=1u(t)=1: Σ[Ut0[{u}]]={e−t}\Sigma[U_{t_0}[\{u\}]]=\{e^{-t}\}, while Ut0[Σ[{u}]]={e−(t−t0)}U_{t_0}[\Sigma[\{u\}]]=\{e^{-(t-t_0)}\}: time varying.
    • 1c) SαS_\alpha, ∀α∈R∖{0}\forall\alpha\in\mathbb{R}\setminus\{0\}. Sα[Ut0[{u(t)}]]=Sα[{u(t−t0)}]={u(αt−t0)}S_\alpha[U_{t_0}[\{u(t)\}]]=S_\alpha[\{u(t-t_0)\}]=\{u(\alpha t-t_0)\} and Ut0[Sα[{u(t)}]]=Ut0[{u(αt)}]={u(α(t−t0))}U_{t_0}[S_\alpha[\{u(t)\}]]=U_{t_0}[\{u(\alpha t)\}]=\{u(\alpha(t-t_0))\}. Equality ∀t,∀t0\forall t,\forall t_0 requires α(t−t0)=αt−t0  ⟺  αt0=t0  ⟺  α=1\alpha(t-t_0)=\alpha t-t_0\iff\alpha t_0=t_0\iff\alpha=1. So SαS_\alpha is time-invariant iff α=1\alpha=1 (iff means "if and only if").
  2. Draw the following transformations for the input u(t)=rect⁡ ⁣(t4)u(t)=\operatorname{rect}\!\left(\frac t4\right) (a rectangle of height 11 on [−2,2][-2,2]).

    • 2a) Σ=S2\Sigma=S_2: y(t)=rect⁡ ⁣(t2)y(t)=\operatorname{rect}\!\left(\frac t2\right), support [−1,1][-1,1].
    • 2b) Σ=U2\Sigma=U_2: y(t)=rect⁡ ⁣(t−24)y(t)=\operatorname{rect}\!\left(\frac{t-2}{4}\right), support [0,4][0,4].
    • 2c) Σ=S2∘U2\Sigma=S_2\circ U_2: y(t)=rect⁡ ⁣(t−12)y(t)=\operatorname{rect}\!\left(\frac{t-1}{2}\right), support [0,2][0,2].
    • 2d) Σ=U2∘S2\Sigma=U_2\circ S_2: y(t)=rect⁡ ⁣(t2−1)y(t)=\operatorname{rect}\!\left(\frac t2-1\right), support [1,3][1,3].

    Since 2c) and 2d) differ, scaling SαS_\alpha is not generally time-invariant.

Cascade of nonlinear systems

  1. Is it true that the cascade of two nonlinear systems is always nonlinear? No. Counterexample: Σ1:u(t)↦u(t)+3\Sigma_1:u(t)\mapsto u(t)+3 and Σ2:u(t)↦u(t)−3\Sigma_2:u(t)\mapsto u(t)-3. Then Σ1[α1u1+α2u2]=α1u1+α2u2+3≠α1(u1+3)+α2(u2+3)=α1Σ1[u1]+α2Σ1[u2],\Sigma_1[\alpha_1u_1+\alpha_2u_2]=\alpha_1u_1+\alpha_2u_2+3\neq\alpha_1(u_1+3)+\alpha_2(u_2+3)=\alpha_1\Sigma_1[u_1]+\alpha_2\Sigma_1[u_2], so Σ1\Sigma_1 is nonlinear and similarly Σ2\Sigma_2 is nonlinear. However (Σ1∘Σ2)[α1u1+α2u2]=Σ1[α1u1+α2u2−3]=α1u1+α2u2=α1(Σ1∘Σ2)[u1]+α2(Σ1∘Σ2)[u2],(\Sigma_1\circ\Sigma_2)[\alpha_1u_1+\alpha_2u_2]=\Sigma_1[\alpha_1u_1+\alpha_2u_2-3]=\alpha_1u_1+\alpha_2u_2=\alpha_1(\Sigma_1\circ\Sigma_2)[u_1]+\alpha_2(\Sigma_1\circ\Sigma_2)[u_2], so Σ1∘Σ2\Sigma_1\circ\Sigma_2 is linear.

Characterization of systems

  1. Characterize the following systems, telling whether they are S = static, C = causal, A = anticausal, TI = time-invariant, L = linear, B = BIBO stable.

    Observation: if Σ\Sigma is S then Σ\Sigma is C and A (i.e. Σ\Sigma is omnicausal), so we do not need to specify every time that Σ\Sigma is C and A if it is S.

    system properties
    4a y(t)=u(t−2)+u(2−t)y(t)=u(t-2)+u(2-t) L, B
    4b y(t)=cos⁡(3t)u(t)y(t)=\cos(3t)u(t) S, L, B
    4c y(t)=∫−∞2tu(τ) dτy(t)=\int_{-\infty}^{2t}u(\tau)\,d\tau L
    4d y(t)=du(t)dty(t)=\frac{du(t)}{dt} with U=C1\mathcal{U}=\mathcal{C}^1 L, TI, C and A (omnicausal)
    4e y(t)=0y(t)=0 for t<0t<0, y(t)=u(t)+u(t−2)y(t)=u(t)+u(t-2) for t≥0t\ge0 C, L, B
    4f y(t)=0y(t)=0 if u(t)<0u(t)<0, y(t)=u(t)+u(t−2)y(t)=u(t)+u(t-2) if u(t)≥0u(t)\ge0 C, TI, B
    4g y(t)=u ⁣(t3)y(t)=u\!\left(\frac t3\right) L, B
    4h y(k)=u(k−2)−2u(k−8)y(k)=u(k-2)-2u(k-8) C, L, TI, B
    4i y(k)=u(−k)y(k)=u(-k) L, B
    4j y(k)=u(k)y(k)=u(k) for k≠0k\neq0, y(0)=0y(0)=0 S, L, B

    Justifications given in the lecture:

    • 4c) is not TI: Σ[u(t−t0)]=∫−∞2tu(τ−t0) dτ\Sigma[u(t-t_0)]=\int_{-\infty}^{2t}u(\tau-t_0)\,d\tau; with σ=τ−t0\sigma=\tau-t_0 this is ∫−∞2t−t0u(σ) dσ=∫−∞2(t−t02)u(σ) dσ=y ⁣(t−t02)≠y(t−t0)\int_{-\infty}^{2t-t_0}u(\sigma)\,d\sigma=\int_{-\infty}^{2\left(t-\frac{t_0}{2}\right)}u(\sigma)\,d\sigma=y\!\left(t-\frac{t_0}{2}\right)\neq y(t-t_0).
    • 4e) is not TI: Σ[u(t−t0)]\Sigma[u(t-t_0)] is 00 for t<0t<0 and u(t−t0)+u(t−t0−2)u(t-t_0)+u(t-t_0-2) for t≥0t\ge0, whereas y(t−t0)y(t-t_0) switches at t<t0t<t_0 versus t≥t0t\ge t_0: mismatch of the switching instant.

Here the system classes are tools; the central object of the next notes is the class of systems that are both linear and time-invariant: see LTI Systems and Discrete-Time ConvolutionLTI systems are completely described by their impulse response; the output is the discrete convolution of impulse response and input, valid for convolutional LTI systems, with step response, BIBO example and the l1 existence theorem.LTI Systems and Discrete-Time Convolution →.

Versione ripasso

  • Static (memoryless): y(t)=f(t,u(t))y(t)=f(t,u(t)) (e.g. v=Riv=Ri, y=sin⁡u+u2y=\sin u+u^2); otherwise dynamic (shift, scaling, integrator).
  • Time-invariant: Σ∘UT=UT∘Σ\Sigma\circ U_T=U_T\circ\Sigma for all TT; yy depends on tt only through the input. ku(k)ku(k) and e−tu(t)e^{-t}u(t) are time varying; SαS_\alpha is TI iff α=1\alpha=1.
  • Causal: y(t)y(t) depends on u(τ)u(\tau), τ≤t\tau\le t (all physical systems). Anticausal: τ≥t\tau\ge t. Acausal: neither (e.g. y(k)=u(−k)y(k)=u(-k), the reversal R\mathcal{R}). Omnicausal: equally causal and anticausal (static systems; derivative on C1\mathcal{C}^1). If Σ\Sigma is anticausal then R∘Σ\mathcal{R}\circ\Sigma is causal.
  • Linear: additivity Σ[u1+u2]=Σ[u1]+Σ[u2]\Sigma[u_1+u_2]=\Sigma[u_1]+\Sigma[u_2] and homogeneity Σ[αu]=αΣ[u]\Sigma[\alpha u]=\alpha\Sigma[u], α∈C\alpha\in\mathbb{C}; a necessary condition is Σ[0]=0\Sigma[0]=0.
  • BIBO stable: ∣u∣≤Mu⇒∣y∣≤My|u|\le M_u\Rightarrow|y|\le M_y. Stable: amplifier, moving average (My=MuM_y=M_u), difference (My=2MuM_y=2M_u). Unstable: integrator (u=1(k)u=\mathbf{1}(k) gives y=1+ky=1+k), derivative (u=sin⁡(et)u=\sin(e^t) gives ∣y∣=et∣cos⁡et∣|y|=e^t|\cos e^t|).
  • Interconnection fact: the cascade of two nonlinear systems can be linear (u+3u+3 followed by u−3u-3 is the identity).
  • Order matters: S2∘U2≠U2∘S2S_2\circ U_2\ne U_2\circ S_2 (rect⁡(t−12)\operatorname{rect}(\frac{t-1}{2}) vs rect⁡(t2−1)\operatorname{rect}(\frac t2-1) for u=rect⁡(t4)u=\operatorname{rect}(\frac t4)).
  • Classification results (L linear, B stable, TI, C, S): y=u(t−2)+u(2−t)y=u(t-2)+u(2-t): L,B; cos⁡(3t)u(t)\cos(3t)u(t): S,L,B; ∫−∞2tu\int_{-\infty}^{2t}u: L; u˙\dot u: L,TI,omnicausal; u(t/3)u(t/3): L,B; u(k−2)−2u(k−8)u(k-2)-2u(k-8): C,L,TI,B; u(−k)u(-k): L,B; u(k)u(k) with y(0)=0y(0)=0: S,L,B.
  • Typical mistakes: forgetting that static implies causal and anticausal; calling a system TI without testing a shifted input; assuming the cascade of nonlinear systems is nonlinear; calling the derivative causal or stable.

Teoria collegata