While working with inverse functions I come across the following question:
Find all functions $ f : \mathbb R \to \mathbb R $, which are continuous and invertible and satisfy the equation $ f ( x ) + f ^ { - 1 } ( x ) = x $, where $ f ^ { - 1 } ( x ) $ is the inverse function of $ f ( x ) $.
I started with a linear function $ f ( x ) = a x + b $ and got $ b = 0 $ and $ a + \frac 1 a + 1 = 0 $ which has only complex solutions for $ a $. I have no good idea, how to solve this equation for non-linear function.