It appears that you mixed up the placement of the minus signs. A binomial in the form can be factored as .