I'm dealing right now with properties of a function and I have to prove if a given function is injective, surjective or bijective. I prove injectivity with the formula $x_1 = x_2 \Rightarrow f(x_1) = f(x_2)$ or $x_1 \neq x_2 \Rightarrow f(x_1) \neq f(x_2) $. For bijectivity I see if the function have an inverse function then it is automatically bijective. The problem is however with surjectivity. I know that if a function is continues at all points then it is surjective. I also know that using the formula $\lim_{x \to a} f(x)= f(a)$ one can prove continuity of ONE point. My problem is how to prove the continuity of a function at ALL points.
As I'm new to this subject in particular and to Analysis in general that would be great if you could explain it in details or even better with an example.