= Fiber of a function
{title2=$f^{-1}(y)$}
= Fiber
{synonym}
= Fibre of a function
{synonym}
= Fibre
{synonym}
For a <function> $f:X\to Y$ and $y\in Y$, its <fiber of a function> over $y$ is the <set> of all inputs producing that one output:
$$
f^{-1}(y)=f^{-1}(\{y\})=\{x\in X:f(x)=y\}.
$$
Here $f^{-1}(y)$ is shorthand for a <preimage> of a <singleton set>, rather than a claim that an <inverse function> exists. A fiber can contain several inputs or be empty. It describes exactly which distinctions the <function> forgets.
For the finite <function> under <image and preimage of a function>, the fibers over $0,1,2,3$ are $\{a,b\}$, $\{c\}$, $\{d\}$ and the <empty set>, respectively. The nonempty fibers form a <partition of a set>: they are disjoint <sets> whose <union> is the <domain of a function>. Every input belongs to the fiber over its unique output, and two fibers with distinct output labels cannot share an input. A <function> is <injective> exactly when every fiber has at most one member; it is <surjective> exactly when every member of its specified <codomain> has a nonempty fiber.
\Image[/function-image-preimage-subset-flow.png]
{title=A <preimage> collects complete fibers: the outputs $\{0,2\}$ select the fibers $\{a,b\}$ and $\{d\}$}
More generally, $f^{-1}(U)$ is the <union> of the fibers over all $y\in U$. The relation $x\sim x'$ defined by $f(x)=f(x')$ is an <equivalence relation>, and its <equivalence classes> are precisely the nonempty fibers. The resulting <quotient set> is naturally in <bijection> with the <image of a function>. This links an input partition to the output values actually reached, without choosing one representative from each class.
Fibers are useful when an output is known but the input is not uniquely determined. A <solution set> $g^{-1}(\{0\})$ is one fiber, and <factorization through a surjection> explains when another <function> depends only on the retained output. Quantum <hidden subgroup problem> algorithms use <functions> whose fibers are <cosets>, giving the same idea a structured form in <group theory>.
Back to article page