What deconvolution actually solves
Convolution describes any linear process that spreads energy over time: a microphone's response, a lens's blur, a room's reverberation, a detector's dead time. If you know the kernel h and you measured the output y, recovering the input x is a deconvolution problem.
x[n] = (y[n] − Σ_{k≥1} h[k]·x[n−k]) / h[0]
The key observation is that x[n] depends only on y[n] and on earlier values of x that have already been recovered. So the problem is not a system to be solved but a recurrence to be walked forward, one sample at a time.
Worked example: a two-tap running sum
Take h = [1, 1], which is a two-sample running sum, and suppose the measured output is y = [1, 3, 7, 15]. At n = 0 there is no history, so x[0] = y[0]/h[0] = 1.
At n = 1, y[1] = h[0]x[1] + h[1]x[0] = x[1] + 1 = 3, so x[1] = 2. At n = 2, x[2] = 7 − 2 = 5. At n = 3, x[3] = 15 − 5 = 10. The recovered input is [1, 2, 5, 10].
| n | y[n] | h[1]·x[n−1] | x[n] |
|---|---|---|---|
| 0 | 1 | — | 1 |
| 1 | 3 | 1 | 2 |
| 2 | 7 | 2 | 5 |
| 3 | 15 | 5 | 10 |
The tool re-convolves the answer and reports the largest deviation from y. Here it is exactly zero, because every operation was exact. When the numbers do not divide cleanly you will see a small residual, and that is the honest rounding error rather than a bug.
Why deconvolution is unstable
Convolution is a smoothing operation: it averages neighbouring samples together. Averaging destroys information, and inverting it therefore amplifies whatever noise was in the measurement. The amplification factor is roughly 1/|h[0]|, so a kernel whose first tap is small produces a violently noisy answer.
Small leading tap, big problem. If h[0] = 0.01, every recovered sample is multiplied by 100 relative to the measurement. A ±0.001 error in y becomes ±0.1 in x. That is why real deconvolution is always regularised rather than solved directly.
The same effect appears in the frequency domain. Deconvolution divides by H(f), and wherever H(f) is small the division blows up. Regularised methods — Wiener filtering, Tikhonov damping, truncated SVD — all amount to refusing to divide when the denominator is too small to trust.
Three equivalent views
| Domain | Forward | Inverse |
|---|---|---|
| Time | Sliding dot product | Forward recursion on x[n] |
| Polynomial | Multiply coefficient lists | Polynomial long division |
| Frequency | Multiply the spectra | Divide the spectra |
The polynomial view is the most compact: convolving [1, 2] with [1, 1] gives the coefficients of (1 + 2z)(1 + z) = 1 + 3z + 2z². Deconvolution is then just long division, which is exactly what the forward recursion computes.
Where it is used in practice
- Audio — removing a known room response, or restoring a recording made through a limited microphone.
- Imaging — deblurring a photograph when the point-spread function is known, for example motion blur of a fixed length.
- Seismology — separating the source wavelet from the Earth's response to read off reflectors.
- Spectroscopy — correcting for the finite resolution of the instrument, which broadens every peak.
- Control — estimating the command signal that produced a measured actuator response.
In every one of these the kernel is the easy part and the noise is the difficulty. A deconvolution that ignores noise will produce a result that reproduces the measurement exactly and is completely wrong about the underlying signal.
Frequently asked questions
What does it mean to deconvolve y = [1, 3, 7, 15] with h = [1, 1]?
The kernel is a two-sample running sum, so undoing it means taking successive differences: x = [1, 2, 5, 10]. Convolving that back with [1, 1] returns the original output exactly.
Why must the first kernel value be non-zero?
Because the recursion divides by h[0]. If it were zero, x[0] could not be determined from y[0] at all — the system would have infinitely many solutions, none of them preferred.
Why is my recovered signal so noisy?
Convolution averages, and averaging throws information away. Inverting it amplifies measurement noise by roughly 1/|h[0]|. If the kernel has a small leading value, the amplification is severe — that is a property of the problem, not a limitation of the calculator.
What if I do not know the kernel?
Then the problem is blind deconvolution, which needs additional assumptions such as sparsity or a known signal class. This tool requires the kernel as input.
Does the order of the samples matter?
Yes. Both lists must run oldest to newest, and the convolution is causal: y[n] depends only on x at indices n and earlier. Reversing the input produces a different, equally valid but wrong answer.
How do I check the result?
The tool does it for you — it re-convolves the recovered x with h and reports the largest deviation from y. A residual near zero means the answer is consistent; a large one means the input was inconsistent or the numbers are too coarse.