Here's the big missing idea: if a function's second derivative is identically zero, then the function is at most a linear polynomial. So you should show that the right hand side is zero when $n = 2$.
Here's the big missing idea: if a function's second derivative is identically zero, then the function is at most a linear polynomial. So you should show that the right hand side is zero when $n = 2$.