PhysSandbox
Classical MechanicsWaves & SoundElectricity & MagnetismOptics & LightGravity & OrbitsLabs
🌙Astronomy & The Sky🌡️Thermodynamics🌍Biophysics, Fluids & Geoscience📐Math Visualization🔧Engineering🧪Chemistry

More from Math Visualization

Other simulators in this category — or see all 46.

View category →
NewUniversity / research

Euler vs RK4 (Pendulum)

Same nonlinear pendulum ODE and step h; Euler vs RK4 side by side.

Launch Simulator
NewSchool

Lotka–Volterra

N′ = αN−βNP, P′ = δNP−γP; phase plane RK4; equilibrium dot.

Launch Simulator
NewSchool

Logistic Growth

dN/dt = rN(1−N/K); exact S-curve vs carrying capacity K.

Launch Simulator
NewUniversity / research

Logistic Map Bifurcation

x_{n+1}=rx_n(1−x_n): scan r, plot attractors — period doubling to chaos (Feigenbaum cascade).

Launch Simulator
NewSchool

2×2 Matrix & Eigenvectors

Grid deformation under M; real λ eigen-direction arrows.

Launch Simulator
NewUniversity / research

Lorenz Strange Attractor

σ, ρ, β ODEs; sensitive butterfly in (x,z) projection — RK4 trace.

Launch Simulator
PhysSandbox

Interactive physics, chemistry, and engineering simulators for students, teachers, and curious minds.

Physics

  • Classical Mechanics
  • Waves & Sound
  • Electricity & Magnetism

Science

  • Optics & Light
  • Gravity & Orbits
  • Astronomy & The Sky

More

  • Thermodynamics
  • Biophysics, Fluids & Geoscience
  • Math Visualization
  • Engineering
  • Chemistry

© 2026 PhysSandbox. Free interactive science simulators.

PrivacyTermsContact
Home/Math Visualization/Convolution (pulses)

Convolution (pulses)

Convolution is a fundamental mathematical operation that describes how the shape of one function is modified by another. This simulator visualizes the convolution of two rectangular pulses, f(t) and g(t), producing a third function (f∗g)(τ). The core operation is defined by the convolution integral: (f∗g)(τ) = ∫_{-∞}^{∞} f(t) g(τ - t) dt. Here, τ is the shift parameter; as you slide one pulse past the other, the integral calculates the area of their overlap at each shift position. The simulator simplifies the concept by using simple, symmetric rectangular pulses, making the geometric interpretation of overlap area clear. Students will observe that the convolution of two rectangles of widths A and B results in a trapezoidal (or triangular, if A=B) output pulse. The width of the resulting pulse is A+B, demonstrating how convolution spreads or broadens signals. By interacting with the visualization, learners move beyond the abstract integral to see convolution as a measure of shared presence, a concept critical to signal processing (filtering), probability (sum of independent random variables), and physics (system response to an input). The model assumes ideal, noiseless pulses and a one-dimensional, continuous-time framework, providing a clean foundation before tackling more complex functions or discrete systems.

Who it's for: Undergraduate students in engineering, physics, and mathematics courses covering signals and systems, linear systems, or integral transforms. It is also valuable for advanced high school students in project-based STEM programs.

Key terms

  • Convolution
  • Convolution Integral
  • Rectangular Pulse
  • Shift Parameter (τ)
  • Signal Processing
  • Overlap Integral
  • Linear Time-Invariant (LTI) Systems
  • Trapezoidal Function

Box widths & shift

2.2
1.6
0.4

Two rectangular pulses of unit height. The convolution (f∗g)(τ) = ∫ f(t)g(τ−t)dt at τ = 0 equals the overlap length shown in green when both are aligned on the same t-axis with g shifted.

Measured values

Overlap (τ=0)1.600

How it works

Convolution measures how much two functions overlap when one is reversed and shifted. For equal-height boxes, the integral is the length of the intersection — a building block for smoothing and linear systems.

Frequently asked questions

Why does the convolution of two rectangles produce a trapezoid or triangle?
The output value at each shift τ is the area of overlap between the two pulses. As one pulse slides, the overlap area increases linearly until the pulses are fully aligned, then decreases linearly. This linear change in area creates the sloping sides of a trapezoid. If the pulses have equal width, the 'fully aligned' region is a single point, resulting in a triangle.
What is a real-world application of convolving rectangular pulses?
In signal processing, a rectangular pulse can model a brief on/off signal or a uniform data packet. Convolution with another rectangle models the effect of a simple averaging filter or a finite-duration integration window. For example, this operation smooths a signal, averaging out rapid fluctuations over a short time window.
What does the shift parameter τ actually represent?
The parameter τ represents the relative time delay between the two functions. In the integral, g(τ - t) is a time-reversed and shifted version of g(t). Varying τ slides this modified pulse across the stationary pulse f(t). The output (f∗g)(τ) is therefore a function of this delay, showing how the overlap area changes with shifting alignment.
What is a key limitation of this simplified model?
This model uses ideal, noiseless pulses with sharp edges. Real-world signals are rarely perfect rectangles and often contain noise. Furthermore, the visualization is for continuous-time convolution; digital signal processing uses discrete convolution, which sums products at sample points rather than integrating a continuous area.