The product 1[0,1]β(t)1[0,1]β(xβt) equals 1 exactly when both conditions hold: 0β€tβ€1 and 0β€xβtβ€1. The second condition is equivalent to xβ1β€tβ€x. Hence the integral is the length of {t:0β€tβ€1,Β xβ1β€tβ€x}=[0,1]β©[xβ1,x].
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.