local extrema [Piecewise[{{x^3 - 3/2 *x^2 -6x +9/2, x < 3}, {8x -x^2 -15, x >=3}}]]