Let $f: S^n\to S^n$ be a continuous map such that $f(p)=q$ and there exists neighborhoods of $p$ and $q$ such that $f$ is linear and invertible between these two neighborhoods, I wonder if $f$ is also globally linear and invertible on $S^n$ since intuitively it looks true.
By "locally linear", I mean if we identify $S^n$ with the simplex $\Delta^n$, then the induce map betweem two $\Delta^n$ is locally linear. This notion comes from Hatcher's algebraic topology, page 359, Ex.15, let me know if I interpret it wrong.