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$.
Suppose $f(x)$ has two fixed points $a$ and $b$:
$f(a) = a, \; f(b) = b; \tag 1$
we may without loss of generality assume that
$a < b; \tag 2$
then by the mean value theorem there exists $c \in (a, b)$ with
$b - a = f(b) - f(a) = f'(c)(b - a), \tag 3$
and we thus find
$f'(c) = \dfrac{b - a}{b - a} = 1, \tag 4$
which contradicts
$f'(x) \ne 1, \forall x \in \Bbb R; \tag 5$
therefore, $f(x)$ has at most one fixed point.
A little commentary on our OP user398843's closing questions: the assertion (5) precludes the possibility that $f'(x)$ is not defined for some $x \in \Bbb R$; saying $f'(x) \ne 1$ means that $f'(x)$ exists, that is, is defined, and that it's value is not equal to one; the statement is meaningless if $f'(x)$ is undefined. Since differentiability at a point implies continuity at that point, $f(x)$ is continuous. The key lies in the title, "$f'(x) \ne 1$ for all real numbers $x$ . . ."