10
$\begingroup$

Suppose $A$ is a nonempty set and $f: A \rightarrow A$ and for all $g:A \rightarrow A,$ $f \circ g = f$. Prove that $f$ is a constant function.

This result seems obvious, but I can't seem to find a way to prove it. The book I got this problem from hinted that the reader should consider what would happen if $g$ were a constant function. I considered that case and it was easy to prove that $f$ was a constant function, but I can't find any way to prove it when $g$ is not a constant function. At this point I'm not really sure how to approach this problem anymore. Thanks in advance for any help!

$\endgroup$
1
  • 1
    $\begingroup$ You don't need to worry about what happens when $g$ is non-constant. The supposition is that $f\circ g = f$ for all $g$, so you are perfectly free to pick any $g$ you like. $\endgroup$
    – Erick Wong
    Commented Jun 8, 2013 at 6:50

3 Answers 3

21
$\begingroup$

The assumption is that $f\circ g=f$ for all $g:A\to A$. Thus, you can pick any $a_0\in A$ and let $g:A\to A:a\mapsto a_0$ and know that $$f(a)=f\big(g(a)\big)=f(a_0)$$ for all $a\in A$. This already tells you that $f$ is constant: it assigns the value $f(a_0)$ to every $a\in A$. You don’t need to consider any other functions $g:A\to A$.

$\endgroup$
3
  • 2
    $\begingroup$ I like this strictly more than I like my own answer. $\endgroup$
    – davidlowryduda
    Commented Jun 8, 2013 at 5:35
  • $\begingroup$ ahh, this is very clear, thank you! $\endgroup$
    – stochasm
    Commented Jun 8, 2013 at 5:36
  • $\begingroup$ @stochasm: You’re welcome! $\endgroup$ Commented Jun 8, 2013 at 5:37
4
$\begingroup$

If $A$ is a one-element set, there is nothing to prove. If there are two distinct objects $a$ and $a'$ such that $f(a)\ne f(a')$, let $g$ be any function such that $g(a)=g(a')$.

$\endgroup$
3
$\begingroup$

Suppose that $|A| = 1$. Then all functions $f:A \to A$ are constant.

Now suppose that $|A| > 1$ (or infinite). Let's suppose that $f$ is not constant. For my purposes, let's say that $f(0) = 0$ and $f(1) = 1$, and that we go from $\mathbb{R} \to \mathbb{R}$. But then suppose that $g(0) = g(1) = 0$.

Then we see that $f \circ g \neq f$.

Can you generalize this to your setting?

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .