First we must know what f(x) is equal to... starting from right to the left, and ignoring the messy middle expression, notice we have:
f(x) + f(x+2) = f(x+1) + f(x+3) .subtract f(x+2) from both sides ==> f(x) =f(x+1) + f(x +3) - f(x+2)
ff = [f(x+1) + f(x+3) - f(x+2)] [f(x+1) + f(x+3) - f(x+2)]
==> ff = [f(x+1)]^2 + 2[f(x+1)f(x+3)] -2[f(x+1)f(x+2)] -2[f(x+3)f(x+2)] + [f(x+3)]^2 + [f(x+2)]^2