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

Related simulators

Continue with similar topics in this category — or all 85 in Math Visualization.

View category →
NewUniversity / research

STFT & Spectrogram

Launch Simulator

Slide a windowed FFT across the signal: chirps, two-tones, bursts. Tune window M, hop, type — see the time–frequency trade-off live.

NewUniversity / research

Flow Field Particles

Launch Simulator

Synthetic v(x,y,t); advection with wrap; optional arrow grid.

NewUniversity / research

Newton-Raphson Basins in 2D Systems

Launch Simulator

Map Newton basins for nonlinear F(x,y)=0 systems: initial-guess sensitivity, iteration counts, root attraction, and singular-Jacobian failures.

NewUniversity / research

Advection Schemes: Upwind / LW / MacCormack

Launch Simulator

Linear advection u_t + cu_x = 0 on a periodic grid: compare upwind diffusion, Lax-Wendroff and MacCormack dispersive ringing, exact pulse translation, L2 error, and CFL ν.

NewUniversity / research

2D Phase Portrait (ODE)

Launch Simulator

Direction field and click-to-trace trajectories for planar systems: harmonic, damped, saddle, nodes, foci, pendulum (RK4).

NewUniversity / research

Gaussian Process Regression

Launch Simulator

Interactive GP regression with RBF and Matérn kernels: tune length scale/noise, add observations by clicking, view posterior mean with uncertainty bands, and sample at max posterior variance.

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)

Two rectangular pulses; overlap length at τ = 0.

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

About this model

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

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.