\(\frac{x}{2}+\frac{3}{2}\sqrt{x^2-4x+4}-2=\frac{x}{2}+\frac{3}{2}\left|x-2\right|-2\)
Với x >= 2 thì \(\frac{x}{2}+\frac{3\left(x-2\right)}{2}=\frac{3x+x-6}{2}=\frac{4x-6}{2}=2x-3\)
Với x < 2 thì \(\frac{x}{2}+\frac{3\left(2-x\right)}{2}=\frac{x+6-3x}{2}=\frac{6-2x}{2}=3-x\)