To prove surjectivity, you wish to show that for any arbitrary b, there exists a such that f(a)=b.
So, to show that some function is NOT surjective, find some b member of codomain for which there does not exist an a member of codomain such that f(a)=b. For example, given f(x)=x^2, there does not exist an a such that f(x)=-1, therefore f is not surjective.
To show that something is surjective, you need to find an arbitrary a within the domain which gives an arbitrary b within the codomain.
Consider g : R --> R, g(x)=4x.
Consider arbitrary b is a member of R [codomain]. Then there exists a=(1/4)b is a member of R [domain] such that g(a)=b for all b member of codomain. Thus g is surjective. Note that g would not be surjective if we let g : Z --> R or g : Z --> Z. Can you see why?
Also, since a function f has a left inverse if and only if f is injective, and f has a right inverse if and only if f is surjective, then it is equivalent to prove for injectivity that a left inverse exists for f, and for surjectivity that a right inverse exists for a. Not that the inverses may not be unique, all that matters is whether or not one exists.
If both exist, and the function f has both a left and right inverse, then f is bijective [and if it's bijective then it has both a left and right inverse - once again it's an iff relation]. Further, this pair of left and right inverses will happen to always be equal, and will also be unique. We call this "the" inverse, often denoted f^-1.
In order to prove the existence of such inverses, find function g, left or right compose it as necessary with the original map f, and show you get the identity map.
Now one particular special case. When both the domain and codomain of a function f are both equal and finite, f is either bijective, or neither injective nor surjective [draw out some little pictures to figure out why]. Therefore, in such a scenario, if you can prove either injectivity, or surjectivity, then the function must be bijective. Alternatively, if you can prove that the function is not either of injective or surjective, then it is not the other one either. But only when the domain and codomain are equal AND finite.