This session is an introduction to the impulse response of a system and time convolution. Together, these can be used to determine a Linear Time Invariant (LTI) system's time response to any signal.
As we shall see, in the determination of a system's response to a signal input, time convolution involves integration by parts and is a tricky operation. But time convolution becomes multiplication in the Laplace Transform domain, and is much easier to apply.
The material to be presented is:
First Hour
Second Hour
(This should be revision!)
We need to be reminded of even and odd functions so that we can develop the idea of time convolution which is a means of determining the time response of any system for which we know its impulse response to any signal.
The development requires us to find out if the Dirac delta function ($\delta(t)$) is an even or an odd function of time.
A function $f(t)$ is said to be an even function of time if the following relation holds
$$f(-t) = f(t)$$
that is, if we relace $t$ with $-t$ the function $f(t)$ does not change.
Polynomials with even exponents only, and with or without constants, are even functions. For example:
$$\cos t = 1 - \frac{t^2}{2!} + \frac{t^4}{4!} - \frac{t^6}{6!} + \ldots$$
is even.
A function $f(t)$ is said to be an odd function of time if the following relation holds
$$-f(-t) = f(t)$$
that is, if we relace $t$ with $-t$, we obtain the negative of the function $f(t)$.
Polynomials with odd exponents only, and no constants, are odd functions. For example:
$$\sin t = t - \frac{t^3}{3!} + \frac{t^5}{5!} - \frac{t^7}{7!} + \ldots$$
is odd.
In the following $f_e(t)$ will donate an even function and $f_o(t)$ an odd function.
For an even function $f_e(t)$
$$\int_{-T}^{T}f_e(t) dt = 2 \int_{0}^{T}f_e(t) dt$$
For an odd function $f_o(t)$
$$\int_{-T}^{T}f_o(t) dt = 0$$
A function $f(t)$ that is neither even nor odd can be represented as an even function by use of:
$$f_e(t) = \frac{1}{2}\left[f(t)+f(-t)\right]$$
or as an odd function by use of:
$$f_o(t) = \frac{1}{2}\left[f(t)-f(-t)\right]$$
Adding these together, an abitrary signal can be represented as
$$f(t) = f_e(t) + f_o(t)$$
That is, any function of time can be expressed as the sum of an even and an odd function.
Is the Dirac delta $\delta(t)$ an even or an odd function of time?
Consider a system whose input is the Dirac delta ($\delta(t)$), and its output is the impulse response $h(t)$. We can represent the inpt-output relationship as a block diagram
Let $u(t)$ be any input whose value at $t=\tau$ is $u(\tau)$, Then because of the sampling property of the delta function
(output is $u(\tau)h(t-\tau)$)
Integrating both sides over all values of $\tau$ ($-\infty < \tau < \infty$) and making use of the fact that the delta function is even, i.e.
$$\delta(t-\tau)=\delta(\tau-t)$$
we have:
The second integral on the left side reduces to $u(t)$
The integral
$${\int_{-\infty}^{\infty} u(\tau)h(t-\tau)d\tau}$$
or
$${\int_{-\infty}^{\infty} u(t-\tau)h(\tau)d\tau}$$
is known as the convolution integral; it states that if we know the impulse response of a system, we can compute its time response to any input by using either of the integrals.
The convolution integral is usually written $u(t)*h(t)$ or $h(t)*u(t)$ where the asterisk ($*$) denotes convolution.
The convolution integral is most conveniently evaluated by a graphical evaluation. The text book gives three examples (6.4-6.6) which we will demonstrate using a graphical visualization tool developed by Teja Muppirala of the Mathworks.
The tool: convolutiondemo.m (see license.txt).
convolutiondemo
Warning: The EraseMode property is no longer supported and will error in a future release. > In convolutiondemo>convolutiondemo_LayoutFcn (line 398) In convolutiondemo>gui_mainfcn (line 1188) In convolutiondemo (line 44) Warning: The EraseMode property is no longer supported and will error in a future release. > In convolutiondemo>convolutiondemo_LayoutFcn (line 449) In convolutiondemo>gui_mainfcn (line 1188) In convolutiondemo (line 44) Warning: The EraseMode property is no longer supported and will error in a future release. > In convolutiondemo>convolutiondemo_LayoutFcn (line 500) In convolutiondemo>gui_mainfcn (line 1188) In convolutiondemo (line 44) Warning: The EraseMode property is no longer supported and will error in a future release. > In convolutiondemo>convolutiondemo_LayoutFcn (line 551) In convolutiondemo>gui_mainfcn (line 1188) In convolutiondemo (line 44) Warning: The EraseMode property is no longer supported and will error in a future release. > In convolutiondemo>convolutiondemo_LayoutFcn (line 621) In convolutiondemo>gui_mainfcn (line 1188) In convolutiondemo (line 44) Warning: The EraseMode property is no longer supported and will error in a future release. > In convolutiondemo>convolutiondemo_LayoutFcn (line 672) In convolutiondemo>gui_mainfcn (line 1188) In convolutiondemo (line 44) Warning: The EraseMode property is no longer supported and will error in a future release. > In convolutiondemo>convolutiondemo_LayoutFcn (line 723) In convolutiondemo>gui_mainfcn (line 1188) In convolutiondemo (line 44) Warning: The EraseMode property is no longer supported and will error in a future release. > In convolutiondemo>convolutiondemo_LayoutFcn (line 774) In convolutiondemo>gui_mainfcn (line 1188) In convolutiondemo (line 44)
For simplicity, we give the rules for $u(t)$, but the procedure is the same if we reflect and slide $h(t)$
(This is example 6.4 in the textbook)
The signals $h(t)$ and $u(t)$ are shown below. Compute $h(t)*u(t)$ using the graphical technique.
To prepare this problem for evaluation in the convolutiondemo
tool, we need to determine the Laplace Transforms of $h(t)$ and $u(t)$.
g = (1 - exp(-s))/s
h = (s + exp(-s) - 1)/s^2
syms t tau
x1=int(exp(-tau),tau,0,t)
x1 = 1 - exp(-t)
x2=int(exp(-tau),tau,t-1,t)
x2 = exp(-t)*(exp(1) - 1)
This is example 6.6 from the text book.
$$h(t) = 2(u_0(t)-u_0(t-1))$$
$$u(t) = u_0(t)-u_0(t-2)$$
In the discussion of Laplace, we stated that
$$\mathcal{L} \left\{ f(t)*g(t)\right\} = F(s)G(s)$$
We can use this property to make the solution of convolution problems even simpler.
This is example 6.7 from the textbook.
For the circuit shown above, show that the transfer function of the circuit is:
$$ H(s) = \frac{V_c(s)}{V_s(s)} = \frac{1/RC}{s + 1/RC} $$
Hence determine the impulse respone $h(t)$ of the circuit and the response of the capacitor voltage when the input is the unit step function $u_0(t)$ and $v_c(0^-)=0$.
Assume $C=1\; \mathrm{F}$ and $R=1\;\Omega$.
Verify this result using the convolution integral
$$h(t)*u(t) = {\int_{-\infty}^{\infty} u(\tau)h(t-\tau)d\tau}$$