Method stop · When and why do we use it?

Problems on Integer Roots

In the Chinese book: 有关整数根问题

Integer roots need Δ to be a perfect square, but that is not enough.

📖 Chapter 6 of 《一次函数与二次函数》M3 Discriminant and Vieta lineM15 Estimation line

Before this stop, visit:Integer Roots of Quadratic Equations (Method)Maxima and Minima of Functions (Skill)

One idea, one pictureClick a cell or press ± to change . Which make the parabola cross the -axis exactly at whole-number grid points? What is special about the discriminant then?

Loading figure…

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?

Choose an answer first; then you can see the result.

The discriminant route: when does x² − mx + m + 2 = 0 have integer roots?

Step 1 / 5
Loading figure…
  1. 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

Loading figure…
The family . Click through the cells one by one and watch the discriminant box: is it ever not a perfect square?

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
Loading figure…
  1. 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.

Loading figure…
The family . Read the small print under the discriminant: which two squares is it squeezed 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

Exercise 1Basic

Both roots of are positive integers. What is the largest possible ?

Exercise 2Basic

Both roots of are integers. Give all possible values of .

Exercise 3Advanced

is an integer and both roots of are integers. Give all possible values of .

Exercise 4Advanced

is an integer, and both roots of the quadratic equation in are integers. Give all possible values of .

Exercise 5Challenge

is an integer and the equation has integer roots. Give all possible values of .

Mistake Museum · Exhibits from this stop

Before you leave, look at the traps other people fell into here.See every exhibit in the museum →

Exhibit

Thinking a perfect-square discriminant means integer roots

The wrong step: For , is a perfect square, so both roots are integers.
What went wrong? Think first, then open

Diagnosis A perfect-square only guarantees that the roots are rational. The roots are , that is, and : the numerator must also be divisible by .

The right step: Once you have , actually work out the roots, or factor instead: .

“A square Δ is only the entry ticket; you still have to check the roots”

Exhibit

Not checking whether the equation is quadratic

The wrong step: All roots of are integers: gives roots and , so .
What went wrong? Think first, then open

Diagnosis The problem did not say “quadratic equation”. When the equation is , whose only root is also an integer, and this has been missed.

The right step: Deal with first (it works), then with . The answer is .

“If the leading coefficient contains a parameter, look at it being 0 on its own first”