Convolution Calculator

Discrete (f*g)[n]

CalculatorsFreeNo Signup
4.9(838 reviews)
All Tools

Loading tool...

About Convolution Calculator

A discrete convolution calculator. Computes (f*g)[n] = Σ f[k]g[n−k]. Enter two sequences, get the full convolution result. Shows each output sample calculation. Essential for signal processing, filtering, and polynomial multiplication. All calculations are client-side.

Convolution Calculator Features

  • (f*g)[n]
  • Step-by-step
  • Sequence input
  • Output length
  • Polynomial mul
Discrete convolution: (f*g)[n] = Σₖ f[k]g[n−k]. Output length = len(f)+len(g)−1. Equivalent to polynomial multiplication. In frequency domain: F{f*g} = F{f}·F{g}. Foundation of FIR filtering and linear systems.

How to Use

Enter sequences:

  • f: First sequence
  • g: Second sequence
  • Output: (f*g)[n]

Properties

  • Commutative: f*g = g*f
  • Associative: f*(g*h) = (f*g)*h
  • Distributive: f*(g+h) = f*g + f*h
  • Identity: f*δ = f

FFT Convolution

Direct: O(n²). FFT method: O(n log n). Pad to power of 2, FFT both, multiply, inverse FFT. Used for large sequences.

Step-by-Step Instructions

  1. 1Enter sequence f.
  2. 2Enter sequence g.
  3. 3View (f*g)[n].
  4. 4See step calculations.
  5. 5Check output length.

Convolution Calculator — Frequently Asked Questions

How is convolution related to polynomial multiplication?+

If f = [a₀,a₁,...] represents a₀+a₁x+... and g = [b₀,b₁,...], then f*g gives the coefficients of the product polynomial. Coefficient cₖ = Σᵢ aᵢbₖ₋ᵢ, which is exactly convolution.

Why is convolution important in signal processing?+

LTI (linear time-invariant) systems are completely characterized by convolution: output = input * impulse_response. Every FIR filter IS convolution. IIR filters use recursive convolution.

What is the output length?+

If f has M samples and g has N samples, f*g has M+N−1 samples. This is because the 'sliding' of one sequence over the other produces M+N−1 distinct positions with overlap.

Share this tool: