\(a,x\ge2\\ \Leftrightarrow P=\dfrac{1}{2}-\dfrac{1}{2}\left(6x-\dfrac{1}{4}\right)-2\left(x-2\right)\\ P=\dfrac{1}{2}-3x+\dfrac{1}{8}-2x+4\\ P=-5x+\dfrac{37}{8}\)
\(b,x< 2\\ \Leftrightarrow P=\dfrac{1}{2}-\dfrac{1}{2}\left(6x-\dfrac{1}{4}\right)-2\left(2-x\right)\\ P=\dfrac{1}{2}-3x+\dfrac{1}{8}-4+2x\\ P=-x-\dfrac{27}{8}\)