Let $A, B$ be sets and $f : A \rightarrow B$ be a function. If $f$ is injective, show that the function $g : A \rightarrow f(A)$ is bijective where $g(a) = f(a)$ for each $a \in A$.
I can barely make sense of this question, I'm beginning to lose all hope that I will ever be able to understand mathematics at this level.