The Unit Sample Response of LTI Systems Now we define the unit sample and unit impulse responses of our systems. Definition 1.3. Define π¦[π] = βπ [π] to be the unit sample response of a system with input π₯[π] = πΏ[π − π], the unit sample shifted to time k. If the system is time invariant, then define β0 [π] = β[π], and βπ [π] = β[π − π]. Define π¦(π‘) = βπ (π‘) to be the unit impulse response of a system with input π₯(π‘) = πΏ(π‘ − π), the unit impulse shifted to time π. If the system is time invariant, then define β0 (π‘) = β(π‘), and βπ (π‘) = β(π‘ − π). Given a linear system, then the unit sample and unit impulse responses determine the output of these linear systems. If the systems are also time invariant, then there is only one impulse response and it just gets shifted around. Example 1.2. Return to the simple example π¦[π] = ππ₯[π]. Then β0 [π] = 0, with β1 [π] = 1πΏ[π − 1], and β2 [2] = 2πΏ[π − 2], etc… We see that there are many different impulse responses, which are not simply shifts of each other. So now we can write down the general time solution for arbitrary inputs. Proposition 1.3. Let x[n] be rewritten as π₯[π] = ∑π π₯[π]πΏ[π − π]. Then the output of a linear system with unit sample responses Then the output of a linear system with unit sample responses βπ [π] to input is given by π¦[π] = ∑π π₯[π]βπ [π]; If the system is time invariant, with β0 [π] = β[π], then π¦[π] = ∑ π₯[π]β[π − π] π Let x(t) be rewritten as π₯(π‘) = ∫ π₯(π)πΏ(π‘ − π)ππ. Then the output of a linear system with unit sample responses βπ (π‘) to input is given by π¦(π‘) = ∫ π₯(π)βπ (π‘)ππ; If the system is time-invariant, with β0 (π‘) = β(π‘), then π¦(π‘) = ∫ π₯(π)β(π‘ − π)ππ; Example 1.3. Let system be a constant coefficient difference equation with zero initial condition y[-∞]=0 and with input x[n] and output y[n] given by system equation π₯[π] = π¦[π] − πΌπ¦[π − 1] Let’s show that it is linear, time-invariant with unit sample response β[π] = πΌ π π’[π] Linearity: Let π₯1 [π] give π¦1 [π], and π₯2 [π] give π¦2 [π], then we have ππ₯1 [π] + ππ₯2 [π] = ππ¦1 [π] − ππΌπ¦1 [π − 1] + ππ¦2 [π] − ππΌπ¦2 [π − 1] = (ππ¦1 [π] + ππ¦2 [π]) − πΌ(ππ¦1 [π − 1] + ππ¦2 [π − 1]) Time invariant: Introduce shift π0 according to π₯[π − π0 ] = π¦[π − π0 ] − πΌπ¦[π − π0 − 1] Let π = π − π0 , then for any π0 we have π₯[π] = π¦[π] − πΌπ¦[π − 1] π₯[π − π0 ] = π¦[π − π0 ] − πΌπ¦[π − π0 − 1] Implying π₯[π − π0 ] = π¦[π − π0 ] − πΌπ¦[π − π0 − 1] To solve for the unit-sample response, let πΏ[π] = β[π] − πΌβ[π − 1] Then β[π] = 0, π ≤ −1, then β[0] = πΏ[0] = 1 β[1] = πΌβ[0] = πΌ β[2] = πΌβ[1] = πΌ 2 β[π] = πΌ π , π ≥ 0 Notice, complex exponentials pass right through this system as well with just a complex number added, guess π¦[π] = π»π πππ , then π πππ = π»π πππ − πΌπ»π ππ(π−1) Implying π»= 1 1 − πΌπ −ππ Example 1.4. Let us return to our favorite differential equation: π₯(π‘) = π¦Μ (π‘) + πΌπ¦(π‘), π¦(−∞) = 0, with impulse response β(π‘) = π −πΌπ‘ π’(π‘) To see this, let us solve the differential equation for the impulse response: πΏ(π‘) = βΜ(π‘) + πΌβ(π‘), β(−∞) = 0 Use the face that βΜ(π‘) = πΏ(π‘), implying for t < 0, then h(t)=0. For π‘ ≥ 0, then if β(π‘) = π −πΌπ‘ π’(π‘), we have πΏ(π‘) = π π π’(π‘) = π −πΌπ‘ π’(π‘) + πΌπ −πΌπ‘ π’(π‘) ππ‘ ππ‘ = π −πΌπ‘ π π’(π‘) − πΌπ −πΌπ‘ π’(π‘) + πΌπ −πΌπ‘ π’(π‘) ππ‘ At t < 0, 0=0, and t > 0 0 = −πΌπ −πΌπ‘ π’(π‘) + πΌπ −πΌπ‘ π’(π‘) t=0 π π’(π‘) ππ‘ = π π’(π‘) ππ‘ − πΌπ −πΌπ‘ π’(π‘) + πΌπ −πΌπ‘ π’(π‘) So now we have our general solutions for the difference equations and differential equations. For the difference equation π₯[π] = π¦[π] − πΌπ¦[π − 1] We have π¦[π] = π₯[π] ∗∗ β[π] = ∑ π₯[π]β[π − π] π=−∞ ∞ = ∑ π₯[π]πΌ π−π π’[π − π] π=−∞ ∞ = ∑ π₯[π]πΌ π−π π=−∞ For an input of π₯[π] = π’[π], then we have π π π¦[π] = ∑ π’[π]πΌ π=−∞ π−π = ∑ πΌ π−π π’[π] π=−∞ 1 − πΌ −(π+1) =πΌ π’[π] 1 − πΌ −1 π = πΌ π+1 − 1 1 − πΌ π+1 π’[π] = π’[π] πΌ−1 1−πΌ For the differential equation π₯(π‘) = π¦Μ (π‘) + πΌπ¦(π‘) We have ∞ π¦(π‘) = π₯(π‘) ∗∗ β(π‘) = ∫ π₯(π)π −πΌ(π‘−π) π’(π‘ − π)ππ −∞ π‘ = ∫ π₯(π)π −πΌ(π‘−π) ππ −∞ For x(t)=u(t), then π‘ π¦(π‘) = ∫ π −πΌ(π‘−π) πππ’(π‘) = π −πΌπ‘ 0 1 πΌπ π‘ 1 π | π’(π‘) = (1 − π −πΌπ‘ )π’(π‘) πΌ 0 πΌ Example 1.5. Examine an RLC circuit, take the output across the capacitor. Then y(t) is taken as the output with input the voltage source x(t). To derive the input-output relationship, let’s use one of the two stalwarts of circuit theory – Kirchoffs voltage law. The voltage across the capacitor output y(t) when added to the voltage across the resistor must add to the input voltage x(t). The voltage across the resistor is RI(t). I, the derivative of the current is given by πΆπ¦Μ (π‘). Thus, we have the equation π₯(π‘) = π πΆπ¦Μ (π‘) + π¦(π‘), π¦(−∞) = 0 Notice the initial condition corresponds to no voltage across the capacitor – system at rest. We have our LTI system (first-order constant-coefficient differential equation), with impulse 1 1 response β(π‘) = π πΆ π −π πΆπ‘ π’(π‘). The output becomes π¦(π‘) = ∫ π₯(π) = 1 π‘−π π π πΆ π’(π‘ − π)ππ π πΆ π‘−π 1 π‘ ∫ π₯(π)π π πΆ ππ π πΆ −∞