f(x)
= (x + 1)(a + x)
= x² + (a + 1)x + a
f(-x)
= x² - (a + 1)x + a
因为是偶函数
所以 f(-x) = f(x)
所以 a + 1 = 0
所以 a = -1