Look at . This is continuous and piecewise linear. It has corners at . Between corners, the slope stays constant.
At each corner, the slope increases by . Before , all three terms contribute each, giving slope . Between and , the first term flips to , so slope . You don't need for all . You just need the corners and their slope increments. This insight powers Slope Trick.