Show that the function f(x) = |x| from the set of real numbers to the set of nonnegative real numbers is not invertible, but if the domain is restricted to the set of non- negative real numbers, the resulting function is invertible.

Solution Step 1:We have to show that the function from the set of real numbers to the set of nonnegative real numbers is not invertible,but if the domain is restricted to the set of nonnegative real numbers,the resulting function is invertibleStep 2:The function is said to be invertible if it is bijective function that is the function is one-to-one(injective) and onto(surjective)For the function to be invertible it not be bijective function