Question:

Find two functions f,g: R -> R such that neither f nor g is a constant map, but g o f is a constant map.

Attempt:

I know for something to be a constant map graphically it means the function is a horizontal line. However, I am having trouble coming up with two functions whose composition is a constant map but they themselves are not a constant map.

Would appreciate any input or hint in the right direction.