PYQ Vault

JEE Mains Maths · Quadratic Equations

Discriminant and Location of Roots

What the discriminant says about the roots — real, equal, rational or absent — and how the sign of the quadratic at chosen points places the roots on the number line.

Why this matters

Eighteen PYQs, thirteen of them multiple choice, and three from 2026. Nine use the sign of the discriminant — equal roots, real roots, no real roots, or a quadratic that keeps one sign for every x; three need the discriminant to be a perfect square, so the roots are rational or integers; six place the roots against given numbers — both positive, both negative, inside an interval, or on either side of a point. Three ideas cover the page.

Concept 1 of 3: The sign of the discriminant

D=b2−4acD=b^2-4ac decides the roots: two real roots when D>0D>0, one repeated root when D=0D=0, none when D<0D<0. The same number controls the sign of the quadratic: with a>0a>0 and D<0D<0 the graph never reaches the axis, so the quadratic is positive for every xx. When xx and yy are tied by one equation, read it as a quadratic in one of them; for that one to be real, its discriminant must be ≥0\ge0.

Definition

  • D>0D>0: two distinct real roots; D=0D=0: equal roots; D<0D<0: no real roots.
  • ax2+bx+c>0ax^2+bx+c>0 for all xx exactly when a>0a>0 and D<0D<0.
  • ax2+bx+c<0ax^2+bx+c<0 for all xx exactly when a<0a<0 and D<0D<0.
  • If the x2x^2 coefficient can be 00, check that value on its own.

Discriminant

D=b2−4ac,x=−b±D2aD=b^2-4ac,\qquad x=\frac{-b\pm\sqrt D}{2a}

Worked example

For which mm does x2−2mx+4m−3=0x^2-2mx+4m-3=0 have equal roots?
Practice this conceptself-check · 4 quick reps

The same idea in a real exam question:

JEE Mains · 2025 · 3 Apr 2025 · Q132Moderate

Example 1 · Quadratic Equations · Discriminant and Location of Roots

Let the equation x(x+2)(12−k)=2x(x+ 2)(12 -k) = 2 have equal roots. Then the distance of the point (k,k2)\left( k,\frac{k}{2} \right) from the line 3x+4y+5=03x+ 4y+ 5 = 0 is.

The x² coefficient can vanish

When the leading coefficient holds a parameter, the value that makes it 00 leaves a linear equation, and the discriminant test does not apply. Treat that value on its own — it is often the case the options exclude.

Concept 2 of 3: Rational and integer roots

With integer coefficients, the roots are rational exactly when DD is a perfect square: the square root in the formula disappears. For x2+bx+c=0x^2+bx+c=0 with integers b,cb,c, rational roots are integers. So the question becomes one of two searches: for which parameters is DD a perfect square, or which factor pairs of cc add up to −b-b.

Definition

  • Integer coefficients: roots rational exactly when DD is a perfect square.
  • x2+bx+c=0x^2+bx+c=0, b,cb,c integers: rational roots are integers.
  • Integer roots: list the factor pairs of cc whose sum is −b-b.

Rational roots

b2−4ac∈Z ⇒ x=−b±D2a is rational\sqrt{b^2-4ac}\in\mathbb{Z}\ \Rightarrow\ x=\frac{-b\pm\sqrt{D}}{2a}\ \text{is rational}

Worked example

The roots of x2−px+12=0x^2-px+12=0 are integers. How many values can pp take?
Practice this conceptself-check · 4 quick reps

The same idea in a real exam question:

JEE Mains · 2025 · 4 April 2025 · Q68Moderate

Example 2 · Quadratic Equations · Discriminant and Location of Roots

Consider the equation x2+4x−n=0x^{2}+ 4x-n= 0, where n∈[20,100]n \in \lbrack 20,100\rbrack is a natural number. Then the number of all distinct values of nn, for which the given equation has integral roots, is equal to.

Rational coefficients first

The perfect-square test works only when the coefficients are rational. With 2\sqrt2 in a coefficient, the roots can be irrational even when DD is a perfect square.

Concept 3 of 3: Placing the roots on the number line

For f(x)=ax2+bx+cf(x)=ax^2+bx+c with a>0a>0, the graph is a U. A number kk lies between the roots exactly when f(k)<0f(k)<0 — no discriminant check is needed. For both roots beyond kk on the same side, three conditions are needed: real roots, the vertex on that side, and f(k)>0f(k)>0. For both roots positive, the sum and product do the same job. For one root in each of two intervals, check the sign of ff at the end points.

Definition

  • kk between the roots: af(k)<0af(k)<0.
  • Both roots >k>k: D≥0D\ge0, −b2a>k-\frac{b}{2a}>k, af(k)>0af(k)>0.
  • Both roots positive: D≥0D\ge0, sum >0>0, product >0>0.
  • Both roots in (p,q)(p,q): D≥0D\ge0, p<−b2a<qp<-\frac{b}{2a}<q, af(p)>0af(p)>0, af(q)>0af(q)>0.

A number between the roots

α<k<βexactly whena f(k)<0\alpha<k<\beta\quad\text{exactly when}\quad a\,f(k)<0

Worked example

For which mm are both roots of x2−2mx+m+6=0x^2-2mx+m+6=0 positive?
Practice this conceptself-check · 4 quick reps

The same idea in a real exam question:

JEE Mains · 2026 · 4 Apr 2026 Shift 2 · Q55Moderate

Example 3 · Quadratic Equations · Discriminant and Location of Roots

If the quadratic equation (λ+2)x2−3λx+4λ=0(\lambda+ 2)x^{2}- 3\lambda x+ 4\lambda= 0, λ≠−2\lambda\neq - 2, has two positive roots, then the number of possible integral values of λ\lambda is :

The vertex condition is not optional

D≥0D\ge0 and f(k)>0f(k)>0 hold both when the two roots are above kk and when both are below it. Only the vertex −b2a-\frac{b}{2a} tells which side.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (3)

  • The sign of the discriminant

    Discriminant

    D=b2−4ac,x=−b±D2aD=b^2-4ac,\qquad x=\frac{-b\pm\sqrt D}{2a}
  • Rational and integer roots

    Rational roots

    b2−4ac∈Z ⇒ x=−b±D2a is rational\sqrt{b^2-4ac}\in\mathbb{Z}\ \Rightarrow\ x=\frac{-b\pm\sqrt{D}}{2a}\ \text{is rational}
  • Placing the roots on the number line

    A number between the roots

    α<k<βexactly whena f(k)<0\alpha<k<\beta\quad\text{exactly when}\quad a\,f(k)<0

Watch out for (3)

Test yourself on Quadratic Equations

20 past JEE Mains questions from this chapter, timed at 48 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.