Proving homeomorphism on closed ball Let $B$ be the closed unit ball in $\mathbb{R^n}$, and $a\in B,|a|<1$. Prove that $f:B\rightarrow B$,
$$f(x) = (1-|x|)a+x$$
Is an homeomorphism.
To me it's clear $f$ is continuous and I managed to prove it's injective. I'm only having trouble proving it's surjective, or finding an inverse. Any tips are appreciated!

This answer uses some light algebraic topology (really, just the definitions of homotopy, contractible) to show that $f$ is surjective. From there, showing $f$ is a homeomorphisn is straightforward.
Note first that $f$ preserves the unit circle (or, if you prefer, the boundary of the closed ball, i.e. its difference with the open ball). Note also that the unit ball is contractible. Assume for contradiction that $f$ misses a point $x$. Since $f$ preserves the unit circle, $im(f)$ is not contractible (think about where $x$ is moved to under a homotopy). But $im(f)$ is homeomorphic to a contractible space, the unit ball, and therefore must itself be contractible, a contradiction.
