Are the pre-image and the domain the same, or not?
Throughout school I thought that the pre-image was a subset of the domain, not that they were necessarily the same. When I spoke of a function f:R->R, I didn't think that this meant that f was defined on all of R, I thought √x was a function from R to R.
Now I am hearing conflicting things, that the domain is actually the exact same thing as the pre-image.
What convention is the norm?
$\endgroup$ 44 Answers
$\begingroup$First, a point to clear up a confusion you seems to have, the way function usually get defined through those operation actually make the domain implicit: you take the biggest set such that the expression can make sense. For $\sqrt{x}$ for example, the domain is actually $[0,\infty)$ and not $\mathbb{R}$, so the function is actually $[0,\infty)\rightarrow\mathbb{R}$; for $\frac{1}{x}$ the domain is $\mathbb{R}\backslash\{0\}$ so it is $\mathbb{R}\backslash\{0\}\rightarrow\mathbb{R}$.
When you say "preimage", you need to specify the function and what the preimage is of. For example, if the function is $x^{2}$, then the preimage of $\{1,4\}$ for this function is $\{-2,-1,1,2\}$ which is a proper subset of the domain $\mathbb{R}$. The preimage of the range of the function (not to be confused with the codomain, which is usually just $\mathbb{R}$) is indeed the domain; and the preimage of some proper subset of the range would be a proper subset of the domain.
$\endgroup$ 4 $\begingroup$It is correct that the preimage is a subset of the domain. Given $f:X\rightarrow Y$, the preimage of an element $y$ in the codomain $Y$ is defined to be $\{x~|~f(x)=y\}$. This may include all of, some of, or even none of the domain $X$.
With this definition it makes sense to talk about the preimage of sets $A\subseteq Y$, defined as $\{x~|~f(x)\in A\}$, and from there you could talk about the preimage of the range $R$ or even the entire codomain $Y$, which would be $\{x~|~f(x)\in Y\}=\{x~|~f(x)\in R\}=X$.
$\endgroup$ 5 $\begingroup$The pre-image is a subset of the domain. I almost always see it defined for a function $f:X\to Y$ and a subset $B\subseteq Y$ as $f^{-1}(B)=\{x\in X\ |\ f(x)\in B\}$
$\endgroup$ 4 $\begingroup$The definition of a partial function might help to provide a partial answer to the question.
Recall that $f:Y\rightarrow Z$ is a partial function whenever its domain $\text{dom}\,f$ is a subset of $Y$. (A partial function is also a function if it is everywhere defined, so that $\text{dom}\, f=Y$.)
Thus, whereas $\sqrt{\cdot}$ is a partial function on $\mathbb R$, it is a function on $[0,\infty)$.
$\endgroup$