note 1: if you haven't learned about complex or imaginary numbers yet, then you would stop at the line with "note 1" on it
note 2: you would stop here if you have learned about complex or imaginary numbers and you want to factor over the complex numbers. I used the rule that a^2 + b^2 = (a+bi)*(a-bi)