# Convolution examples

This page lets the user visualize and calculate how the convolution of two functions is determined. It consist of three graphs.

Top graph: Two functions, h(t) (dashed red line) and f(t) (solid blue line) are plotted in the topmost graph. As you choose new functions, these graphs will be updated.

Middle graph: The middle graph shows three separate functions and has an independent variable (i.e., x-axis) of λ. This is important - in this graph λ varies and t is constant. Shown are

• f(λ) (solid blue line). Note: this looks just like f(t).
• h(t-λ) (dashed red line). Note: this is reversed horizontally relative to the original (because of the minus sign on the independent variable, i.e., -λ) and shifted horizontally (by the an amount equal to the constant t).
• the product, f(λ)·h(t-λ) (pink line, and filled in with pink). Note: this is a function of λ, with t being a constant). This function is shaded in pink as a reminder that the convolution is the integral of this function for this particular value of t. (i.e., the shaded area above 0 minus the shaded area below zero).
• the value of "t".  You can change the value of t by clicking and dragging within the middle or bottom graph.

The variable λ does not appear in the final convolution, it is merely a dummy variable used in the convolution integral (see below).

Bottom graph: The bottom graph shows y(t), the convolution of h(t) and f(t), as well as the value of "t" specified in the middle graph (you can change the value of t by clicking and dragging within the middle or bottome graph).

$y(t)=\int_{-\infty}^{+\infty}{h(t-\lambda)\cdot f(\lambda)\cdot d\lambda}=\int_{0^-}^t{h(t-\lambda)\cdot f(\lambda)\cdot d\lambda}$
Click here to see why the two integrals are equal despite the different limits of integration.

The constant value of t from the middle graph is indicated by a black dot on the bottom two graphs. You can change the value of t by entering a value into the box below, or you can click and move the mouse horizontally in either of the two lower graphs.
t: seconds.
The value of the convolution at this time is y() = .
This value is calculated numerically and may differ slightly from an exact value.

You can select two functions, h(t) and f(t) to be convolved. You can also choose to show the complete solution or just the solution until a specified time. This is useful when learning because you can try to figure out what the convolution looks like to test your understanding.

 Select h(t): Select f(t): Show complete solution?

The functions used for the current example are (note: all functions are implicitly multiplied by the unit step function, γ(t), so they are equal to 0 for t<0).

h(t)=,
and
f(t)= .

______________________________________

To help your understanding, you can get an explanation of the convolution of select pairs of h(t) and f(t). Use the drop down below to select values two functions, and an explanation of the shape of the convolution will appear above.

References