Chapter 16 Solving Quadratic Congruences
Example 16.0.1.
The presence of the square root in the general formula does not mean every solution requires irrational numbers. Often there are solutions of simpler types.
We can solve x2−5x+4=0 over the positive integers fairly easily, as
The equation 4x2+4x+1=0 requires us to move to the rational numbers (Q), since
On the other hand, sometimes we need to even go beyond the real numbers. The solutions of something like x2+5x+5=0 will still be real, as the radical in the quadratic formula gives √52−4⋅1⋅5=√5. But solving x2+5x+7=0 requires
which only makes sense in the complex numbers C (recall Definition 14.1.2).
Example 16.0.2.
Since x2−5x+4=(x−4)(x−1), we should be able to solve it as a congruence for any n, but we might wonder whether the other examples would have solutions always since they don't have integer solutions.
Consider 4x2+4x+1≡0 (mod 5); this is equivalent to −x2−x+1≡0, and simple guess and check reveals that x≡2 is a solution!
We leave it to the reader to check that x2+5x+5≡0 has a (very) simple solution if considered modulo n=5. Perhaps most interestingly, x2+5x+7≡0 (mod n) has solutions for no fewer than four different 1<n<20. (See Exercise 16.8.1.)