- #1
brotherbobby
- 702
- 163
- Homework Statement
- The equation ##x^2+px+q = 0##, where ##p \in \mathbb{Z}, q \in \mathbb{Z}\;##has rational roots. Prove that these roots are integers.
- Relevant Equations
- 1. If ##\alpha,\beta## are the roots of the quadratic equation ##x^2+px+q = 0##, then the sum of the roots ##\alpha+\beta = -p## and the product of roots ##\alpha\beta = q##.
2. The roots of the quadratic equation ##x^2+px+q = 0## are rational if the discriminant ##p^2-4q## is a perfect square of an integer, i.e. ##p^2-4q = r^2## where ##r \in \mathbb{Z}##.
Given : The quadratic equation ##x^2+px+q = 0## with coefficients ##p,q \in \mathbb{Z}##, that is positive or negative integers. Also the roots of the equation ##\alpha, \beta \in \mathbb{Q}##, that is they are rational numbers. To prove that ##\boxed{\alpha,\beta \in \mathbb{Z}}##, i.e. the roots are integers too, like p and q.
Attempt : From properties of roots, ##\alpha+\beta = -p## and ##\alpha\beta = q##. Also since the roots are rational, ##p^2-4q = r^2## where ##r \in \mathbb{Z}##.
Thus we have ##(\alpha+\beta)^2 - 4\alpha\beta = (\alpha-\beta)^2 = p^2-4q = r^2 \Rightarrow \alpha - \beta = \pm r##.
Thus ##\alpha+\beta = -p## and ##\alpha - \beta = \pm r##.
This leads to ##\alpha = \frac{-p+r}{2}## and ##\beta = -\frac{p+r}{2}##. (no surprise).
Clearly this does not prove that ##\alpha,\beta## are integers, unless I can show that both ##p,r## are multiples of 2.
I don't know how to proceed from here.
Attempt : From properties of roots, ##\alpha+\beta = -p## and ##\alpha\beta = q##. Also since the roots are rational, ##p^2-4q = r^2## where ##r \in \mathbb{Z}##.
Thus we have ##(\alpha+\beta)^2 - 4\alpha\beta = (\alpha-\beta)^2 = p^2-4q = r^2 \Rightarrow \alpha - \beta = \pm r##.
Thus ##\alpha+\beta = -p## and ##\alpha - \beta = \pm r##.
This leads to ##\alpha = \frac{-p+r}{2}## and ##\beta = -\frac{p+r}{2}##. (no surprise).
Clearly this does not prove that ##\alpha,\beta## are integers, unless I can show that both ##p,r## are multiples of 2.
I don't know how to proceed from here.