If x is rea, then the maximum and minimum values of expression will be
Let
For real x, its discriminant
i.e.
Now, the product of two factors is negative if these are of opposite signs. So following two cases arise:
Case I:
This is not possible.
Case II:
Both of these are satisfied if
Hence maximum value of y is 4 and minimum value is -5.