A Simplification Problem

It should be noted that the expression is at most quadratic over x. It should further be noted that for x = a, b, or c, the expression reduces to 1. A quadratic will not evaluate to the same result for three different values of x. This is true of linear functions as well. The only remaining possibility is the constant function 1.