a = 1.8 (slider from -4 to 4, step 0.1)
f = If(x < 2, a * x - 1, 2 * x - 3)