2.1 Introduction
The concept of function is very important in mathematics since it captures the idea of a mathematically precise correspondence between one quantity and the other.
We can visualise a function as a rule, which produces new elements out of some given elements. Terms such as map or mapping are used to denote a function.
A function f is a relation from a non-empty set A to a non-empty set B such that the domain of f is A and no two distinct ordered pairs in f have the same first element.
If f is a function from A to B and the pair a comma b is in f, then f of a equals b, where b is called the image of a under f and a is called the preimage of b under f.
The function f from A to B is denoted by f colon A arrow B, where A is the domain and B is the codomain of f.
A function which has either R or one of its subsets as its range is called a real valued function. Further, if its domain is also either R or a subset of R, it is called a real function.