Salta al contenuto
Note per Studenti Natural and Forced Response of Causal LTI Systems Report

Natural and Forced Response of Causal LTI Systems

In questa pagina 4

Recap and the homogeneous Cauchy problem

We want to solve the general Cauchy problem ΣN:{∑n=0Nandndtny(t)=∑m=0Mbmdmdtmu(t)y(t0)=y0,0, ddty(t0)=y0,1, …, dN−1dtN−1y(t0)=y0,N−1an,bm∈R, N≥1, aN=1, bM≠0.\Sigma_N:\quad\begin{cases}\displaystyle\sum_{n=0}^Na_n\frac{d^n}{dt^n}y(t)=\sum_{m=0}^Mb_m\frac{d^m}{dt^m}u(t)\\[6pt]y(t_0)=y_{0,0},\ \frac d{dt}y(t_0)=y_{0,1},\ \dots,\ \frac{d^{N-1}}{dt^{N-1}}y(t_0)=y_{0,N-1}\end{cases} \qquad a_n,b_m\in\mathbb{R},\ N\ge1,\ a_N=1,\ b_M\ne0 . Its solution is y(t)=yH(t)+yP(t)y(t)=y_H(t)+y_P(t) (homogeneous plus particular), where, from Linear Constant-Coefficient Differential EquationsContinuous-time LTI convolutional systems are described by linear constant-coefficient ODEs whose general solution is a homogeneous part, a combination of modes t^m e^{pt} built from the roots of the characteristic polynomial, plus a particular part; boundary conditions pick one solution of the family.Linear Constant-Coefficient Differential Equations →, yH(t)=∑ℓ=1Ncℓψℓ(t)=∑i=1r∑m=0Ni−1ci,m tmepit,y_H(t)=\sum_{\ell=1}^Nc_\ell\psi_\ell(t)=\sum_{i=1}^r\sum_{m=0}^{N_i-1}c_{i,m}\,t^me^{p_it}, the ψℓ\psi_\ell being the modes. Still, a couple of things are missing: the constants cℓc_\ell (that is ci,mc_{i,m}) have to be determined, and we should find a way to determine yP(t)y_P(t).

Theorem. Let t0∈Rt_0\in\mathbb{R} and y0=[y0,0y0,1⋮y0,N−1]∈CN\mathbf{y}_0=\begin{bmatrix}y_{0,0}\\ y_{0,1}\\ \vdots\\ y_{0,N-1}\end{bmatrix}\in\mathbb{C}^N. Then there exists a unique solution yHy_H of the (HE) such that [yH(t0)ddtyH(t0)⋮dN−1dtN−1yH(t0)]=y0  ⟺  YH has dimension N.\begin{bmatrix}y_H(t_0)\\ \frac d{dt}y_H(t_0)\\ \vdots\\ \frac{d^{N-1}}{dt^{N-1}}y_H(t_0)\end{bmatrix}=\mathbf{y}_0\iff\mathcal{Y}_H\text{ has dimension }N . Proof (as stated in the notes): it is a corollary of the Picard-Lindelof theorem that leverages the definition of "basis" and the Rouche-Capelli theorem.

Example. d2dt2y+3ddty+2y=0\dfrac{d^2}{dt^2}y+3\dfrac d{dt}y+2y=0: p2+3p+2=0p^2+3p+2=0, p1=−1p_1=-1, p2=−2p_2=-2, so yH(t)=c1e−t+c2e−2ty_H(t)=c_1e^{-t}+c_2e^{-2t}. With t0=0t_0=0 and y0=[y0,0, y0,1]T\mathbf{y}_0=[y_{0,0},\,y_{0,1}]^T given: y(0)=c1+c2y(0)=c_1+c_2 and dydt(0)=−c1−2c2\frac{dy}{dt}(0)=-c_1-2c_2. To find c1,c2c_1,c_2 solve [11−1−2][c1c2]=[y0,0y0,1].\begin{bmatrix}1&1\\-1&-2\end{bmatrix}\begin{bmatrix}c_1\\c_2\end{bmatrix}=\begin{bmatrix}y_{0,0}\\y_{0,1}\end{bmatrix}. This matrix is always invertible because the modes are linearly independent, as they form a basis of YH\mathcal{Y}_H.

Wronskian matrix

The theorem determines the solution of all Cauchy problems related to homogeneous equations. In general, with yH(t)=∑ℓ=1Ncℓψℓ(t)y_H(t)=\sum_{\ell=1}^Nc_\ell\psi_\ell(t) and boundary conditions given at t0t_0: [yH(t0)ddtyH(t0)⋮dN−1dtN−1yH(t0)]⏟given BCs=y0=[ψ1(t0)⋯ψN(t0)ddtψ1(t0)⋯ddtψN(t0)⋮⋮dN−1dtN−1ψ1(t0)⋯dN−1dtN−1ψN(t0)]⏟W: Wronskian matrix evaluated at t0[c1c2⋮cN].\underbrace{\begin{bmatrix}y_H(t_0)\\ \frac d{dt}y_H(t_0)\\ \vdots\\ \frac{d^{N-1}}{dt^{N-1}}y_H(t_0)\end{bmatrix}}_{\text{given BCs}=\mathbf{y}_0} =\underbrace{\begin{bmatrix}\psi_1(t_0)&\cdots&\psi_N(t_0)\\ \frac d{dt}\psi_1(t_0)&\cdots&\frac d{dt}\psi_N(t_0)\\ \vdots&&\vdots\\ \frac{d^{N-1}}{dt^{N-1}}\psi_1(t_0)&\cdots&\frac{d^{N-1}}{dt^{N-1}}\psi_N(t_0)\end{bmatrix}}_{W:\ \text{Wronskian matrix evaluated at }t_0} \begin{bmatrix}c_1\\c_2\\ \vdots\\c_N\end{bmatrix}. Solution:   [c^1c^2⋮c^N]=W−1[y0,0y0,1⋮y0,N−1]  (the c^i,m in the other indexing).\boxed{\;\begin{bmatrix}\hat c_1\\ \hat c_2\\ \vdots\\ \hat c_N\end{bmatrix}=W^{-1}\begin{bmatrix}y_{0,0}\\y_{0,1}\\ \vdots\\y_{0,N-1}\end{bmatrix}\;}\qquad\text{(the }\hat c_{i,m}\text{ in the other indexing).}

The space of switch-on signals

Back to the full ODE ΣN\Sigma_N (N≥1N\ge1, aN=1a_N=1). Supposing ΣN\Sigma_N causal, we want a solution y(t)y(t). We seek a particular solution yF(t)y_F(t) expressed as the convolution of a causal impulse response and an input u(t)u(t) such that u(t)=0u(t)=0 for all t<t0t<t_0. Also, the Picard-Lindelof conditions have to be satisfied, so it is better to put ourselves in a "good framework" that characterizes which kind of u(t)u(t) can be considered.

Definition (switch-on signals). St0:={{u(t)} ∣ ∃ t0 for which u(t)=0  ∀t<t0}.\mathcal{S}_{t_0}:=\Big\{\{u(t)\}\ \Big|\ \exists\,t_0\text{ for which }u(t)=0\ \ \forall t<t_0\Big\}. It can be proven that St0\mathcal{S}_{t_0} is a Hilbert space.

Fact. If u(t)∈St0u(t)\in\mathcal{S}_{t_0} does not depend on y(t)y(t) then there exists a unique particular solution yF(t)y_F(t) such that yF(t)=0y_F(t)=0 for all t<t0t<t_0.

Proof.

  • Existence. Let yP(t)y_P(t) be a solution of ΣN\Sigma_N. For t<t0t<t_0, yP(t)y_P(t) coincides with a homogeneous solution yH(t)y_H(t) because u∈St0u\in\mathcal{S}_{t_0} (the input is zero there). Define yF(t):=yP(t)−yH(t)y_F(t):=y_P(t)-y_H(t); so yF(t)y_F(t) exists.
  • Uniqueness. Assume there exist yF1,yF2y_{F1},y_{F2} solving ΣN\Sigma_N and such that yF1(t)=yF2(t)=0y_{F1}(t)=y_{F2}(t)=0 for all t<t0t<t_0. By linearity the difference yF1−yF2y_{F1}-y_{F2} solves the homogeneous equation and vanishes before t0t_0 (the scan writes it as yH(t)1(t−t0)=yF2(t)−yF1(t)y_H(t)\mathbb{1}(t-t_0)=y_{F2}(t)-y_{F1}(t)); by uniqueness of the homogeneous Cauchy problem it is zero, hence yF1=yF2y_{F1}=y_{F2}. ■\blacksquare

Now pick δ(t−t0)∈St0\delta(t-t_0)\in\mathcal{S}_{t_0} (it is 00 for t<t0t<t_0). For t0=0t_0=0:

u(t) = delta(t) ---->[ Sigma_N ]----> y_F(t) = h(t)    (impulse response of a causal LTI convolutional Sigma_N)

Recall: ΣN\Sigma_N is an LTI convolutional causal system   ⟺  h(t)=0\iff h(t)=0 for all t<0t<0.

Important observation. Since yF(t)y_F(t) exists and is unique, ΣN\Sigma_N is the unique causal LTI convolutional system associated with the ODE ∑n=0Nandndtny(t)=∑m=0Mbmdmdtmu(t),\sum_{n=0}^Na_n\frac{d^n}{dt^n}y(t)=\sum_{m=0}^Mb_m\frac{d^m}{dt^m}u(t), which is "strictly" causal only if M≤NM\le N (if M>NM>N the derivatives of δ\delta are involved). Henceforth we are allowed to interchange terms:   LTI convolutional system ΣN ⟺CAUSALITY ODE describing ΣN  \boxed{\;\text{LTI convolutional system }\Sigma_N\ \overset{\text{CAUSALITY}}{\Longleftrightarrow}\ \text{ODE describing }\Sigma_N\;}

Forced response

For this reason yF(t)y_F(t) is called the forced response. Once h(t)h(t) has been identified,   yF(t):={∫t0−th(t−τ) u(τ) dτ,t≥t00,t<t0if u∈St0, h causal.  \boxed{\;y_F(t):=\begin{cases}\displaystyle\int_{t_0^-}^th(t-\tau)\,u(\tau)\,d\tau,&t\ge t_0\\[6pt]0,&t<t_0\end{cases}\qquad\text{if }u\in\mathcal{S}_{t_0},\ h\text{ causal.}\;} The lower limit t0−t_0^- means that potential impulses δ(t−t0)\delta(t-t_0) in h(t)h(t) or u(t)u(t) are integrated as well. Note that yF(t)y_F(t) and its derivatives may be discontinuous at t=t0t=t_0, but yF(t0−)=dyFdt(t0−)=⋯=dN−1yFdtN−1(t0−)=0.y_F(t_0^-)=\frac{dy_F}{dt}(t_0^-)=\dots=\frac{d^{N-1}y_F}{dt^{N-1}}(t_0^-)=0 . Hence the boundary conditions are denoted more precisely as y(t0−)=y0,0,dy(t0−)dt=y0,1,…,dN−1dtN−1y(t0−)=y0,N−1.y(t_0^-)=y_{0,0},\quad\frac{dy(t_0^-)}{dt}=y_{0,1},\quad\dots,\quad\frac{d^{N-1}}{dt^{N-1}}y(t_0^-)=y_{0,N-1}.

Natural response

Fixing the boundary conditions, there exists a unique way to express the solution associated with a causal system: y(t)=yN(t)+yF(t),y(t)=y_N(t)+y_F(t), where yF(t)y_F(t) is computed as above and yN(t)y_N(t) is a homogeneous solution such that dmdtmyN(t0−)=y0,m\dfrac{d^m}{dt^m}y_N(t_0^-)=y_{0,m}, m=0,…,N−1m=0,\dots,N-1. yN(t)y_N(t) is called the natural response. Since yNy_N solves the (HE),   yN(t)=∑i=1r∑m=0Ni−1c^i,m tmepit  \boxed{\;y_N(t)=\sum_{i=1}^r\sum_{m=0}^{N_i-1}\hat c_{i,m}\,t^me^{p_it}\;} i.e. it is the homogeneous solution that satisfies the BCs (the c^i,m\hat c_{i,m} from the Wronskian matrix evaluated at t0−t_0^-).

Take-home message: yF(t)y_F(t) and yN(t)y_N(t) are "orthogonal" in terms of effects caused by input and BCs respectively.

  • yF(t)y_F(t): its trajectory depends on the input u(t)u(t) and does not depend on the BCs; it represents the system's evolution caused by the input stimulation and BCs =0=0.
  • yN(t)y_N(t): its trajectory depends on the BCs and does not depend on the input u(t)u(t); it represents the system's evolution caused by the BCs and u(t)≡0u(t)\equiv0 for all t∈Rt\in\mathbb{R}.

Spoiler: state-space form

ΣN\Sigma_N can also be expressed as {x˙(t)=Ax(t)+Bu(t),x(0)=x0y(t)=Cx(t)+Du(t)\begin{cases}\dot{\mathbf{x}}(t)=A\mathbf{x}(t)+B\mathbf{u}(t),\quad\mathbf{x}(0)=\mathbf{x}_0\\ \mathbf{y}(t)=C\mathbf{x}(t)+D\mathbf{u}(t)\end{cases} where x,u,y\mathbf{x},\mathbf{u},\mathbf{y} are vectors and the solution is y(t)=Cexp⁡(At)x0⏟yN(t)+C∫0texp⁡(A(t−τ))u(τ) dτ+Du(t)⏟yF(t),\mathbf{y}(t)=\underbrace{C\exp(At)\mathbf{x}_0}_{y_N(t)}+\underbrace{C\int_0^t\exp\big(A(t-\tau)\big)\mathbf{u}(\tau)\,d\tau+D\mathbf{u}(t)}_{y_F(t)}, where exp⁡\exp is the so-called matrix exponential function. This is "too hard", but the next note gives a way to find the solution without the matrix machinery: the Impulse Matching MethodThe impulse matching method finds the causal impulse response h_+(t) of a continuous-time ODE system by writing h_+ as modes times a step plus impulses, then matching the impulse terms of the equation at t = 0 through a linear system for the coefficients q.Impulse Matching Method →.

Versione ripasso

  • Homogeneous Cauchy problem: for any y0∈CN\mathbf{y}_0\in\mathbb{C}^N there is a unique yHy_H of (HE) with dmdtmyH(t0)=y0,m\frac{d^m}{dt^m}y_H(t_0)=y_{0,m}, m=0..N−1m=0..N-1 (equivalent to dim⁡YH=N\dim\mathcal{Y}_H=N; corollary of Picard-Lindelof). Constants from the Wronskian matrix WW (rows: derivatives 0..N−10..N-1 of the modes at t0t_0): c^=W−1y0\hat{\mathbf c}=W^{-1}\mathbf{y}_0, WW invertible because modes are independent.
  • Switch-on signals: St0={u:∃t0, u(t)=0 ∀t<t0}\mathcal{S}_{t_0}=\{u:\exists t_0,\ u(t)=0\ \forall t<t_0\} (a Hilbert space). If u∈St0u\in\mathcal{S}_{t_0} does not depend on yy, there is a unique particular solution yFy_F with yF=0y_F=0 for t<t0t<t_0.
  • u=δu=\delta gives yF=hy_F=h, the impulse response of the causal LTI convolutional system; ΣN\Sigma_N ⇔\Leftrightarrow ODE (via causality). Strictly causal only if M≤NM\le N.
  • Forced response: yF(t)=∫t0−th(t−τ)u(τ)dτy_F(t)=\int_{t_0^-}^th(t-\tau)u(\tau)d\tau for t≥t0t\ge t_0, 00 before; yF(t0−)=⋯=yF(N−1)(t0−)=0y_F(t_0^-)=\dots=y_F^{(N-1)}(t_0^-)=0. BCs are taken at t0−t_0^-.
  • Natural response: yN=∑i∑mc^i,mtmepity_N=\sum_i\sum_m\hat c_{i,m}t^me^{p_it}, the homogeneous solution matching the BCs. Total y=yN+yFy=y_N+y_F.
  • yFy_F depends only on the input (BCs zero), yNy_N only on the BCs (input zero): "orthogonal" effects.
  • State-space preview: y=CeAtx0+C∫0teA(t−τ)u dτ+Duy=C e^{At}x_0+C\int_0^te^{A(t-\tau)}u\,d\tau+Du.
  • Typical mistakes: imposing BCs at t0t_0 instead of t0−t_0^- when impulses are present; mixing the c^i,m\hat c_{i,m} of the natural response with the qℓq_\ell coefficients of the impulse response.

Teoria collegata