Let f (x) = {x + 2, X be less than or equal to 1 x, X be less than - 1, X be less than 2 2x, X be greater than 2, and f (x) = 3, then the value of X is

Let f (x) = {x + 2, X be less than or equal to 1 x, X be less than - 1, X be less than 2 2x, X be greater than 2, and f (x) = 3, then the value of X is

discuss
When x is less than or equal to 1, x + 2 = 3
x=1
When 1 is less than x is less than 2, x = 3
∴x=√3
When x is greater than 2, 2x > 4 > 3
‖ x = 1 or √ 3