Skip to content

Statistics · Ch 8 — Function

Domain, Co-domain and Range

2

Domain, Co-domain and Range

Domain, co-domain and range — precise definitions

For a function f:A→Bf : A \to B:

  • Domain: the set AA itself — every value of xx for which f(x)f(x) is defined.
  • Co-domain: the set BB — the set the images are chosen from. It may contain elements that are never actually used as an image.
  • Range: the set of images that are actually produced, i.e. {f(x):x∈A}\{f(x) : x \in A\}. The range is always a subset of the co-domain, but the two need not be equal.

Finding the domain of an algebraic function

When a function is defined by a formula without an explicit set AA stated, its domain is taken to be the largest subset of R\mathbb{R} for which the formula gives a real, defined value. Two situations to check for every time:

Expression formRestriction on domain
A fraction p(x)q(x)\dfrac{p(x)}{q(x)}q(x)≠0q(x) \neq 0 — exclude values that make the denominator zero
A square root g(x)\sqrt{g(x)}g(x)≥0g(x) \geq 0 — the expression under the root cannot be negative
A polynomial (e.g. x2+3x−5x^2 + 3x - 5)No restriction — defined for every real xx, so domain =R= \mathbb{R}

Finding the range

The range is usually found by asking: for which values of yy does the equation y=f(x)y = f(x) have at least one real solution xx in the domain? For simple functions this can often be reasoned out directly (e.g. x2≥0x^2 \geq 0 always, so y≥0y \geq 0); for others, solving the equation for xx in terms of yy and checking which yy keep xx real and in the domain is the reliable method. …

Definition 1Domain

The complete set of input values (x) for which a function …

Definition 2Co-domain

The set from which the outputs of a function are chosen; it may include values never ac …

Definition 3Range

The set of output values a function actually produces; always a subset of …