In one sentence
The quadratic formula contains a square root:
When the coefficients are all integers and you want to be an integer, the square root has to vanish first: must be a perfect square. That is the first hurdle in every integer-root problem. Once you are past it, the numerator still has to be divisible by .
Predict first
Both roots of are positive integers. How many possible values of are there?
The roots add up to . The only pairs of positive integers with sum are , and , and the matching (the product of the roots) are , , . That makes values. You can also see it from the discriminant: must be a perfect square, and for it is , , . Two roads, one answer.
The discriminant route: when does x² − mx + m + 2 = 0 have integer roots?
Step 1 / 5- Try one first
: , so there are not even any real roots.
Stop 1 · Vieta's formulas: no discriminant needed
Same problem, different road.
One problem, several solutions
is an integer and both roots of are integers. Find .
The discriminant route
, so . The two factors have the same parity, so they can only be or , giving or . Checking, the roots are integers in both cases.
CostWorks in general; needs “difference of squares + splitting into factors”, and you must check the roots.
The Vieta route
Call the roots and : and . Subtract to eliminate :
, so the roots are or , giving or .
CostGives the roots directly, no checking; needs a leading coefficient of 1 (or one that divides evenly).
The key step of the Vieta route is “eliminate the parameter, then make a product of two brackets equal to a constant”. That step is really adding a term, a factorization trick.
Stop 2 · Factor first if you can
The discriminant of this family is : always a perfect square. Yet only four cells have a ✓.
Factor it and the reason is clear:
so the roots are and . For to be an integer, must divide : . And the cell marked !: when it is not a quadratic equation at all. If the problem says “quadratic equation”, is excluded; if it only says “all roots of the equation are integers”, then (root ) does count.
Stop 3 · Switch the main variable: solve for the parameter
If the parameter appears only to the first power, you can turn things round and treat it as the unknown.
Example: integers m for which x² − mx + 2m − 1 = 0 has integer roots
Step 1 / 5- Put the terms with m on one side
appears only to the first power. Rewrite the equation as “ times something equals something”.
Stop 4 · Estimation: squeezed between two consecutive squares
Sometimes you have to prove that there are no integer roots. The trick is to squeeze between two consecutive perfect squares, with no other square in between.
Here . When is a positive integer,
because . So is not a perfect square, and the equation has no integer roots (not even rational ones). The only ✓ in the whole row is at : there and the equation is .
Practice
Both roots of are positive integers. What is the largest possible ?
Both roots of are integers. Give all possible values of .
is an integer and both roots of are integers. Give all possible values of .
is an integer, and both roots of the quadratic equation in are integers. Give all possible values of .
is an integer and the equation has integer roots. Give all possible values of .