Salta al contenuto
Note per Studenti Solving Linear ODEs with the Laplace Transform Report

Solving Linear ODEs with the Laplace Transform

In questa pagina 9

This note reviews the Laplace tools used in the course; the theory is in The Laplace Transform and Transfer FunctionsThe unilateral Laplace transform turns a linear constant-coefficient ODE into an algebraic equation Y(s) = C(s)/A(s) + B(s)/A(s) U(s), whose second term defines the rational transfer function H(s) = B(s)/A(s).The Laplace Transform and Transfer Functions →. The models to be solved come from Mathematical Models of Mechanical SystemsThe lumped elements of mechanical systems (mass, spring, damper and their rotational versions, force and displacement sources, lever and gearbox) and the procedure that turns a free-body diagram into a linear ODE, worked on the mass-spring-damper system.Mathematical Models of Mechanical Systems → and Mathematical Models of Electrical SystemsThe lumped elements of electrical circuits (resistor, capacitor, inductor, ideal sources, ideal transformer), Kirchhoff's laws and the derivation of the second-order ODE of a series RLC circuit.Mathematical Models of Electrical Systems →.

The problem

Solution of the ODE: find the signal y(t)y(t) that satisfies

∑n=0Nandny(t)dtn=∑m=0Mbmdmu(t)dtm,an,bm∈R, M≤N\sum_{n=0}^{N} a_n \frac{d^n y(t)}{dt^n} = \sum_{m=0}^{M} b_m \frac{d^m u(t)}{dt^m},\qquad a_n, b_m\in\mathbb{R},\ M\le N

given:

  • the input signal u(t)u(t) for t≥0t\ge 0;
  • the initial conditions (i.c.): y(0−), dy(0−)dt, …, dN−1y(0−)dtN−1y(0^-),\ \dfrac{dy(0^-)}{dt},\ \dots,\ \dfrac{d^{N-1}y(0^-)}{dt^{N-1}}.

Notes: (1) u(t)u(t) is causal, i.e. equal to zero for t<0t<0; (2) t0=0−t_0 = 0^- means lim⁡t→0−⋯\lim_{t\to 0^-}\cdots, i.e. "immediately before" the application of uu.

Motivation

The L\mathcal{L}-transform converts the operations of differential calculus (differentiation and integration) applied to f(t)f(t) into algebraic operations (multiplication and division by ss) applied to its transform F(s)F(s). Thanks to this property and to linearity, a linear ODE with constant coefficients (difficult to "solve") becomes an algebraic equation in the complex variable s∈Cs\in\mathbb{C} (easy to solve).

Solution procedure:

 ODE in y(t)  --L-->  algebraic equation in Y(s)
                              | solve algebraically for Y(s)
 solution y(t) <--L^-1--  "transformed" solution Y(s)

It only involves algebraic manipulations and the use of Laplace transform tables of "elementary" signals.

Definition

Let f:R→Cf:\mathbb{R}\to\mathbb{C} be the sum of a function that is locally integrable on [0,+∞)[0,+\infty) and a finite number of impulsive signals of various orders. (A function is locally integrable if its integral exists and is finite over every bounded interval contained in [0,+∞)[0,+\infty).) The (unilateral) Laplace transform of ff is

F(s)=L[f](s)≜∫0−+∞f(t) e−st dtF(s) = \mathcal{L}[f](s) \triangleq \int_{0^-}^{+\infty} f(t)\,e^{-st}\,dt

for all s∈Cs\in\mathbb{C} for which the integral exists.

Properties

# Property Formula
1 Linearity L[∑iαifi](s)=∑iαiFi(s)\mathcal{L}\left[\sum_i \alpha_i f_i\right](s) = \sum_i \alpha_i F_i(s)
2 Time translation L[f(t−τ)](s)=e−sτF(s)\mathcal{L}[f(t-\tau)](s) = e^{-s\tau}F(s)
3 Translation in ss L[es0tf(t)](s)=F(s−s0)\mathcal{L}[e^{s_0 t}f(t)](s) = F(s-s_0)
4 Time rescaling L[f(at)](s)=1aF(sa)\mathcal{L}[f(at)](s) = \frac{1}{a}F\left(\frac{s}{a}\right)
5 Time differentiation L[dfdt](s)=sF(s)−f(0−)\mathcal{L}\left[\frac{df}{dt}\right](s) = sF(s) - f(0^-)
6 ss differentiation L[−tf(t)](s)=dF(s)ds\mathcal{L}[-t f(t)](s) = \frac{dF(s)}{ds}
7 Time integration L[∫0−tf(τ)dτ](s)=1sF(s)\mathcal{L}\left[\int_{0^-}^{t} f(\tau)d\tau\right](s) = \frac{1}{s}F(s)
8 Final value theorem lim⁡t→+∞f(t)=lim⁡s→0sF(s)\lim_{t\to+\infty} f(t) = \lim_{s\to 0} sF(s), provided lim⁡f(t)\lim f(t) exists and is finite
9 Initial value theorem lim⁡t→0+f(t)=lim⁡s→∞sF(s)\lim_{t\to 0^+} f(t) = \lim_{s\to\infty} sF(s), provided lim⁡f(t)\lim f(t) exists and is finite
10 Conjugation (f(t)∈Rf(t)\in\mathbb{R}) F∗(s)=F(s∗)F^*(s) = F(s^*)
11 Time convolution L[f1∗f2](s)=F1(s)F2(s)\mathcal{L}[f_1 * f_2](s) = F_1(s)F_2(s)

Generalisations of the differentiation properties (kk-th derivative):

5’.L[dkfdtk](s)=skF(s)−∑n=0k−1dnf(0−)dtn sk−1−n6’.L[(−t)kf(t)](s)=dkF(s)dsk\text{5'.}\quad \mathcal{L}\left[\frac{d^k f}{dt^k}\right](s) = s^k F(s) - \sum_{n=0}^{k-1}\frac{d^n f(0^-)}{dt^n}\,s^{k-1-n} \qquad \text{6'.}\quad \mathcal{L}\left[(-t)^k f(t)\right](s) = \frac{d^k F(s)}{ds^k}

Laplace transforms of elementary signals

All signals are assumed to be zero for t<0t<0 (causal signals).

Signal f(t)f(t) F(s)F(s)
Unit impulse δ(t)\delta(t) 11
Unit step δ−1(t)≜1\delta_{-1}(t)\triangleq 1 1s\dfrac{1}{s}
Linear ramp δ−2(t)≜t\delta_{-2}(t)\triangleq t 1s2\dfrac{1}{s^2}
Parabolic ramp δ−3(t)≜t22\delta_{-3}(t)\triangleq \dfrac{t^2}{2} 1s3\dfrac{1}{s^3}
Polynomial signal δ−k(t)≜tk−1(k−1)!\delta_{-k}(t)\triangleq \dfrac{t^{k-1}}{(k-1)!} 1sk\dfrac{1}{s^k}
Exponential signal eσte^{\sigma t}, σ∈C\sigma\in\mathbb{C} 1s−σ\dfrac{1}{s-\sigma}
Exponentially modulated polynomial t eσtt\,e^{\sigma t} 1(s−σ)2\dfrac{1}{(s-\sigma)^2}
t22!eσt\dfrac{t^2}{2!}e^{\sigma t} 1(s−σ)3\dfrac{1}{(s-\sigma)^3}
tk−1(k−1)!eσt\dfrac{t^{k-1}}{(k-1)!}e^{\sigma t} 1(s−σ)k\dfrac{1}{(s-\sigma)^k}
Sinusoidal sin⁡ωt\sin\omega t ωs2+ω2\dfrac{\omega}{s^2+\omega^2}
cos⁡ωt\cos\omega t ss2+ω2\dfrac{s}{s^2+\omega^2}
sin⁡(ωt+ϕ)\sin(\omega t+\phi) ssin⁡ϕ+ωcos⁡ϕs2+ω2\dfrac{s\sin\phi+\omega\cos\phi}{s^2+\omega^2}
Exponentially modulated sinusoidal eσtsin⁡(ωt)e^{\sigma t}\sin(\omega t) ω(s−σ)2+ω2\dfrac{\omega}{(s-\sigma)^2+\omega^2}
eσtcos⁡(ωt)e^{\sigma t}\cos(\omega t) s−σ(s−σ)2+ω2\dfrac{s-\sigma}{(s-\sigma)^2+\omega^2}
eσtsin⁡(ωt+ϕ)e^{\sigma t}\sin(\omega t+\phi) (s−σ)sin⁡ϕ+ωcos⁡ϕ(s−σ)2+ω2\dfrac{(s-\sigma)\sin\phi+\omega\cos\phi}{(s-\sigma)^2+\omega^2}
Modulated sinusoidal times a polynomial t eσtsin⁡(ωt)t\,e^{\sigma t}\sin(\omega t) 2ω(s−σ)[(s−σ)2+ω2]2\dfrac{2\omega(s-\sigma)}{\left[(s-\sigma)^2+\omega^2\right]^2}
t eσtcos⁡(ωt)t\,e^{\sigma t}\cos(\omega t) (s−σ)2−ω2[(s−σ)2+ω2]2\dfrac{(s-\sigma)^2-\omega^2}{\left[(s-\sigma)^2+\omega^2\right]^2}

In general:

L[δ−k(t) eσtsin⁡(ωt+ϕ)](s)=(−1)k−1(k−1)! d(k−1)ds(k−1)[(s−σ)sin⁡ϕ+ωcos⁡ϕ(s−σ)2+ω2]\mathcal{L}\left[\delta_{-k}(t)\,e^{\sigma t}\sin(\omega t+\phi)\right](s) = \frac{(-1)^{k-1}}{(k-1)!}\,\frac{d^{(k-1)}}{ds^{(k-1)}}\left[\frac{(s-\sigma)\sin\phi+\omega\cos\phi}{(s-\sigma)^2+\omega^2}\right]

Solving a linear ODE with the L\mathcal{L}-transform

Start from ∑n=0Nan y(n)(t)=∑m=0Mbm u(m)(t)\sum_{n=0}^{N}a_n\,y^{(n)}(t) = \sum_{m=0}^{M}b_m\,u^{(m)}(t).

  1. Apply the L\mathcal{L}-transform to both sides, and use linearity: ∑n=0Nan L[dnydtn](s)=∑m=0Mbm L[dmudtm](s)\sum_{n=0}^{N} a_n\,\mathcal{L}\left[\frac{d^n y}{dt^n}\right](s) = \sum_{m=0}^{M} b_m\,\mathcal{L}\left[\frac{d^m u}{dt^m}\right](s)
  2. Use the differentiation property (with uu causal, so no initial-condition terms for uu): L[dnydtn](s)=snY(s)−∑i=0n−1diy(0−)dti sn−1−i,L[dmudtm](s)=smU(s)\mathcal{L}\left[\frac{d^n y}{dt^n}\right](s) = s^nY(s) - \sum_{i=0}^{n-1}\frac{d^i y(0^-)}{dt^i}\,s^{n-1-i},\qquad \mathcal{L}\left[\frac{d^m u}{dt^m}\right](s) = s^m U(s)
  3. Substitute: ∑n=0Nan(snY(s)−∑i=0n−1diy(0−)dti sn−1−i)=∑m=0Mbm smU(s)\sum_{n=0}^{N} a_n\left(s^nY(s) - \sum_{i=0}^{n-1}\frac{d^i y(0^-)}{dt^i}\,s^{n-1-i}\right) = \sum_{m=0}^{M} b_m\,s^m U(s)
  4. Expand and collect the terms in Y(s)Y(s): (∑n=0Nansn)⏟≜A(s)Y(s)=∑n=0N∑i=0n−1andiy(0−)dti sn−1−i⏟≜C(s)+(∑m=0Mbmsm)⏟≜B(s)U(s)\underbrace{\left(\sum_{n=0}^{N}a_n s^n\right)}_{\triangleq A(s)} Y(s) = \underbrace{\sum_{n=0}^{N}\sum_{i=0}^{n-1}a_n\frac{d^i y(0^-)}{dt^i}\,s^{n-1-i}}_{\triangleq C(s)} + \underbrace{\left(\sum_{m=0}^{M}b_m s^m\right)}_{\triangleq B(s)} U(s)
  5. Solve for Y(s)Y(s): A(s)Y(s)=C(s)+B(s)U(s)⟹Y(s)=C(s)A(s)+B(s)A(s) U(s)A(s)Y(s) = C(s) + B(s)U(s)\quad\Longrightarrow\quad Y(s) = \frac{C(s)}{A(s)} + \frac{B(s)}{A(s)}\,U(s)

Degrees: deg⁡A(s)=N\deg A(s) = N, deg⁡B(s)=M≤N\deg B(s) = M\le N, deg⁡C(s)≤N−1\deg C(s)\le N-1. The solution y(t)y(t) is then L−1[Y(s)]\mathcal{L}^{-1}[Y(s)].

Natural and forced response

Y(s)=C(s)A(s)⏟=Yn(s)+B(s)A(s) U(s)⏟=Yf(s)Y(s) = \underbrace{\frac{C(s)}{A(s)}}_{=Y_n(s)} + \underbrace{\frac{B(s)}{A(s)}\,U(s)}_{=Y_f(s)}

  • Yn(s)Y_n(s) is the L\mathcal{L}-transform of the natural response: it depends on the initial conditions and is obtained with zero input;
  • Yf(s)Y_f(s) is the L\mathcal{L}-transform of the forced response: it depends on the input U(s)U(s) and is obtained with zero initial conditions.

Transfer function

The forced response is Yf(s)=B(s)A(s)U(s)Y_f(s) = \dfrac{B(s)}{A(s)}U(s). The quantity

H(s)≜Yf(s)U(s)=B(s)A(s)=∑m=0Mbmsm∑n=0NansnH(s) \triangleq \frac{Y_f(s)}{U(s)} = \frac{B(s)}{A(s)} = \frac{\sum_{m=0}^{M} b_m s^m}{\sum_{n=0}^{N} a_n s^n}

is the transfer function of the system. For systems described by linear ODEs with constant coefficients it is always a rational function of the complex variable ss.

With deg⁡A(s)=N\deg A(s)=N and deg⁡B(s)=M\deg B(s)=M, H(s)H(s) is said to be:

  • proper if M≤NM\le N;
  • strictly proper if M<NM<N;
  • bi-proper if M=NM=N;
  • improper if M>NM>N.

A system described by a linear ODE with constant coefficients is physically realizable if it satisfies the causality condition M≤NM\le N, i.e. if the transfer function is proper.

Poles and zeros

  • Zeros: values of s∈Cs\in\mathbb{C} such that H(s)=0H(s)=0.
  • Poles: values of s∈Cs\in\mathbb{C} such that H(s)=∞H(s)=\infty.

If the transfer function is in irreducible form (A(s)A(s) and B(s)B(s) share no common factors), the zeros are the roots of the numerator B(s)B(s) and the poles are the roots of the denominator A(s)A(s). (Stability in terms of the poles: Stability of Dynamical SystemsFor an LTI system the response to a perturbation of an equilibrium does not depend on the equilibrium or on the perturbation amplitude, so stability reduces to the free evolution being bounded (stable) or vanishing (asymptotically stable), decided by the roots of the characteristic polynomial, and is related to BIBO stability.Stability of Dynamical Systems →, BIBO Stability and First-Order ModelsA linear system response splits into a natural response from the initial conditions and a forced response from the input; BIBO stability concerns the forced response and stability of the zero equilibrium concerns the natural one, and an n-th order ODE can be rewritten as n first-order equations (a state model) whose transfer function is obtained from the matrices A, B, C and D.BIBO Stability and First-Order Models →.)

Impulse response

The transfer function completely characterises the forced response: Yf(s)=H(s)U(s)Y_f(s) = H(s)U(s). For a unit impulse input u(t)=δ(t)u(t)=\delta(t) we have U(s)=L[δ(t)](s)=1U(s)=\mathcal{L}[\delta(t)](s)=1, hence Yf(s)=H(s)Y_f(s) = H(s): the transfer function is the L\mathcal{L}-transform of the impulse response h(t)=L−1[H(s)](t)h(t)=\mathcal{L}^{-1}[H(s)](t).

The impulse response also characterises the forced response, through convolution:

yf(t)=L−1[H(s)U(s)](t)=L−1[H](t)∗L−1[U](t)=h(t)∗u(t)=∫0−th(t−σ) u(σ) dσy_f(t) = \mathcal{L}^{-1}[H(s)U(s)](t) = \mathcal{L}^{-1}[H](t) * \mathcal{L}^{-1}[U](t) = h(t)*u(t) = \int_{0^-}^{t} h(t-\sigma)\,u(\sigma)\,d\sigma

Inverse transform of rational functions

The "transformed" solution is Y(s)=Yn(s)+Yf(s)=C(s)A(s)+B(s)A(s)U(s)Y(s)=Y_n(s)+Y_f(s)=\dfrac{C(s)}{A(s)}+\dfrac{B(s)}{A(s)}U(s). It is a rational function provided U(s)U(s) is rational (true for all the elementary signals used in practice). To compute the inverse transform, perform a partial fraction decomposition and invert each term of the decomposition, whose inverse is known from the table above.

Time response of first- and second-order systems

The analysis focuses on the step response of elementary 1st- and 2nd-order systems, for three reasons.

  1. A dynamical system is often excited by piecewise-constant inputs u(t)=∑iUi δ−1(t−ti)u(t)=\sum_i U_i\,\delta_{-1}(t-t_i). If the system is linear, by superposition the output is the sum of several step responses.
  2. For a system with transfer function H(s)H(s), the forced response to the integral of the input is the integral of the output: H(s) L[∫0tu(τ)dτ](s)=H(s)L[u](s)s=L[y](s)s=L[∫0ty(τ)dτ](s)H(s)\,\mathcal{L}\left[\int_0^t u(\tau)d\tau\right](s) = H(s)\frac{\mathcal{L}[u](s)}{s} = \frac{\mathcal{L}[y](s)}{s} = \mathcal{L}\left[\int_0^t y(\tau)d\tau\right](s) so the response to the polynomial signal δ−k(t)\delta_{-k}(t) is obtained by successive integration of the response to the unit step δ−1(t)\delta_{-1}(t) (since δ−k\delta_{-k} is obtained by successive integrations of δ−1\delta_{-1}).
  3. If H(s)H(s) is strictly proper and its poles λi\lambda_i have unit multiplicity, then it decomposes into first- and second-order terms: H(s)=∑i=1nCis−λi=∑i=1nrCis−λi+∑i=1nc(Cis−σi−jωi+Ci∗s−σi+jωi)H(s) = \sum_{i=1}^{n}\frac{C_i}{s-\lambda_i} = \sum_{i=1}^{n_r}\frac{C_i}{s-\lambda_i} + \sum_{i=1}^{n_c}\left(\frac{C_i}{s-\sigma_i-j\omega_i}+\frac{C_i^*}{s-\sigma_i+j\omega_i}\right) =∑i=1nrCis−λi+∑i=1nc2αis−2(αiσi+βiωi)s2−2σis+(σi2+ωi2),Ci=αi+jβi= \sum_{i=1}^{n_r}\frac{C_i}{s-\lambda_i} + \sum_{i=1}^{n_c}\frac{2\alpha_i s - 2(\alpha_i\sigma_i+\beta_i\omega_i)}{s^2-2\sigma_i s+(\sigma_i^2+\omega_i^2)},\qquad C_i=\alpha_i+j\beta_i where there are nrn_r real poles λi\lambda_i and ncn_c pairs of complex conjugate poles σi±jωi\sigma_i\pm j\omega_i. Hence the response to a given input is the sum of the responses of several 1st- and 2nd-order subsystems.

Standard forms

The first-order terms (provided λi≠0\lambda_i\neq 0) are rewritten as

Ki′1+τiswithKi′≜−Ciλi,τi≜−1λi\frac{K_i'}{1+\tau_i s}\qquad\text{with}\quad K_i'\triangleq -\frac{C_i}{\lambda_i},\quad \tau_i\triangleq-\frac{1}{\lambda_i}

where τi\tau_i is the time constant of the system (or of the pole λi\lambda_i). The second-order terms are rewritten as

Ki′′ ωn,i2 (1+τis)s2+2δiωn,is+ωn,i2ωn,i≜σi2+ωi2,δi≜−σiωn,i,Ki′′≜−2 αiσi+βiωiωn,i2,τi≜−αiαiσi+βiωi\frac{K_i''\,\omega_{n,i}^2\,(1+\tau_i s)}{s^2+2\delta_i\omega_{n,i}s+\omega_{n,i}^2} \qquad \omega_{n,i}\triangleq\sqrt{\sigma_i^2+\omega_i^2},\quad \delta_i\triangleq-\frac{\sigma_i}{\omega_{n,i}},\quad K_i''\triangleq-2\,\frac{\alpha_i\sigma_i+\beta_i\omega_i}{\omega_{n,i}^2},\quad \tau_i\triangleq-\frac{\alpha_i}{\alpha_i\sigma_i+\beta_i\omega_i}

δi\delta_i and ωn,i\omega_{n,i} are the damping factor and the natural frequency of the system, while τi\tau_i here is the time constant of the zero. (The second-order response is studied in Second-Order System Step ResponseThe unit step response of a BIBO stable second-order system with complex conjugate poles is W(0) times one minus an exponentially decaying sinusoid, and its rise time, settling time and overshoot are approximately 1.8 over the natural frequency, 4.6 over the real part of the pole magnitude, and exp of minus pi times the damping ratio over the square root of one minus its square.Second-Order System Step Response →.)

First-order system: response to a unit step

1st-order LTI system:

τ dy(t)dt+y(t)=K u(t),τ>0\tau\,\frac{dy(t)}{dt} + y(t) = K\,u(t),\qquad \tau>0

Goal: determine y(t)y(t) starting from a given initial condition y(0−)y(0^-) and for a unit step input u(t)=δ−1(t)u(t)=\delta_{-1}(t).

Transform of the ODE. Apply L\mathcal{L} on both sides, linearity, and the time-differentiation property:

τ[sY(s)−y(0−)]+Y(s)=K U(s) ⟹ (τs+1)⏟≜A(s)Y(s)=τ y(0−)⏟≜C(s)+K⏟≜B(s)U(s)\tau\left[sY(s)-y(0^-)\right]+Y(s)=K\,U(s) \ \Longrightarrow\ \underbrace{(\tau s+1)}_{\triangleq A(s)}Y(s)=\underbrace{\tau\,y(0^-)}_{\triangleq C(s)}+\underbrace{K}_{\triangleq B(s)}U(s)

so that

Y(s)=τ y(0−)τs+1⏟≜Yn(s)+Kτs+1 U(s)⏟≜Yf(s)Y(s)=\underbrace{\frac{\tau\,y(0^-)}{\tau s+1}}_{\triangleq Y_n(s)}+\underbrace{\frac{K}{\tau s+1}\,U(s)}_{\triangleq Y_f(s)}

YnY_n is the transform of the natural response, YfY_f of the forced response, and the transfer function is

H(s)≜Yf(s)U(s)=Kτs+1H(s)\triangleq\frac{Y_f(s)}{U(s)}=\frac{K}{\tau s+1}

Forced step response. With U(s)=1/sU(s)=1/s:

Yf(s)=Kτs+1⋅1s→partial fractionsYf(s)=As+Bs+1/τY_f(s)=\frac{K}{\tau s+1}\cdot\frac{1}{s}\quad\xrightarrow{\text{partial fractions}}\quad Y_f(s)=\frac{A}{s}+\frac{B}{s+1/\tau}

The residues are

A=lim⁡s→0sYf(s)=lim⁡s→0sKτs+11s=K,B=lim⁡s→−1/τ(s+1τ)Yf(s)=lim⁡s→−1/τ(s+1τ)Kτs+11s=−KA=\lim_{s\to 0}sY_f(s)=\lim_{s\to 0}s\frac{K}{\tau s+1}\frac{1}{s}=K,\qquad B=\lim_{s\to-1/\tau}\left(s+\tfrac{1}{\tau}\right)Y_f(s)=\lim_{s\to-1/\tau}\left(s+\tfrac{1}{\tau}\right)\frac{K}{\tau s+1}\frac{1}{s}=-K

hence

Yf(s)=Ks−Kττs+1=Ks−Ks+1τY_f(s)=\frac{K}{s}-\frac{K\tau}{\tau s+1}=\frac{K}{s}-\frac{K}{s+\frac{1}{\tau}}

Using the pairs eσt↔1s−σe^{\sigma t}\leftrightarrow\dfrac{1}{s-\sigma} and δ−1(t)↔1s\delta_{-1}(t)\leftrightarrow\dfrac{1}{s}, the inverse transform gives

 yf(t)=K−Ke−t/τ=K(1−e−t/τ),t>0 \boxed{\,y_f(t)=K-Ke^{-t/\tau}=K\left(1-e^{-t/\tau}\right),\qquad t>0\,}

Steady state. The step response reaches a steady-state value (final value theorem, provided a steady-state value exists)

lim⁡t→+∞yf(t)=lim⁡s→0+sY(s)=lim⁡s→0+sH(s)1s=H(0)=K\lim_{t\to+\infty}y_f(t)=\lim_{s\to 0^+}sY(s)=\lim_{s\to 0^+}sH(s)\frac{1}{s}=H(0)=K

H(0)=KH(0)=K is the static gain of the system. The curve starts from 0 and rises monotonically towards the dashed level KK.

The deck continues beyond this point (not covered here); for the first-order theory see BIBO Stability and First-Order ModelsA linear system response splits into a natural response from the initial conditions and a forced response from the input; BIBO stability concerns the forced response and stability of the zero equilibrium concerns the natural one, and an n-th order ODE can be rewritten as n first-order equations (a state model) whose transfer function is obtained from the matrices A, B, C and D.BIBO Stability and First-Order Models →.

Versione ripasso

Problem: ∑any(n)=∑bmu(m)\sum a_n y^{(n)}=\sum b_m u^{(m)}, M≤NM\le N, given causal uu and initial conditions y(i)(0−)y^{(i)}(0^-), i=0,…,N−1i=0,\dots,N-1.

Definition: F(s)=∫0−∞f(t)e−stdtF(s)=\int_{0^-}^{\infty}f(t)e^{-st}dt. It turns derivation and integration into multiplication and division by ss, so a linear constant-coefficient ODE becomes an algebraic equation; solve for Y(s)Y(s), then invert.

Properties: linearity; delay e−sτF(s)e^{-s\tau}F(s); L[es0tf]=F(s−s0)\mathcal{L}[e^{s_0t}f]=F(s-s_0); scaling 1aF(sa)\frac1aF(\frac sa); derivative sF(s)−f(0−)sF(s)-f(0^-); kk-th derivative skF−∑n=0k−1f(n)(0−)sk−1−ns^kF-\sum_{n=0}^{k-1}f^{(n)}(0^-)s^{k-1-n}; L[−tf]=F′(s)\mathcal{L}[-tf]=F'(s); integral F(s)/sF(s)/s; final value lim⁡s→0sF\lim_{s\to0}sF (if the limit exists); initial value lim⁡s→∞sF\lim_{s\to\infty}sF; convolution →\to product.

Table: δ→1\delta\to1; δ−k=tk−1(k−1)!→1sk\delta_{-k}=\frac{t^{k-1}}{(k-1)!}\to\frac1{s^k}; eσt→1s−σe^{\sigma t}\to\frac1{s-\sigma}; tk−1(k−1)!eσt→1(s−σ)k\frac{t^{k-1}}{(k-1)!}e^{\sigma t}\to\frac1{(s-\sigma)^k}; sin⁡ωt→ωs2+ω2\sin\omega t\to\frac{\omega}{s^2+\omega^2}; cos⁡ωt→ss2+ω2\cos\omega t\to\frac{s}{s^2+\omega^2}; eσtsin⁡ωt→ω(s−σ)2+ω2e^{\sigma t}\sin\omega t\to\frac{\omega}{(s-\sigma)^2+\omega^2}; eσtcos⁡ωt→s−σ(s−σ)2+ω2e^{\sigma t}\cos\omega t\to\frac{s-\sigma}{(s-\sigma)^2+\omega^2}.

Solution: A(s)Y(s)=C(s)+B(s)U(s)A(s)Y(s)=C(s)+B(s)U(s) with A=∑ansnA=\sum a_ns^n, B=∑bmsmB=\sum b_ms^m, C=∑n∑i<nany(i)(0−)sn−1−iC=\sum_n\sum_{i<n}a_ny^{(i)}(0^-)s^{n-1-i}; so Y(s)=CA⏟Yn+BAU⏟YfY(s)=\underbrace{\tfrac{C}{A}}_{Y_n}+\underbrace{\tfrac{B}{A}U}_{Y_f} natural response (initial conditions, zero input) plus forced response (input, zero initial conditions). deg⁡A=N\deg A=N, deg⁡B=M≤N\deg B=M\le N, deg⁡C≤N−1\deg C\le N-1.

Transfer function H(s)=B(s)/A(s)H(s)=B(s)/A(s), rational. Proper M≤NM\le N (physically realizable), strictly proper M<NM<N, bi-proper M=NM=N, improper M>NM>N. Zeros: roots of BB; poles: roots of AA (irreducible form). H(s)=L[h]H(s)=\mathcal{L}[h], hh = impulse response; yf=h∗u=∫0−th(t−σ)u(σ)dσy_f=h*u=\int_{0^-}^{t}h(t-\sigma)u(\sigma)d\sigma. Inverse of rational Y(s)Y(s): partial fractions.

Why step responses of 1st and 2nd order: superposition of steps; response to δ−k\delta_{-k} by integrating the step response; strictly proper HH with simple poles splits into real poles Cis−λi\frac{C_i}{s-\lambda_i} and complex pairs 2αis−2(αiσi+βiωi)s2−2σis+σi2+ωi2\frac{2\alpha_is-2(\alpha_i\sigma_i+\beta_i\omega_i)}{s^2-2\sigma_is+\sigma_i^2+\omega_i^2}. Standard forms: K′1+τs\frac{K'}{1+\tau s} with K′=−C/λK'=-C/\lambda, τ=−1/λ\tau=-1/\lambda; K′′ωn2(1+τs)s2+2δωns+ωn2\frac{K''\omega_n^2(1+\tau s)}{s^2+2\delta\omega_ns+\omega_n^2} with ωn=σ2+ω2\omega_n=\sqrt{\sigma^2+\omega^2}, δ=−σ/ωn\delta=-\sigma/\omega_n.

First order τy˙+y=Ku\tau\dot y+y=Ku: Y=τy(0−)τs+1+Kτs+1UY=\frac{\tau y(0^-)}{\tau s+1}+\frac{K}{\tau s+1}U, H=Kτs+1H=\frac{K}{\tau s+1}. Unit step: Yf=Ks−Ks+1/τY_f=\frac Ks-\frac K{s+1/\tau} (residues A=KA=K, B=−KB=-K), so yf(t)=K(1−e−t/τ),t>0y_f(t)=K\left(1-e^{-t/\tau}\right),\quad t>0 steady state H(0)=KH(0)=K = static gain (final value theorem).

Typical mistake: dropping the initial-condition terms (they give the natural response) or applying the final value theorem when the limit does not exist.

Procedura per una ODE:

  1. Trasformare ambo i membri, con linearità e derivazione: L[y(n)]=snY−∑i=0n−1y(i)(0−)sn−1−i\mathcal{L}[y^{(n)}] = s^nY - \sum_{i=0}^{n-1} y^{(i)}(0^-)s^{n-1-i}; per uu causale non compaiono termini iniziali.
  2. Raccogliere YY: A(s)Y=C(s)+B(s)UA(s)Y = C(s) + B(s)U.
  3. Antitrasformare Y=C/A+(B/A)UY = C/A + (B/A)U con fratti semplici e tabella.

Primo ordine con gradino:

  • Yf(s)=Kτs+1⋅1sY_f(s) = \dfrac{K}{\tau s+1}\cdot\dfrac{1}{s}; residui A=lim⁡s→0sYf=KA = \lim_{s\to0} sY_f = K e B=lim⁡s→−1/τ(s+1/τ)Yf=−KB = \lim_{s\to -1/\tau}(s+1/\tau)Y_f = -K.
  • Quindi Yf=Ks−Ks+1/τY_f = \dfrac{K}{s} - \dfrac{K}{s+1/\tau} e yf(t)=K(1−e−t/τ)y_f(t) = K(1 - e^{-t/\tau}) per t>0t>0.
  • Regime: lim⁡t→∞yf=lim⁡s→0sH(s)1s=H(0)=K\lim_{t\to\infty}y_f = \lim_{s\to 0} sH(s)\dfrac{1}{s} = H(0) = K (guadagno statico).

Forma standard del secondo ordine (dalla decomposizione con poli complessi σ±jω\sigma\pm j\omega): ωn=σ2+ω2,δ=−σωn,K′′ ωn2(1+τs)s2+2δωns+ωn2.\omega_n = \sqrt{\sigma^2+\omega^2}, \qquad \delta = -\frac{\sigma}{\omega_n}, \qquad \frac{K''\,\omega_n^2(1+\tau s)}{s^2+2\delta\omega_n s+\omega_n^2}. δ\delta è lo smorzamento e ωn\omega_n la pulsazione naturale; τ\tau qui è la costante di tempo dello zero.

Zeri e poli (forma irriducibile): zeri = radici di B(s)B(s), poli = radici di A(s)A(s); H(s)H(s) è fisicamente realizzabile se è propria (M≤NM \le N).

Errori tipici:

  • Scordarsi del termine τ y(0−)\tau\,y(0^-) nella trasformata: la risposta naturale cambia.
  • Usare H(s)=Y/UH(s) = Y/U quando YY contiene anche la risposta naturale.
  • Applicare il teorema del valore finale senza verificare che il limite esista.
  • Confondere la costante di tempo τ=−1/λ\tau = -1/\lambda del polo con quella dello zero.

Teoria collegata