The solution of analytic formula of higher one function F (x + 1) = x-3x + 2

The solution of analytic formula of higher one function F (x + 1) = x-3x + 2

F (x + 1) = x-3x + 2
Let x + 1 = t, then x = T-1,
Then f (x + 1) = f (T) = x-3x + 2 = (t-1) ^ 2-3 (t-1) + 2 is expanded
f(t) = t^2-2t+1-3t+3+2
= t^2-5t+6