# Functions in Math

## Functions in Math:

There are many practical situations where we find a correspondence between two quantities. The correspondence may be shown in the form of a table and may be described by a formula connecting them or by a graph and may also be recorded as ordered pairs.

Mapping is a type of correspondence. It is a rule that assigns to the elements of one set, some elements of another set. The rule-following which the elements y of the set B may be obtained corresponding to the elements x of the set A is a relation between the two variables.

Let us consider the relation y = 2x -1. A few sets of values of x and y following this relation are given in the table below.

The corresponding mapping from set A, consisting of the values of x, to set B giving the values of y is shown in the figure below.

There may be several types of mappings. If each element of A corresponds to a single element in B, then the mapping is said to be a one-one mapping as shown below.

The set of values of x constitutes the domain and the set of values of y forms the codomain in the case of a mapping. Linear relations correspond to one-one mapping.

If two or more elements of the domain correspond to the same image in the codomain, then the mapping is said to be a many-one mapping. Relations of the type y = x2 or y = x3 etc., correspond to many-one mappings as shown below.

If a single value of the domain corresponds to two or more values of the codomain, then the mapping is said to be one-many mapping. A relation of this type is x = y2 or y = ± √x as shown below.

Consider two non-empty sets A and B. A function f from the set A to the set B is a rule that assigns to each element x of A, one and only one element y of B. y, in this case, is called the image of x under f and is denoted by f(x). The domain of f is the set A and the codomain of f is the set B.

It is, thus, clear that all types of mappings denote some relation but only one-one or many-one mappings are functions. The definition of a function allows some elements of codomain not being the image of any element in the domain as shown in figures (i) and (ii). In the case of functions, set A must be exhausted. In figure (i), set B is the codomain of f but its range is the set {y1, y2, y3, y4}. Similarly in figure (ii), set B is the codomain of f and the set {y1, y2, y5} is its range.

The ray diagram in the figure below shows a type of correspondence where the domain is not exhausted. This correspondence does not represent a function.

The ordered pairs (1, 1), (2, 3), (3, 5), (4, 7), (-1, -3), etc., denote a function as no two of the first entries have been repeated. The ordered pairs (1, 1), (1, -1), (4, 2), (4, -2), (9, 3), etc., do not correspond to a function, because in this case some of the first entries have been repeated.

Note that the set of all f-images of elements of A is known as the range of f and may be denoted by f(A).

The Range of f = f(A) ⊆ B. In the figure below, A = domain, B = codomain and the set {y1, y2, y3, y4} is the range of f.

It is obvious that all functions are relations but all relations are not functions. The graph of a relation may make it clear whether the relation is a function or not. If a vertical line drawn across the graph of a relation intersects the graph at more than one point, then the relation is not a function.

All the graphs drawn in the figure below denote functions as a vertical line through each of the graphs intersecting the graph at a single point (it clearly indicates that no two first entries have been repeated).

The vertical line drawn through each of the graphs in the figure below intersects the graph at more than one point. None of the relations denotes a function.

### Independent and Dependent Variables:

If we denote a function as y = f(x), then x is known as the independent variable and y as the dependent variable.

### Evaluation of a Function:

We shall concentrate our attention mainly on the functions which are given in the form of an equation involving dependent and independent variables.

To evaluate the functional values, we generally isolate the dependent variable on the left side of the equation. For example, the equation 2x + 3y – 5 = 0 is generally written as