Call a function mapping the real numbers to themselves a sign-flipping function if for all , For example, the identity function is a sign-flipping function because by commutativity of multiplication. Are there any others? Find all sign-flipping functions.
D14. Flip Functions
Contributed by Yagub Aliyev, ADA University, AzerbaijanThis problem originally appeared in the Prisoner’s Dilemma in the 2023 Fall issue of the PMP Newsletter. Solutions are no longer being accepted for this Dilemma.
Show solution?Marion Cohen (Drexel University), Matthew Helmer (Pacific Lutheran University), and Robert Noll (PMP) solved this before we published a correction to an earlier
misprint (which substituted in place of , subtly changing the problem although not the answer). Nick Rauh (Seattle Universal Math Museum) solved it as stated here. Similar methods work for both versions, so we give just a solution for the one stated here.
This problem is an example of what’s called a “functional equation” problem: we have some general property satisfied by the function and want to conclude something about how to compute itself. A common technique to use in such a case is to find substitutions for the variables in the functional equation that let you simplify the resulting expression to something useful. For example, if you try substituting , you get which simplifies to . Since this relationship has to hold for all , we can conclude that , which is already something interesting.
About the next simplest value to try for is 1, which gives us that . That doesn’t seem to give us a formula for any other values of f; it would be nice if there was a way to get rid of that leading factor of . So we try a different substitution: . (It might seem odd to just arbitrarily set to something in terms of , but since the original functional equation is supposed to hold for all possible values of and , it will certainly hold for and or and , or really for any value of and .) With this substitution, we get .
This equation still doesn’t look so promising for getting a formula for , but if we step back and look at the last two equations we have obtained, we see that both of them involve just and Therefore, we can solve the first equation for and substitute this value into the second equation. Simplifying the resulting equation gives us . Whenever , we can cancel it to see that But is just some number, call it . So we know that for all , . But at the beginning we deduced that as well, so actually we know that for all , .
Conversely, if is an arbitrary real number, Therefore, we conclude that the sign-flipping functions are exactly the functions of the form for some real number .