f:R→R f(x)=max{x+1,1−x,2} Since, f(x) contains 2 in range when domain is [−1,1]
Hence, it is not one-one. Since, f(x) does not take any value less than 2 in it's domain. Hence, Codomain ≠ Range ⇒f(x) is not onto. Hence, f(x) is neither one-one nor onto.