WolframAlpha computational knowledge AI
Plot[ 2 x - (4 x - 2) (2 x - Mod[ 2 x, 1 ]), { x, 0, 1 } ]