Chapter 5: Q. 100 (page 271)
Give an example of a function whose domain is the set of real numbers and that is neither increasing nor decreasing on its domain, but is one-to-one.
Short Answer
An example of a function is let where is constant. Now, divide the domain of the function into piecewise like k is constant for . Take another function where ais constant for . Thus, we can divide the domain piecewise to make it one-to-one, and because the function's value is constant, it is neither increasing nor decreasing.