System in Differential Equation
Previously we introduced the properties of signals and systems in the time domain. Here we focus on a common case, where a system is defined by a differential equation and how can we solve them.
We use D as the differential operator for convenience.
TLI system is always defined as a linear differential equation, that is,
y(t)=S(x(t))
P(D)y(t)=x(t)
Where P(D) is a polynomial of operator D. For convenience, we force the constant term to exists. Or else, we can always integrate the both side to get an equivalent equation with our desired P(D).
We can usually solve this easily with the following method for common inputs,
Eigen Decomposition
We decompose the result y(t) we are looking for into two parts,
y(t)=y(t)+y∗(t)
Where,
P(D)y(t)=0
Called the eigen solution.
And,
P(D)y∗(t)=x(t)
Called the special solution.
Eigen Solution
Let's first look for,
P(D)y(t)=0
If we take,
L(D)=P(D)−μ
Where μ is the coefficient of the zeroth order term in P, then,
L(D)y(t)=μy(t)
That is equal to say we should look for the eigen function of L(D).
The deduction done below is no where rigorous.
Let's use,
P(D)y(t)=0
Because it is easier to solve.
We can decompose P(D) into,
P(D)=i=0∏i=m(D−ai)pi
So long that any of the factor results in zero after applying to a function, we can have the eigen function.
For,
(D−ai)piyi(t)=0
If,
pi=1
Then obviously,
yi(t)=Aiexp(ait)
For,
pi≥2
It is,
yi(t)=j=0∑j=pi−1Aijxjexp(ait)
So when can have,
y(t)=i=0∑i=myi(t)=i=0∑i=mj=0∑j=pi−1Aijxjexp(ait)
Special Solution
Now we want,
P(D)y∗(t)=x(t)
We need to look for,
P(D)−1x(t)
Because we can always use Taylor expansion to make,
P(D)−1=P′(D)
So formally,
y(t)=P′(D)x(t)
But P′(D) has infinite terms, so this is actually hard to solve.
But if x(t) is only a polynomial of t with the highest order of n, we can truncate P′(D) to order n, so that it is easy to solve.
However, if there exists eat in x(t), truncate can't be done. But we can use the following of what we call the shifting theorem,
Because,
D(eatx(t))=(D+a)eatx(t)
So we can conclude,
P(D)eatx(t)=eatP(D+a)x(t)
This is the shifting theorem.
Example
Let's solve,
(D+1)2(D−1)y(t)=e−att
We can have,
y(t)=Aet+(B+Ct)e−t
Then we look after,
y∗(t)=(D+1)2(D−1)1e−att
We apply the shifting theorem,
y∗(t)=e−at(D−a+1)2(D−a−1)1t
We can do some simplification,
y∗(t)=e−at(D−a+1)2(D−a−1)1t=e−at2(D−a+1)2(D−a−1)(D−a+1)−(D−a−1)t=e−at(2(D−a+1)(D−a−1)1−2(D−a+1)21)t=21e−at(D2−2aD+a2−11−D2−2(a−1)D+(a−1)21)t
Consider,
D2−2aD+a2−11
We can use the polynomial devision, that is,
D2−2aD+a2−11=D2−2aD+a2−1a2−11(D2−2aD+a2−1)−a2−1D2−2aD=a2−11−D(D2−2aD+a2−1)(a2−1)−2a+D=a2−11−D(D2−2aD+a2−1)(a2−1)a2−1−2a(D2−2aD+a2−1)−(1−a2−14a2)D+a2−12aD2=a2−11+(a2−1)22aD+D2(D2−2aD+a2−1)(a2−1)a2−12aD+a2−14a2−1
Because as we expand further, the order will be higher than D2, but D2t=0, so we can truncate the result.
Similarly,
D2−2(a−1)D+(a−1)21=(a−1)21+(a−1)32D+D2R(D)
Let's go back to,
y∗(t)=21e−at(D2−2aD+a2−11−D2−2(a−1)D+(a−1)21)t=2e−at(a2−11t+(a2−1)22a+(a−1)21t+(a−1)32)
So we have the solution,
y(t)=y∗(t)+y(t)
Differential Equation with Pulse signals
Integration Example
The previous method is very nice. However, when come to equations like,
P(D)y(t)=i=0∑+∞AiDiδ(t)+u(t)s(t)
Of course, we can solve this by parts with the previous method. That is, we can solve,
P(D)y(t)=s(t)t>0P(D)y(t)=0t<0
Instead.
This seems to have solved the issue. But we will have multiple sets of solutions and undefined coefficients- but according to the theory, we should only need one initial state.
We illustrate this by,
Dy+y=δ(t)+u(t)
For t>0,
y=Ae−t+1
For t<0,
y=(B−A)e−t
However, since this equation is one order, the following initial state,
y(−0)=4
Should give us a complete solution- but we have two coefficients here.
This is because, A and B are not independent of each other.
We can rewrite the above solution into one with step function,
y(t)=(A+Bu(t))e−t+u(t)
Let's consider have the differential equation behaves around 0.
Dy+y=δ(t)+u(t)
We integrate on the both sides from −ϵ to ϵ,
∫−ϵϵ(Dy+y)dt=∫−ϵϵ(δ(t)+u(t))dt
y(ϵ)−y(−ϵ)+∫−ϵϵy(t)dt=∫−ϵϵ(δ(t)+u(t))dt
We make ϵ→0, so,
y(+0)−y(−0)=1
That is to say,
y(−0)=4y(+0)=5
Now we can have,
A=4A+B+1=5
Now we can solve A and B.
This is how we can solve differential equation with pulse signals.
Similarly, for equations of higher order, there will be y(n)(+0)−y(n)(−0) as well.
You can always analyze by integration, the method above is too grinding- we have a better trick called pulse balancing.
Pulse Balancing
Let's consider the differential equation,
P(D)y(t)=i=0∑+∞AiDiδ(t)+Cu(t)+s(t)
What results in the jump value? It is the discontinuous part of the right side, that is, all δ(t) related function and Cu(t).
Why discontinuous part on the right side causes jump value? We can integrate on the both sides, just like before.
We can always consider moving the right side to into the y(t), that is,
P(D)(y(t)−i=0∑+∞Ai′Diδ(t)−C′u(t))=s(t)
If s(t) is continuous, then y(t)−∑i=0+∞Ai′Diδ(t)−C′u(t) is continuous. Because the ∑i=0+∞Ai′Diδ(t)+C′u(t) part is discontinuous, and so is y(t), their jump value must be the same so that they can be deduced. So we can just integrate ∑i=0+∞Ai′Diδ(t)+C′u(t) for the jump value- and better off, the integration is easy. For the zeroth order, it is obvious C′, for the i th order, it is, (i)!Ai−1′.
This is kind of abstract- let's demonstrate with an example,
Example
Let's solve,
D2y+4Dy+3y=δ′(t)+δ(t)+u(t)
And,
y(−0)=2y′(−0)=2
We first calculate the solution by parts.
y(t)=(A+Bu(t))e−3t+(C+Du(t))e−t+u(t)
Now let's calculate the jump values. We want to find,
P(D)(y(t)−i=0∑+∞Ai′Diδ(t)−C′u(t))=s(t)
Obviously, the highest derivate from δ′(t) should be a result from the highest term on the left side, that is, we can conclude that,
D2(y−u(t))+4D(y−u(t))+3(y−u(t))=−3δ(t)−2u(t)
Then repeat for −3δ(t),
D2(y−u(t)+3tu(t))+4D(y−u(t)+3tu(t))+3(y−u(t)+3tu(t))=14u(t)+9tu(t)
Finally, the u(t) terms,
D2(y−u(t)+3tu(t)−1421t2u(t))+4D(y−u(t)+3tu(t)−1421t2u(t))+3(y−u(t)+3tu(t)−1421t2u(t))=9tu(t)−28tu(t)−21t2u(t)
Now that the right side is continuous, we can conclude,
yc(t)=y−u(t)+3tu(t)−1421t2u(t)
is continuous.
So we have,
y(+0)−y(−0)=1
Then we calculate the derivate,
yc′(t)=y′(t)−δ(t)+3u(t)+14tu(t)
So,
y′(+0)−y′(−0)=−3
We can add these equations for the final result.
Please note that the solution does not actually preserve how the y behaves at 0. That is, it is only correct for t<0 and t>0.
If you want what happens at t=0, we can always transform the equation into the form,
P(D)yc(t)=S(t)u(t)Where S(0)=0.
If you want to preserve what had happened at t=0, just solve this equation for t>0 and t≤0 separately. And finally ensemble them into one solution with step function.