Difference between revisions of "ECE 280/Examples/Convolution"
Line 82: | Line 82: | ||
\begin{align} | \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) | 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> | ||
+ | |||
+ | == Shortcuts == | ||
+ | To use the shortcuts, first distribute the various components of the convolution: | ||
+ | <center><math> | ||
+ | \begin{align} | ||
+ | x(t)&=2u(t)-u(t-1)-u(t-3)\\ | ||
+ | h(t)&=e^{-t}u(t)\\ | ||
+ | x(t)*h(t)&=2u(t)*e^{-t}u(t)-u(t-1)*e^{-t}u(t)-u(t-3)*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)&=2e^{-t}u(t)*u(t)-e^{-t}u(t)*u(t)*\delta(t-1)-e^{-t}u(t)*u(t)*\delta(t-3) | ||
+ | \end{align} | ||
+ | </math></center> | ||
+ | Note that each component now has a convolution of | ||
+ | <center><math> | ||
+ | \begin{align} | ||
+ | e^{-t}u(t)*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} | ||
+ | \int_{-\infty}^{t}e^{-\tau}u(\tau)d\tau=u(t)\left[-e^{-\tau}\right]_0^t=(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)&=2(1-e^{-t})u(t)-(1-e^{-t})u(t)*\delta(t-1)-(1-e^{-t})u(t)*\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} | \end{align} | ||
</math></center> | </math></center> |
Revision as of 16:30, 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
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: