A number $a$ is called a fixed point of a function $f$ if $f(a)=a$.Prove that if $f'(x)\not = 1$ for all real numbers $x$, then $f$ has at most one fixed point.
This is an exercise in Stewart's calculus textbook. Do we need to suppose $f$ is continuous? Or the assumption, $f'(x) \not = 1$ for all real numbers $x$, guarantees that $f$ is continuous? What if $f'$ is not defined at some points? For example, when $f$ is an increasing piecewise function which has infinitely many intersections with the line $y=x$, $f$ has infinitely many fixed points and $f'(x) \not =1$ for all real $x$.