Difference between revisions of "ECE 280/Examples/Convolution"
Line 52: | Line 52: | ||
</math></center> | </math></center> | ||
These three conditions lead to three changes. The limits on <math>\tau</math> change the limits of the integral with respect to <math>\tau</math> while the condition on <math>t</math> can be represented by a unit step of <math>t</math>. In other words: | These three conditions lead to three changes. The limits on <math>\tau</math> change the limits of the integral with respect to <math>\tau</math> while the condition on <math>t</math> can be represented by a unit step of <math>t</math>. In other words: | ||
+ | <center><math> | ||
+ | \begin{align} | ||
+ | \int_{-\infty}^{\infty}{\color{Brown}2e^{-(t-\tau)}}{\color{Red}u(\tau)}{\color{Blue}u(t-\tau)}d\tau &= | ||
+ | {\color{Purple}u(t)}\int_{{\color{Red}0}}^{{\color{Blue}t}}{\color{Brown}2e^{-(t-\tau)}}d\tau\\ | ||
+ | {\color{Purple}u(t)}\int_{{\color{Red}0}}^{{\color{Blue}t}}{\color{Brown}2e^{-(t-\tau)}}d\tau&= | ||
+ | u(t)\left[2e^{-(t-\tau)} \right]_0^{t}=\left(2-2e^{-t}\right)u(t) | ||
+ | \end{align} | ||
+ | </math></center> | ||
+ | Note with that last line that the integral is with respect to <math>\tau</math> and the exponent of <math>\tau</math> is +1. The other two components of the convolution integral can be processed in a similar way: | ||
+ | <center><math> | ||
+ | \begin{align} | ||
+ | \int_{-\infty}^{\infty}{\color{Brown}-e^{-(t-\tau)}}{\color{Red}u(\tau-1)}{\color{Blue}u(t-\tau)}d\tau &= | ||
+ | {\color{Purple}u(t-1)}\int_{{\color{Red}1}}^{{\color{Blue}t}}{\color{Brown}-e^{-(t-\tau)}}d\tau\\ | ||
+ | {\color{Purple}u(t-1)}\int_{{\color{Red}1}}^{{\color{Blue}t}}{\color{Brown}-e^{-(t-\tau)}}d\tau&= | ||
+ | -u(t-1)\left[e^{-(t-\tau)} \right]_1^{t}=-\left(1-1e^{-(t-1)}\right)u(t-1) | ||
+ | \end{align} | ||
+ | </math></center> | ||
+ | and | ||
+ | <center><math> | ||
+ | \begin{align} | ||
+ | \int_{-\infty}^{\infty}{\color{Brown}-e^{-(t-\tau)}}{\color{Red}u(\tau-3)}{\color{Blue}u(t-\tau)}d\tau &= | ||
+ | {\color{Purple}u(t-3)}\int_{{\color{Red}3}}^{{\color{Blue}t}}{\color{Brown}-e^{-(t-\tau)}}d\tau\\ | ||
+ | {\color{Purple}u(t-3)}\int_{{\color{Red}3}}^{{\color{Blue}t}}{\color{Brown}-e^{-(t-\tau)}}d\tau&= | ||
+ | -u(t-3)\left[e^{-(t-\tau)} \right]_3^{t}=-\left(1-1e^{-(t-3)}\right)u(t-3) | ||
+ | \end{align} | ||
+ | </math></center> | ||
+ | meaning (finally) that: | ||
+ | <center><math> | ||
+ | \begin{align} | ||
+ | y(t)=x(t)*h(t)=\left(2-2e^{-t}\right)u(t)-\left(1-1e^{-(t-1)}\right)u(t-1)-\left(1-1e^{-(t-3)}\right)u(t-3) | ||
+ | \end{align} | ||
+ | </math></center> |
Revision as of 00:13, 17 September 2013
The following is an example of convolving two signals; the convolution is done several different ways:
- Math... So much math.
- Using Convolution Shortcuts
- Geometrically, flipping and shifting \(h(t)\)
- Geometrically, flipping and shifting \(x(t)\)
Setup
The goal for this problem is to determine the output \(y(t)\) created by an input \(x(t)\) for a linear time invariant system if the system's impulse response \(h(t)\) is known. In this particular example:
where the particular choice of which integral to use is up to the user.
Math
Given the relative complexity of \(x(t)\), it may make more sense to use the first form, where \(h(t)\) is flipped and shifted. That yields:
Distributing terms gives:
Taking the first part alone:
note that the integrand is only non-zero when two conditions are met simultaneously:
Furthermore, those conditions can only be met simultaneously if the outer conditions are met; that is, if:
These three conditions lead to three changes. The limits on \(\tau\) change the limits of the integral with respect to \(\tau\) while the condition on \(t\) can be represented by a unit step of \(t\). In other words:
Note with that last line that the integral is with respect to \(\tau\) and the exponent of \(\tau\) is +1. The other two components of the convolution integral can be processed in a similar way:
and
meaning (finally) that: