If the factors are a and b then we can create the equation as :

Here we are given the solutions as 1 and -1.
Let us plug them in the above equation and try to make an equation using it.
let a=1 and b=-1
So we have,

Simplifying,

Answer:
The equation with solutions 1 and -1 is:
