✦ScienexySCIENCE KNOWLEDGE LIBRARY
concept · INFO-MAT-FUNC-122

Domain, Codomain, and Range

The domain is the set of permitted inputs, the codomain is the declared set of possible outputs, and the range contains the outputs actually produced.

f: A → B, where Domain = A and Range ⊆ B

Explanation

A function maps elements from an input set to an output set. The domain contains all inputs for which the function is defined. The codomain is the set specified as the possible destination of the outputs. The range is the subset of the codomain that the function actually produces. The range can be equal to the codomain, but it does not have to be. For algebraic functions, domain restrictions may arise from division by zero, square roots of negative numbers when working with real values, or other mathematical conditions.

Variables

SymbolMeaningUnit

A

Domain or input set

Depends on the context

B

Codomain or declared output set

Depends on the context

f(x)

Actual output of the function

Depends on the context

Example or application

Let f(x) = x² with domain A = {-2, -1, 0, 1, 2} and codomain B = {0, 1, 2, 3, 4, 5}. The range is {0, 1, 4}, because these are the values actually produced.

Key Properties

  • The domain contains all permitted inputs.

  • The codomain is the declared target set.

  • The range contains outputs actually produced.

  • The range is always a subset of the codomain.

  • Domain restrictions must be considered when defining a function.

Sources and verification

Sources are shown as provided in the project data. Not every source has yet been independently verified. Please report errors or missing citations.

  • SCIENEXY Mathematics Reference

Suggest a correction or source · More in Algebra