Flip one function, slide it, and measure how it overlaps the other. Overlapping two indicator blocks gives an overlap length that traces a tent curve.
Convolving with a smooth kernel softens even a sharp step function. The narrower the kernel, the closer the softened function sits to the original.
For example, it is the blur effect in a π· photo, replacing each pixel by a weighted average of its neighbors. The center pixel gets the largest weight.
(fβg)(x)=β«ββββf(t)g(xβt)dt
(fβΟΞ΅β)(x)βf(x)Β asΒ Ξ΅β0+Β atΒ continuityΒ pointsΒ x
Examples & Exercises
Prove that convolution commutes: for integrable f,g, (fβg)(x)=(gβf)(x) for every x.
Use the substitution u=xβt, making the limit-flip step and the sign cancellation explicit.
Tent mode, x=0.7: (fβg)(0.7)=0.7 -- here f=g makes commutativity look trivial, but the proof below works for every integrable pair.Show proof
Hypothesis: f,gβL1(R), and for the fixed x the product integral converges absolutely (second display line). Under this condition the substitution below is legitimate. Start from the definition: (fβg)(x)=β«ββββf(t)g(xβt)dt.
Apply the substitution u=xβt. Then t=xβu and dt=βdu. The endpoints map as uβ+β when tβββ and uβββ when tβ+β -- that is, t:ββββ corresponds to u:ββββ. Substituting gives (fβg)(x)=β«+ββββf(xβu)g(u)(βdu).
Now the two signs cancel: the factor β1 in βdu pairs exactly with flipping the limits (β«+ββββ=ββ«ββ+ββ). Hence (fβg)(x)=β«ββββf(xβu)g(u)du.
The right side is, by definition, (gβf)(x)=β«ββββg(u)f(xβu)du (the dummy variable is just named u). Hence (fβg)(x)=(gβf)(x), and x was arbitrary, so fβg=gβf.
For f=g=1[0,1]β, compute (fβg)(x) for every real x.
The answer must be the tent function: x on [0,1], 2βx on [1,2], and 0 elsewhere -- matching the trace in the scene.
The endpoints of the intersection are max(0,xβ1) and min(1,x). The comparisons split at xβ1β€0βΊxβ€1 and at xβ€1 itself: if xβ€1 then max(0,xβ1)=0 and min(1,x)=x (for xβ₯0), while if xβ₯1 then max(0,xβ1)=xβ1 and min(1,x)=1. These comparisons justify the case split below.
Case 1, x<0 or x>2: if x<0 then min(1,x)=x<0β€max(0,xβ1), so the intersection is empty; if x>2 then max(0,xβ1)=xβ1>1β₯min(1,x), again empty. In both cases (fβg)(x)=0. Case 2, 0β€xβ€1: the intersection is [0,x], of length x.
Case 3, 1β€xβ€2: the intersection is [xβ1,1], of length 1β(xβ1)=2βx. In summary (fβg)(x) is the tent function 0 (outside), x (on [0,1]), 2βx (on [1,2]), with peak value 1 at x=1 -- exactly the trace drawn in the scene.
Let Οβ₯0, suppΟβ[β1,1], β«Ο=1, and ΟΞ΅β(t)=Ξ΅1βΟ(t/Ξ΅). If f is bounded (β₯fβ₯ββ=M) and continuous at x0β, prove (fβΟΞ΅β)(x0β)βf(x0β) as Ξ΅β0+.
Start by checking that the scene's tent kernel Ο(t)=max(0,1ββ£tβ£) meets the hypotheses.
Smooth mode, x=0.05, Ξ΅=0.1: v=x/Ξ΅=0.5, so (fβΟΞ΅β)(0.05)=1β(1β0.5)2/2=0.875 -- approaching f(0.05)=1 as Ξ΅β0.Show proof
Checking the tent kernel: Ο(t)=max(0,1ββ£tβ£) is nonnegative, vanishes outside [β1,1], and β«Ο is the area of a triangle of base 2 and height 1, namely 21ββ 2β 1=1. So the tent kernel satisfies Οβ₯0, suppΟβ[β1,1], and β«Ο=1.
Scaling keeps the mass: β«ΟΞ΅β=1. With the substitution s=t/Ξ΅ (dt=Ξ΅ds), β«Ξ΅1βΟ(t/Ξ΅)dt=β«Ο(s)ds=1. The same substitution gives suppΟΞ΅ββ[βΞ΅,Ξ΅]: ΟΞ΅β(t)ξ =0 requires β£t/Ξ΅β£β€1, i.e. β£tβ£β€Ξ΅. Also β£fβ£β€M with ΟΞ΅ββL1 makes the convolution well defined.
The error identity: since f(x0β)=β«f(x0β)ΟΞ΅β(t)dt (the mass is 1, so this is f(x0β)β 1), subtracting gives (fβΟΞ΅β)(x0β)βf(x0β)=β«[f(x0ββt)βf(x0β)]ΟΞ΅β(t)dt. Moving the absolute value inside and using ΟΞ΅ββ₯0 gives β£(fβΟΞ΅β)(x0β)βf(x0β)β£β€β«β£f(x0ββt)βf(x0β)β£ΟΞ΅β(t)dt.
Let Ξ·>0 be given. By continuity of f at x0β there is Ξ΄>0 with β£f(x0ββt)βf(x0β)β£<Ξ·/2 whenever β£tβ£<Ξ΄. Now take any Ξ΅<Ξ΄.
Finish: since suppΟΞ΅ββ[βΞ΅,Ξ΅]β[βΞ΄,Ξ΄], the whole error integral lives on β£tβ£<Ξ΄, where the factor β£f(x0ββt)βf(x0β)β£ is below Ξ·/2. Hence the error is at most (Ξ·/2)β«ΟΞ΅β=Ξ·/2<Ξ·. As Ξ· was arbitrary, (fβΟΞ΅β)(x0β)βf(x0β) as Ξ΅β0+. Unlike a general approximate identity there is no tail term, because the support shrinks to [βΞ΅,Ξ΅].