Factor
Explain why the reals are not enough. The difference of squares has no sum counterpart over . Viewed as a quadratic in , the expression has discriminant for , so it has no real roots and therefore no real linear factors.
Introduce the imaginary unit. With , a sum can be rewritten as a difference:
because . This is the whole trick — over every sum of squares is a difference of squares in disguise.
Apply the difference-of-squares identity with and :
Verify by expanding.
The cross terms cancel and the turns the subtraction into an addition. Confirmed at all integer pairs with ✓.
Note where this shows up. The two factors are complex conjugates, and their product is exactly the squared modulus of the complex number . That is precisely the identity used to rationalise a complex denominator: multiplying by the conjugate clears the and leaves the real quantity .
Need to solve a different problem like this? Open the solver →