Difference between revisions of "ECE 280/Examples/Convolution"
Line 86: | Line 86: | ||
== Shortcuts == | == Shortcuts == | ||
+ | <div class="toccolours mw-collapsible" style="width:800px"> | ||
+ | Full color version: | ||
+ | <div class="mw-collapsible-content"> | ||
To use the shortcuts, first distribute the various components of the convolution: | To use the shortcuts, first distribute the various components of the convolution: | ||
<center><math> | <center><math> | ||
Line 124: | Line 127: | ||
\end{align} | \end{align} | ||
</math></center> | </math></center> | ||
+ | </div> | ||
+ | </div> | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="width:800px"> | ||
+ | Black and white only: | ||
+ | <div class="mw-collapsible-content"> | ||
+ | To use the shortcuts, first distribute the various components of the convolution: | ||
+ | <center><math> | ||
+ | \begin{align} | ||
+ | x(t)&={\color{Black}2u(t)-u(t-1)-u(t-3)}\\ | ||
+ | h(t)&={\color{Black}e^{-t}u(t)}\\ | ||
+ | x(t)*h(t)&={\color{Black}2u(t)}*{\color{Black}e^{-t}u(t)}{\color{Black}-u(t-1)}*{\color{Black}e^{-t}u(t)}{\color{Black}-u(t-3)}*{\color{Black}e^{-t}u(t)} | ||
+ | \end{align} | ||
+ | </math></center> | ||
+ | These can be rearranged, pulling out any shifts, as: | ||
+ | <center><math> | ||
+ | \begin{align} | ||
+ | x(t)*h(t)&={\color{Black}2}{\color{Black}e^{-t}u(t)}*{\color{Black}u(t)}{\color{Black}-}{\color{Black}e^{-t}u(t)}*{\color{Black}u(t)}{\color{Black}*\delta(t-1)}{\color{Black}-}{\color{Black}e^{-t}u(t)}*{\color{Black}u(t)}{\color{Black}*\delta(t-3)} | ||
+ | \end{align} | ||
+ | </math></center> | ||
+ | Note that each component now has a convolution of | ||
+ | <center><math> | ||
+ | \begin{align} | ||
+ | {\color{Black}e^{-t}u(t)}*{\color{Black}u(t)} | ||
+ | \end{align} | ||
+ | </math></center> | ||
+ | in it. Convolution with a step generates an integral, and integrating the right-sided exponential yields: | ||
+ | <center><math> | ||
+ | \begin{align} | ||
+ | {\color{Black}\int_{-\infty}^{t}}{\color{Black}e^{-\tau}u(\tau)}d\tau=u(t)\left[-e^{-\tau}\right]_0^t={\color{Black}(1-e^{-t})u(t)} | ||
+ | \end{align} | ||
+ | </math></center> | ||
+ | which means the rearranged functions can be re-written as: | ||
+ | <center><math> | ||
+ | \begin{align} | ||
+ | x(t)*h(t)&={\color{Black}2}{\color{Black}(1-e^{-t})u(t)}{\color{Black}-}{\color{Black}(1-e^{-t})u(t)}{\color{Black}*\delta(t-1)}{\color{Black}-}{\color{Black}(1-e^{-t})u(t)}{\color{Black}*\delta(t-3)} | ||
+ | \end{align} | ||
+ | </math></center> | ||
+ | Now the shifts can be applied to give: | ||
+ | <center><math> | ||
+ | \begin{align} | ||
+ | x(t)*h(t)&=2(1-e^{-t})u(t)-(1-e^{-(t-1)})u(t-1)-(1-e^{-(t-3)})u(t-3) | ||
+ | \end{align} | ||
+ | </math></center> | ||
+ | </div> | ||
+ | </div> |
Revision as of 17:51, 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:
Shortcuts
Full color version:
To use the shortcuts, first distribute the various components of the convolution:
These can be rearranged, pulling out any shifts, as:
Note that each component now has a convolution of
in it. Convolution with a step generates an integral, and integrating the right-sided exponential yields:
which means the rearranged functions can be re-written as:
Now the shifts can be applied to give:
Black and white only:
To use the shortcuts, first distribute the various components of the convolution:
These can be rearranged, pulling out any shifts, as:
Note that each component now has a convolution of
in it. Convolution with a step generates an integral, and integrating the right-sided exponential yields:
which means the rearranged functions can be re-written as:
Now the shifts can be applied to give: