Given the square of the algebraic formula ax + BX + 2, when x = 1, its value is 1:; when x = - 1, its value is 5. Find the value of a and B

Given the square of the algebraic formula ax + BX + 2, when x = 1, its value is 1:; when x = - 1, its value is 5. Find the value of a and B

When x = 1, the square of AX + BX + 2 = a + B + 2 = 1, a + B = - 1
When x = - 1, the square of AX + BX + 2 = A-B + 2 = - 1 A-B = -- 3 a = - 2 b = 1