Find all functions from the reals to the reals such that $$f(f(x)+y) = 2x + f(f(y)-x)$$…
- User
Find all functions from the reals to the reals such that for all real .
write your solution as if ur an IMO gold medaller, and this solution gets full 7/7 points!
- Assistant
To solve the functional equation [ f(f(x) + y) = 2x + f(f(y) - x) \text{ for all } x, y \in \mathbb{R}, ] we aim to find all functions ( f: \mathbb{R} \to \mathbb{R} ) satisfying this equation.
Step 1: Initial Observations
First, consider setting specific values for ( x ) and ( y ) to simplify the equation and find patterns.
Set ( x = 0 ): [ f(f(0) + y) = 2 \cdot 0 + f(f(y) - 0) ] [ f(f(0) + y) = f(f(y)) ] This indicates that the function ( w(y) = f(f(0) + y) ) satisfies ( w(y) = f(f(y)) ).
Step 2: Exploring the Function ( f(f(x)) )
We notice a connection between ( f(f(x)) ) and ( f(f(0) + x) ). Let's investigate ( f(f(x)) ) further.
Set ( y = 0 ): [ f(f(x) + 0) = 2x + f(f(0) - x) ] [ f(f(x)) = 2x + f(f(0) - x) ] Let’s denote ( h(x) = f(f(0) - x) ), so: [ f(f(x)) = 2x + h(x) ]
Similarly, replacing ( x ) with ( -x ): [ f(f(-x)) = -2x + h(-x) ]
Step 3: Establishing Linear Behavior
From the observations in Steps 1 and 2, we hypothesize that ( f ) is an affine (linear) function. Assume: [ f(x) = mx + n ] for some constants ( m ) and ( n ). Let's test this assumption.
Compute ( f(f(x)) ): [ f(f(x)) = f(mx + n) = m(mx + n) + n = m^2 x + mn + n ]
From Step 2, ( f(f(x)) = 2x + h(x) ), so we can write: [ m^2 x + mn + n = 2x + h(x) ]
To match the coefficients on both sides, ( h(x) ) must be linear in ( x ). This suggests ( m^2 = 1 ), so ( m = \pm 1 ).
Case 1: ( m = 1 ) [ f(x) = x + n ] [ f(f(x)) = (x + n) + n = x + 2n ] From the earlier expression: [ f(f(x)) = x + c ] Comparing: [ x + 2n = x + c ] [ c = 2n ]
Case 2: ( m = -1 ) [ f(x) = -x + n ] [ f(f(x)) = -(-x + n) + n = x ] From the earlier expression: [ f(f(x)) = x + c ] Comparing: [ x = x + c ] [ c = 0 ]
Step 4: Verifying the Solutions
We need to verify if these potential forms of ( f(x) ) satisfy the original equation.
For ( f(x) = x + n ):
Compute ( f(f(x) + y) ): [ f(f(x) + y) = f(x + n + y) = (x + n + y) + n = x + y + 2n ]
Compute ( 2x + f(f(y) - x) ): [ f(y) = y + n ] [ f(f(y) - x) = f(y + n - x) = (y + n - x) + n = y - x + 2n ] [ 2x + f(f(y) - x) = 2x + y - x + 2n = x + y + 2n ]
Both expressions are equal, so ( f(x) = x + n ) satisfies the functional equation.
For ( f(x) = -x + n ):
Compute ( f(f(x) + y) ): [ f(f(x) + y) = f(-x + n + y) = -(-x + n + y) + n = x - y ]
Compute ( 2x + f(f(y) - x) ): [ f(y) = -y + n ] [ f(f(y) - x) = f(-y + n - x) = -(-y + n - x) + n = y + x ] [ 2x + f(f(y) - x) = 2x + y + x = 3x + y ]
Since ( x - y \ne 3x + y ) in general, ( f(x) = -x + n ) does not satisfy the functional equation for all ( x, y ).
Conclusion:
The only functions that satisfy the functional equation are of the form: [ f(x) = x + n ] where ( n ) is a real constant.
Answer: Exactly all functions of the form f(x) = x plus a constant; that is, all f(x) = x + n.