f(x)=\left\{ \begin{array}{lr} 2x-2, & x\leq1\\ a(x-1)(x-2)(x-b), & 1