If f is a function from A to B then A is the domain and B is the codomain of f. If f(a)=b then b is the image of a and a is the preimage of b.

The range of f is the set of all f(a) for each aA.

A is the domain of f, B is the codomain, and the range of f is the set of all elements in B that elements in A are mapped to.