Linear Constant-Coefficient Differential Equations
In questa pagina 3
Filters, or more precisely continuous-time LTI convolutional systems, are described by differential equations: constant-coefficient ordinary linear differential equations,
n=0∑Nandtndny(t)=m=0∑Mbmdtmdmu(t)
with an,bm∈R, N≥1, aN=1, bM=0, and M≤N imposed if physical realizability is required. Since the name is too long they are called ODEs here, even though the acronym does not capture "constant-coefficient" nor "linear".
Observation 1 (linearity). If (u1,y1) and (u2,y2) satisfy the ODE, then so does (α1u1+α2u2,α1y1+α2y2).
Observation 2 (time invariance). If (u,y) satisfies the ODE then so does (UT[u],UT[y]), with UT the time-shift operator, because the coefficients ak,bk are constant. (The scan writes UT[⋅] without defining it; it is read here as the time shift.)
Homogeneous and particular solutions
From Observation 1 with u1=u2, α1=1, α2=−1, the difference yH:=y1−y2 solves the homogeneous equationn=0∑Nandtndny(t)=0.yH is called the homogeneous solution. If yP is a particular solution of the general ODE, then also
y∗:=yP+yH
is a solution.
First-order ODEs (N=1)
dtdy(t)+a0y(t)=b1dtdu(t)+b0u(t).
It is too hard at first, so simplify: a0=a∈R, b0=b∈R, b1=0:
dtdy(t)+ay(t)=bu(t).
(1) Homogeneous equation (u≡0): y˙+ay=0. Ansatz (German for "to guess the solution"): yH(t)=C0e−at, C0∈R. Verify: −aC0e−at=−aC0e−at.
(2) General caseu(t)=0: y(t)=yH(t)+yP(t), where yP is any solution of y˙+ay=bu. Of course yP strongly depends on the expression of u(t).
Example.dtdy(t)−y(t)=1.
Homogeneous: y˙=y⇝yH(t)=C0et, ∀C0∈R.
Particular: ansatz yP(t)=C1; verify 0−C1=1, so C1=−1 and yP(t)=−1.
The ansatz should try to mimic the right-hand side (RHS) of the given ODE.
Boundary conditions and the Cauchy problem
What does it mean to cope with y∗(t)=C0et−1, ∀C0∈R? It is a family of solutions. To determine the solution of an ODE we need something more: the boundary conditions (BCs), also called initial conditions when they refer to an initial instant for the trajectory of a signal. E.g.
⎩⎨⎧dtdy(t)−y(t)=1y(0)=0
This kind of problem is so important that it has a name: Cauchy problem. The solution: y∗(t)=C0et−1 with y(0)=0⟺C0e0−1=0⟺C0=1, so y∗(t)=et−1 solves the Cauchy problem.
Tricky question: are we ensured that y∗(t)=et−1 is the unique solution? Luckily, yes. All ODEs have a unique solution provided that u(t) is "regular enough". This regularity is characterized by the Picard-Lindelof theorem. If u(t)=f(t,y(t)) (exactly what happens with feedback interconnections) the Picard-Lindelof conditions must be satisfied in order to avoid multiple solutions. In this course only inputs u(t) that do not depend on y(t) are considered, so do not worry. Since solutions are unique for this kind of problems, the notation y∗ is dropped in favor of y.
Exercise. Solve the Cauchy problem
⎩⎨⎧y˙(t)+2y(t)=cos(ω0t)y(2ω0π)=0.
Homogeneous: y˙+2y=0⇝yH(t)=Ce−2t.
Particular: ansatz yP(t)=C1cos(ω0t)+C2sin(ω0t) (it mimics the RHS). Substituting,
−ω0C1sin(ω0t)+ω0C2cos(ω0t)+2C1cos(ω0t)+2C2sin(ω0t)=cos(ω0t),cos(ω0t)(ω0C2+2C1−1)+sin(ω0t)(−ω0C1+2C2)=0.
So ω0C2+2C1−1=0 and −ω0C1+2C2=0⇒C2=21ω0C1; then (2ω02+2)C1=1:
C1=4+ω022,C2=4+ω02ω0,yP(t)=4+ω022cos(ω0t)+4+ω02ω0sin(ω0t).
Check:x˙(t)==−a0x(t)−a0x(t0)e−a0(t−t0)−a0e−a0t∫t0tea0τv(τ)dτ+=v(t)e−a0tea0tv(t)⇒x˙+a0x=v.
Going back to y=x+b1u:
y(t)=b1u(t)+(y(t0)−b1u(t0))e−a0(t−t0)+(b0−a0b1)[e−a0t1(t)]∗[u(t)1(t−t0)]Convolution is key to solve ODEs!
General Cauchy problem and the homogeneous equation
Generalize to all N≥1 and M∈N. The general Cauchy problem is
ΣN:⎩⎨⎧n=0∑Nandtndny(t)=m=0∑Mbmdtmdmu(t)y(t0)=y0,0,dtdy(t0)=y0,1,…,dtN−1dN−1y(t0)=y0,N−1an,bm∈R,N≥1,aN=1,bM=0.
The homogeneous equation (HE) is ∑n=0Nandtndny(t)=0. Let YH be the family of solutions of (HE).
Observation: take ψ(t):=Cept, C,p∈C. Then dtndnψ(t)=pnψ(t), so
n=0∑Nanpnψ(t)=?0⟺ψ(t)n=0∑Nanpn=0∀t⟺n=0∑Nanpn=0
(if C=0 the solution is trivial, y(t)≡0). Hence yH(t) can be found by solving
a(p):=pN+aN−1pN−1+⋯+a1p+a0=0
This is called the characteristic equation.
Recall: if a0,a1,…,aN−1∈R the solutions p1,…,pN are either real or complex-conjugate (if p∗ is a solution so is p∗). In particular, let p1,…,pr, 1≤r≤N, be the distinct roots of a(p) with algebraic multiplicities N1,…,Nr. By the fundamental theorem of algebra
i=1∑rNi=N,a(p)=aNi=1∏r(p−pi)Ni.
It is possible to show (the notes say: read a book) that YH=span{ψℓ(t),ℓ=1,…,N} has dimension N and the ψℓ(t) are a basis, where all the ψℓ's are the functions
ep1t,tep1t,…,tN1−1ep1tep2t,tep2t,…,tN2−1ep2t⋮eprt,teprt,…,tNr−1eprt.
These basis functions for YH are called modes. Hence yH∈YH if and only if
yH(t)=ℓ=1∑Ncℓψℓ(t)=i=1∑rm=0∑Ni−1ci,mtmepit,
where the constants are in C and to be determined (cℓ and ci,m take exactly the same values but are indexed in a different way).
How do modes look like?
Let p=σ+jω, σ,ω∈R. NOSC means non-oscillatory, OSC oscillatory. Columns: σ<0, σ=0, σ>0.
type
σ<0
σ=0
σ>0
NOSC, eσt
decays to 0
constant 1
grows exponentially
OSC, eσtcos(ωt)
decaying oscillation
cos(ωt), constant amplitude
growing oscillation
NOSC, teσt
rises, then decays to 0
the ramp t
grows faster than exponential
OSC, teσtcos(ωt)
oscillation with rise then decay
tcos(ωt), linearly growing amplitude
growing oscillation, amplitude teσt
(The scan shows these as hand-drawn plots, one per cell; the descriptions above are read from the shapes.)
If a0,…,aN∈R then complex roots come in pairs pℓ=σℓ+jωℓ and pℓ=σℓ−jωℓ, and
epℓt=eσℓt[cos(ωℓt)+jsin(ωℓt)],
so if we wish we can replace the pair of modes (epℓt,epℓt) with (eσℓtcos(ωℓt),eσℓtsin(ωℓt)) in the basis of YH.
Example. Given y¨+4y˙+4y=0, find a basis for YH: p2+4p+4=0→(p+2)2=0→p1=−2, N1=2. Then YH is spanned by ψ1(t)=e−2t and ψ2(t)=te−2t.
Example.dt4d4y(t)+y(t)=0: p4+1=0⇝p4=ej(π+2ℓπ). Roots: pℓ+1=ej(2ℓ+1)4π, ℓ=0,1,2,3:
p1=21+j,p2=2−1+j,p3=2−1−j,p4=21−j.y(t)=yH(t)=ℓ=1∑4Cℓepℓt=e2t[D1cos(2t)+D2sin(2t)]+e−2t[D3cos(2t)+D4sin(2t)]
for some Cℓ,Dℓ∈C.
ODE:∑n=0Nandtndny=∑m=0Mbmdtmdmu, an,bm∈R, N≥1, aN=1, bM=0, M≤N for physical realizability. Linear and time-invariant.
Solution structure:y∗=yP+yH; yH solves the homogeneous equation (HE) (u≡0); it is a family, one solution is selected by boundary conditions (Cauchy problem). Uniqueness: Picard-Lindelof; here u does not depend on y.
Ansatz for yP mimics the RHS (constant for constant RHS; C1cos+C2sin for a cosine).
First order, simple: y˙+ay=bu, yH=C0e−at. Example y˙−y=1: y=C0et−1; with y(0)=0: et−1. Example y˙+2y=cosω0t, y(2ω0π)=0: yP=4+ω022cosω0t+ω0sinω0t, C=−4+ω02ω0eπ/ω0.
First order causal general solution (with y(t0)=y0, b1=0): y(t)=b1u(t)+(y(t0)−b1u(t0))e−a0(t−t0)+(b0−a0b1)[e−a0t1(t)]∗[u(t)1(t−t0)]; derived with x=y−b1u, v=(b0−a0b1)u.
Characteristic equation:a(p)=pN+⋯+a0=0; distinct roots pi with multiplicity Ni, ∑Ni=N. Modes:tmepit, m=0,…,Ni−1; YH has dimension N; yH=∑i∑mci,mtmepit.
Real coefficients: complex roots in conjugate pairs; replace (ept,epˉt) by eσtcosωt, eσtsinωt. p=σ+jω: σ<0 decays, σ=0 constant amplitude, σ>0 grows; factor tm for repeated roots.
Typical mistakes: forgetting the tm factors for repeated roots; writing the ansatz without the sine when the RHS is a cosine; leaving the constants undetermined (need boundary conditions).