Skip to content

Mathematics and Statistics · Ch 2 — Functions

From Relations to Functions — Definition, Domain, Codomain and Range

1

From Relations to Functions — Definition, Domain, Codomain and Range

In an earlier chapter a relation RR from a set AA to a set BB was defined as any subset of the Cartesian product A×BA \times B — that is, any chosen collection of ordered pairs (a,b)(a,b) with a∈Aa \in A and b∈Bb \in B. A function is a relation that obeys one extra, very strict rule, and it is this rule that makes a function so useful for describing dependable, predictable relationships.

A relation ff from a set AA to a set BB is called a function (or a mapping) if every element of AA is related to exactly one element of BB — never left unpaired, and never paired with two different elements. We write f:A→Bf : A \to B, and if a∈Aa \in A is associated with b∈Bb \in B under ff we write b=f(a)b = f(a) and call bb the image of aa, and aa a pre-image of bb.

Two conditions together define a function, and both must hold:

  • Existence — every element of AA must have an image (no element of AA is left out).
  • Uniqueness — no element of AA may have two or more different images.

Three sets accompany every function f:A→Bf : A \to B:

  • The domain is the set AA itself — every element of AA must have an image, with no exceptions.
  • The codomain is the set BB — the set from which images are drawn, whether or not every element of BB is actually used.
  • The range (or image set) is the subset of BB made up only of those elements that are actually an image of some element of AA, i.e. range(f)={ f(a):a∈A }\text{range}(f) = \{\, f(a) : a \in A \,\}. The range is always a subset of the codomain, and the two are equal only in a special case (the "onto" functions of Section 2).

When a function is described only by a rule such as y=f(x)y = f(x) with no domain stated explicitly, we take the domain to be the largest set of real numbers for which the rule gives a genuine real value — this is the natural domain. For example, f(x)=1x−3f(x) = \dfrac{1}{x-3} has natural domain R−{3}\mathbb{R} - \{3\}, because the rule fails only where the denominator is zero.

A quick graphical way to test whether a curve drawn in the xyxy-plane represents yy as a function of xx is the vertical line test: the curve is a function of xx if and only if every vertical line meets it in at most one point. A circle fails this test — a vertical line through it meets it twice — and so a circle is not the graph of a function of xx.

Figure 1 — Vertical line test: the line y = x meets the vertical line x = 2 at exactly one point (2,2)
Figure 1 — Vertical line test: the line y = x meets the vertical line x = 2 at exactly one point (2,2)

The whole of this chapter in the Maharashtra Std XI Mathematics and Statistics (Commerce) syllabus builds on this single definition — every later type of function, and every graph, is just a different way a rule can assign to each input exactly one output.

Definition 1Function (Mapping)

A relation ff from set AA to set BB, written f:A→Bf : A \to B, in which every element of AA is associated with exactly one element of BB. The unique element associated with a∈Aa \in A is written f(a)f(a) and called the image of aa.

Definition 2Domain, Codomain and Range

For f:A→Bf : A \to B: the domain is AA (every element must have an image); the codomain is BB (the set images are drawn from); the range is {f(a):a∈A}⊆B\{f(a) : a \in A\} \subseteq B, the set of values actually taken as an image. The range may equal the codomain or be a proper subset of it.

Definition 3Natural Domain

When a function is given only by a rule y=f(x)y=f(x), its natural domain is the largest set of real xx for which f(x)f(x) is a genuine real number — e.g. denominators must be non-zero and even roots must be of non-negative quantities.

Definition 4Vertical Line Test

A curve in the xyxy-plane represents yy as a function of xx if and only if no vertical line meets the curve at more than one point.