The inverse image when $f$ is a constant function

analysisfunctions

If I have a function $f: A\rightarrow B$ , The inverse image of a set $H\subseteq B$ is defined by $f^{-1}(H) = \{x\in A\mid f(x)\in H\}$

I think I have a reasonable understanding on finding inverse images when given something like $f(x) = x^2-1$, but I am having trouble comprehending what happens when $f(x) = c\quad$ for some $c\in\mathbb{R}$. If $H$ is some set $(a,b), [a,b), [a,b], etc\in\mathbb{R}$. What is $f^{-1}(H)$?

Does the size of the set make a difference say $(-\infty,\infty)$ versus $[-3,2]$?

Does inclusion make a difference say $[-3,2]$ versus $(-3,2]$?

I know the elementary fact that the inverse of a constant function would just be a vertical line of the form $x=n,$ $n\in\mathbb{R}$ Which is not a function thus every constant function has no inverse. But I know the inverse-image which is a set has nothing to do with the inverse which is a function. Any guidance or knowledge would be appreciated. Also I am fairly new to working with functions in this manner so I would appreciate a delicate explanation.

Best Answer

If $f\colon A\to B$ is a constant function, i.e. $f(A) = b \in B$ then

$$f^{-1}(\{b\}) = A.$$