Domain of a function Created 2026-10-03 Updated 2026-11-05
The domain of a function is the specified set of allowed inputs. A function must assign a value to every member of that set. Its codomain separately specifies where the outputs are allowed to lie.
The formula alone need not determine the domain. The rule on the real numbers and its restriction to the nonnegative real numbers have different allowed inputs. The first is not injective, while the second is. Similarly, the real-valued rule excludes zero from its domain of a function.
Changing a formula by cancellation can alter where it is defined. The principle preserve the domain when simplifying a function records why an extension across a cancelled denominator is a separate operation.
Where the original expression is defined, multiplication by gives
Thus the graph repeats with period and has vertical asymptotes
Between consecutive asymptotes the extended cotangent branch decreases from to , since . It passes through and .
It is essential to preserve the domain when simplifying a function. At , the original tangent is undefined. The finite limiting value is zero, so the graph has holes at , rather than actual zeros. The simplified expression extends across those points, but the original one does not.
Figure 1.
The periodic tangent quotient, with vertical asymptotes and the original domain's holes retained
. Details.