Multiplying two equal-length discrete Fourier transforms and transforming back does not automatically produce the full linear convolution of two finite records. The direct result is circular convolution at the chosen transform length. Contributions that run beyond that length return to earlier indices.
For a robot signal-processing record, that can mix the end of a calculated response into its beginning. The issue is the operation represented by the transform, rather than a claim that the physical sensor signal repeats.
Julius O. Smith's Mathematics of the DFT explains cyclic convolution and its transform relationship. SciPy's fftconvolve reference separately identifies its default full output as discrete linear convolution. The short arrays below are original hypothetical data, calculated algebraically. They are not measured robot signals or executed software outputs.
Declare the two finite sequences
Let x have values [1, 2, 3] at indices zero through two. Let h have values [4, 5] at indices zero and one. Treat all values outside those supports as zero when defining linear convolution.
The values are dimensionless, and the first listed coefficient of each sequence is at index zero. This fixes the alignment. A kernel whose reference point is at its center would require a different index description.
Linear convolution sums x[m]h[n − m] over all integer m. Only terms within both finite supports contribute. Two sequences of lengths L and M can produce nonzero results from index zero through L + M − 2, giving L + M − 1 output positions.
Here the full output length is 3 + 2 − 1 = 4. It is not constrained to the length of the longer input.
Calculate the complete result
At n = 0, the only nonzero product is 1 × 4, giving 4.
At n = 1, the products are 1 × 5 and 2 × 4, giving 13.
At n = 2, the products are 2 × 5 and 3 × 4, giving 22.
At n = 3, the remaining product is 3 × 5, giving 15.
The full linear convolution is therefore [4, 13, 22, 15]. Its sum is 54, matching the product of input sums: (1 + 2 + 3)(4 + 5) = 6 × 9.
This last equality is a useful algebraic consistency check for this example. It cannot by itself establish that the output has the intended ordering or boundary interpretation.
A three-point transform wraps the tail
For an N-point circular convolution, indices are interpreted modulo N. Define c[n] = Σ x[m]h[(n − m) mod N] for m from zero through N − 1, after representing both inputs at that length.
Choose N = 3. The represented vectors are x = [1, 2, 3] and h = [4, 5, 0]. Under the usual unscaled forward DFT and inverse factor 1/N, inverse-transforming their pointwise spectral product gives this three-point circular convolution.
At n = 0, the products are 1 × 4, 2 × 0, and 3 × 5. Their sum is 19. The final term appears because (0 − 2) mod 3 = 1.
The other two outputs are 13 and 22. Thus the circular result is [19, 13, 22], not the full four-position linear result.
The linear tail value at index three has folded onto index zero: 4 + 15 = 19. No floating-point error is needed to explain the mismatch. It exists in exact arithmetic.
Notice that the circular result also sums to 54. Checking only total sum would miss the wraparound. The two operations preserve that particular summary while producing different index-by-index answers.
Provide enough room before transforming
Now use N = 4 and append zeros to both original inputs: x4 = [1, 2, 3, 0] and h4 = [4, 5, 0, 0].
Their four-point circular convolution is [4, 13, 22, 15]. Every potentially nonzero linear output fits before the period repeats, so none folds onto another retained position.
More generally, N at least L + M − 1 is sufficient for these finite sequences, aligned at index zero and extended by zero, to embed their complete linear convolution in an N-point circular one. The additional positions beyond the full result are zero in exact arithmetic.
This is a support argument. The largest sum of input indices is (L − 1) + (M − 1). Choosing N larger than that index prevents those contributions from wrapping into the beginning.
Padding a three-point result after the circular operation has already occurred would not undo the sum 4 + 15. The support must be accommodated before the transforms and spectral multiplication.
Keep normalization and output selection separate
A transform pair with different scaling conventions needs the corresponding product scaling. The example declares its convention so that the inverse product equals circular convolution directly.
Using an FFT algorithm instead of a direct DFT changes how the transform is computed, not which periodic algebra it represents. A faster implementation does not choose linear support on the application's behalf.
SciPy's documented fftconvolve full mode already promises the full discrete linear result. That is a higher-level operation than manually multiplying two arbitrarily sized transforms. Its same mode returns a centered selection with the first input's size; its valid mode selects a different subset. Output shape and mathematical support should therefore be recorded separately.
No library timing or installed-version behavior was tested for this article. The cited reference establishes the API meanings, while the four original coefficients are independently derived.
For two-dimensional finite arrays, the same support reasoning applies along each transformed axis. An image with H rows and a kernel with K rows needs room for H + K − 1 rows for their full linear convolution, with the analogous condition for columns. Kernel alignment still needs an explicit convention.
Interpret the boundary that was actually calculated
Circular convolution can be intentional for periodic data. Linear convolution with zero extension can also be intentional. Neither choice proves that the scene or signal beyond an acquired record had that behavior.
Increasing transform length here prevents time-index wraparound in a filtering calculation. It is a different question from drawing a denser frequency grid when inspecting a spectrum.
For a robot-processing record, preserve input support, transform length, index origin, scaling, and output selection. Those details identify whether a response at the beginning came from the beginning alone or also contains a folded contribution from the end.
Sources checked October 23, 2026: Julius O. Smith III, Mathematics of the DFT, Convolution and Convolution Theorem, author textbook web edition as accessed: https://www.dsprelated.com/freebooks/mdft/Convolution.html and https://www.dsprelated.com/freebooks/mdft/Convolution_Theorem.html
SciPy v1.18.0 Manual, scipy.signal.fftconvolve: https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.fftconvolve.html
Illustration note: A generic robot vision scene is a concept illustration. It does not show these invented arrays, a measured filtering response, or an executed FFT pipeline.