If $g \circ f : A \to C$ is constant, must at least one of $f$ or $g$ be constant?

112 Views Asked by At

Assume $f:A\to B$ and $g:B\to C$. $g \circ f : A \to C$ is a the constant function (thanks to the comments for noting this).

It can be shown straightforward the opposite (that if $f$ or $g$ is constant, then $f \circ g$ is constant). But this is not the problem.

4

There are 4 best solutions below

8
On

No. Let f(x)=x^2 have codomain all of $\mathbb{R}$ and g(x) = sign(x+1). If the codomain is restricted so that f is onto instead, then g must be constant.

0
On

Let $f: \{1,2\} \to \{1,2,3\}$ be defined as follows:

$1 \mapsto 2$
$2 \mapsto 1$

Let $g: \{1,2,3\} \to \{1,2,3\}$ be defined as follows:

$1 \mapsto 1$
$2 \mapsto 1$
$3 \mapsto 3$

The composition $g \circ f: \{1,2\} \to \{1,2,3\}$ is the constant map

$1 \mapsto 1$
$2 \mapsto 1$

but neither $f$ nor $g$ is constant.

There is a general statement that can made about how the composition of two functions becomes a constant mapping. The pattern of this example is all that is needed to find this more abstract truth.

The OP is encouraged to find the answer to this more probing question and to let us know how their work is progressing.

0
On

This is what a constant map is.

http://mathworld.wolfram.com/ConstantMap.html

Every element from one set (A) gets mapped to a single element in the other set (B).

1
On

No. Consider the counterexample $$f(x)=g(x)=|x|-x$$