[NOT homework] I am studying for my qualifying exam, and a past question is the following:
Let $(M, g)$ be a connected Riemannian manifold and $f_1, f_2 : M \to M$ be isometries. Suppose that exists a point $p$ in $M$ so that $f_1(p)=f_2(p)$ and $(df_1)_p=(df_2)_p$. Show that $f_1=f_2$
My idea is to consider the set $S = \{p \in M : f_1(p)=f_2(p)\text{ and }(df_1)_p=(df_2)_p\}$. Since $M$ is connected, if $S$ is both open and closed, then $S$ will be $\emptyset$ or $M$. But from the hypothesis, $p \in S \implies S=M \implies f_1=f_2$.
[EDIT]: Using @Travis comment and this discussion, the result follows