Nature of roots in Quadratic equations
For a.x^2 + b.x + c = 0 to have rational roots , necessary and sufficient conditions are: 1. b/a and c/a must be rational. 2. Discriminant must be square of a rational number. Similarly for integer roots: 1. b/a and c/a must be integers. 2. Discriminant must be perfect square of an integer. Let's go in some more detail here. If b/a and c/a are integers I can rewrite the equation as: x^2 + B.x + C = 0 where B = b/a and C = c/a. roots = {-B +- sqrt(B^2 - 4C)}/2 Case 1: B is even. roots = (even +- even)/2 = integer Case 2: B is odd. roots = (odd +- odd)/2 = integer So yeah, we are good. Ex1: Find possible values of k k such that x 2 − k x + 4 = 0 x^2 - kx + 4 = 0 has integer roots, given that k ∈ { − 10 , − 9 , − 8 , … , 9 , 10 } k \in \{-10, -9, -8, \ldots, 9, 10\} Solution 1: Discriminant >= 0 and Perfect square of an integer => k^2 - 16 = m^2 where m is an integer. (k+m).(k-m) = 16 Now LHS can take on factors of 16: 1,16 2,8 4,4 8,2 16,1 -1,-16 -2,-8 -4,-4 -8,-2 -16,-1...