When a JEE problem asks for the parameter values that make the roots of a quadratic lie in an interval, three tools give the answer: the discriminant D decides whether the roots are real, the sign of a⋅f(k) tells whether k is inside or outside the roots, and the vertex x=−b/(2a) tells which side of k they sit on. This page applies them to all eight standard cases, from both roots positive to both roots that lie in an interval (k1,k2), with eight solved examples for JEE Main and JEE Advanced.
On this page1Three tools2Eight standard cases3Solved examples and practice
Key Formulas - Quick Reference
Let f(x)=ax2+bx+c with a=0. Three tools:
Reality of roots: D=b2−4ac≥0 (or >0 for distinct)
★ Must learnSign at boundary: a⋅f(k) where k is a real number of interest
Position of vertex: xv=−2ab
★ Must learnBoth roots positive: D≥0, −b/a>0, c/a>0
Both roots negative: D≥0, −b/a<0, c/a>0
Opposite signs (0 between roots): c/a<0 (equivalently a⋅f(0)<0)
★ Must learnBoth roots >k: D≥0, a⋅f(k)>0, −b/(2a)>k
Both roots <k: D≥0, a⋅f(k)>0, −b/(2a)<k
★ Must learnk lies strictly between roots: D>0, a⋅f(k)<0
Exactly one root in (k1,k2): f(k1)⋅f(k2)<0 (when neither k1 nor k2 is a root)
★ Must learnBoth roots in (k1,k2): D≥0, af(k1)>0, af(k2)>0, k1<−b/(2a)<k2
1. The Three-Tool Framework
For a quadratic f(x)=ax2+bx+c with real coefficients (a=0) and real roots
α,β (assume α≤β), three quantities decide where the roots lie
relative to any real number k:
Discriminant D=b2−4ac: ensures the roots are real. Use D≥0 for real roots and D>0 for real distinct roots.
Sign of a⋅f(k): if k lies outside the roots (either k<α or k>β), then a⋅f(k)>0. If k lies between the roots (α<k<β), then a⋅f(k)<0.
Vertex position xv=−b/(2a): the vertex is the midpoint of the roots, i.e. xv=(α+β)/2. Comparing xv to k tells which side of k the roots sit on.
Why a⋅f(k) and not just f(k)? Multiplying by a flips the parabola when a<0, so the condition "outside the roots gives positive" holds uniformly regardless of the sign of a. This normalisation makes the same set of formulas work for both upward-opening and downward-opening parabolas.
Figure 1: For a parabola with real distinct roots α,β: a⋅f(k)>0 when k lies outside [α,β], and a⋅f(k)<0 when k lies strictly between the roots. Drawn for f(x)=(x−1)(x−3) with k=−0.3,2,4.3 (dark brown dots on the axis).Figure 2: With a<0 the parabola opens downward and the sign of f(k) flips: f(k)<0 outside the roots and f(2)=1 between them. Multiplying by a=−1 restores the rule of Figure 1: a⋅f(k)>0 outside, <0 between.
Key idea
a⋅f(k)<0 means k is between the roots (so they are real); when the roots are real, a⋅f(k)>0 means k is outside them, whatever the sign of a, and the vertex tells on which side.
Exam Trick
Sketch first: draw the parabola with its roots where the question wants them, mark k (or k1 and k2) and read off the conditions: the sign of a⋅f at each marked point, where the vertex must be, and real roots. Figure 7 lists the outcomes.
Both α,β<0 means the sum is negative but product is positive:
D≥0
α+β=−ab<0,αβ=ac>0
Case III: One root positive, one negative (origin lies between them)
If the roots are on opposite sides of 0, then αβ<0:
ac<0equivalentlya⋅f(0)<0
(No condition on D needed - the sign condition alone guarantees D>0.)
Figure 3: The signs of the roots read from S=α+β=−ab and P=αβ=ac (with real roots, D≥0): (x−1)(x−3), (x+1)(x+3) and (x+1)(x−2). The y-axis is the line x=0.
Quick Recall: tap to checkAre both roots of x2−7x+10=0 positive?
Yes: D=9>0, sum 7>0, product 10>0 (roots 2 and 5).
Do the roots of 2x2+3x−5=0 have opposite signs?
Yes: ac=−25<0 (roots 1 and −25).
x2+4x+5=0 has sum −4<0 and product 5>0. Both roots negative?
No: D=16−20<0, the roots are not real.
Case IV: Both roots greater than a real number k
All three conditions are needed:
D≥0,a⋅f(k)>0,−2ab>k
Case V: Both roots less than a real number k
D≥0,a⋅f(k)>0,−2ab<k
Figure 4: D>0 and a⋅f(1)>0 hold for both parabolas (f(1)=2 and 6), so k=1 is outside the roots of each. Only the vertex says which side: 2.5>1 puts both roots above k (Case IV), −1.5<1 puts both below (Case V).
Both roots on one side of kThree conditions: D≥0, a⋅f(k)>0 and the vertex on that side of k (Figure 4).
k between the rootsOne condition: a⋅f(k)<0. It already forces D>0 and says nothing about the vertex.
Exam Trick
Both roots greater than k? Shift: put x=t+k. The new quadratic in t must have both roots positive, which is Case I with the sum and product. In Solved Example 1(ii), x=t+2 gives t2+(7−m)t+(10−m)=0: D≥0, m−7>0 and 10−m>0, so m∈[9,10) again.
Case VI: k lies strictly between the roots
This means one root is less than k and the other is greater than k:
D>0,a⋅f(k)<0
Key idea
One number between the roots needs one condition, a⋅f(k)<0; both roots on one side of k need all three tools.
Case VII: Exactly one root lies between k1 and k2
If exactly one of α,β lies in the open interval (k1,k2) and neither k1 nor k2 is a root, then f(k1) and f(k2) take opposite signs:
f(k1)⋅f(k2)<0
Exam Trick
Exactly one root in (k1,k2): the test f(k1)f(k2)<0 misses a root sitting at an end, because the product is then 0. Check f(k1)=0 and f(k2)=0 by hand: x2−3x+2=0 has roots 1 and 2, so exactly one root (2) lies in (1,3) although f(1)f(3)=0.
Case VIII: Both roots lie in (k1,k2)
All four conditions needed:
D≥0,a⋅f(k1)>0,a⋅f(k2)>0
k1<−2ab<k2
Figure 5: Three common interval configurations. Green segments/marks indicate the interval or point of interest, red dots are the roots.Figure 6: Case VIII on (1,4). Top: (x−1.5)(x−3) has D>0, f(1)=1>0, f(4)=2.5>0 and vertex 2.25 inside, so both roots are in the interval. Bottom: x2−5x+7.5 has f(1)=3.5, f(4)=3.5 and vertex 2.5 inside, but D=−5<0: no real roots at all.
Exactly one root in (k1,k2)f(k1)⋅f(k2)<0: the graph changes sign across the interval (then check the ends).
Both roots in (k1,k2)Four conditions: D≥0, af(k1)>0, af(k2)>0 and k1<−2ab<k2 (Figure 6).
Quick Recall: tap to checkIs 3 between the roots of x2−5x+5=0?
Yes: f(3)=−1 and a=1, so a⋅f(3)<0.
Write the conditions for both roots of x2+bx+c=0 to exceed 1.
b2−4c≥0, f(1)=1+b+c>0 and −2b>1.
Does x2−3x+1=0 have exactly one root in (0,1)?
Yes: f(0)=1, f(1)=−1, product <0 (the root is 23−5≈0.38).
Key idea
For both roots in an interval: D≥0, a⋅f>0 at both ends and the vertex inside; for exactly one root, look for a sign change across the interval, then check the ends.
JEE Advanced
Equations in sinx or cosx. Put t=sinx. The equation has a real solution x exactly when the quadratic in t has a root in [−1,1]: a location-of-roots question.
Example: cos2x+(a+2)sinx=2a+1. With cos2x=1−t2 it becomes t2−(a+2)t+2a=0, that is (t−2)(t−a)=0. The root t=2 is never a sine, so a solution exists exactly when −1≤a≤1. When the quadratic does not factor, combine the interval cases of Figure 7 and check t=±1 by hand, or use the vertex as in Solved Example 8.
Figure 7: Flowchart for location-of-roots problems for f(x)=ax2+bx+c, with D=b2−4ac, vertex at x=−2ab and k1<k2: decide where the roots must be, then write only the conditions that case needs. Signs of the roots (Cases I to III) are the case k=0, read from the sum and product.Figure 8: Mind map of location of roots: the three tools, signs of the roots, one number k, an interval (k1,k2), shortcuts and the usual traps.
3. Solved Examples
Solved Example 1
For the quadratic x2−(m−3)x+m=0, find the values of m for which:
(i) one root is smaller than 2 and the other is greater than 2;
(ii) both roots are greater than 2;
(iii) both roots lie in (1,2);
(iv) exactly one root lies in (1,2).
Solution:
Let f(x)=x2−(m−3)x+m. Here a=1, b=−(m−3), c=m. Compute:
D=(m−3)2−4m
=m2−10m+9=(m−1)(m−9)
f(1)=1−(m−3)+m=4
f(2)=4−2(m−3)+m=10−m
−2ab=2m−3
(i)2 lies between the roots: need D>0 and af(2)<0.
D>0⟹(m−1)(m−9)>0⟹m<1 or m>9
f(2)<0⟹10−m<0⟹m>10
Intersection: m∈(10,∞).
(ii) Both roots >2: need D≥0, af(2)>0, and −b/(2a)>2.
D≥0⟹m≤1 or m≥9
f(2)>0⟹m<10
(m−3)/2>2⟹m>7
Intersection: m∈[9,10).
(iii) Both roots in (1,2): need D≥0, af(1)>0, af(2)>0, and 1<−b/(2a)<2.
D≥0⟹m≤1 or m≥9
f(1)=4>0 for all m (auto-satisfied)
f(2)>0⟹m<10
1<(m−3)/2<2⟹5<m<7
The last condition needs m∈(5,7), but the first needs m≤1 or m≥9. No overlap: m∈ϕ.
(iv) Exactly one root in (1,2): need D>0 and f(1)⋅f(2)<0.
D>0⟹m<1 or m>9
f(1)f(2)=4(10−m)<0⟹m>10
Intersection: m∈(10,∞).
Figure 9: Solved Example 1. Every member of x2−(m−3)x+m passes through (1,4), which is why f(1)=4 is automatic. For m=12 the curve is below the axis at x=2: 2 lies between the roots and one root (1.63) is in (1,2). For m=9.5 both roots (2.22 and 4.28) exceed 2.
Solved Example 2
Find a for which exactly one root of 2ax2−4⋅2ax+2a−1=0 lies between 1 and 2.
Solution:
Let F(x)=2ax2−4⋅2ax+2a−1. For exactly one root in (1,2), need F(1)⋅F(2)<0.
F(1)=2a−4⋅2a+2a−1=−2⋅2a−1
F(2)=4⋅2a−8⋅2a+2a−1=−3⋅2a−1
Both F(1) and F(2) are negative (since 2a>0), so their product is positive: with t=2a, F(1)F(2)=(2t+1)(3t+1)>0 for every a. No a passes the test.
The roots confirm it. Dividing by t: x2−4x+1−t1=0, so x=2±3+1/t. Since 3+1/t>3, one root is below 2−3≈0.27 and the other above 3.73: neither is ever in (1,2) (Figure 10). Answer: no real value of a.
Figure 10: Solved Example 2. With t=2a the roots are 2±3+t1. The larger root stays above 2+3≈3.73 and the smaller below 2−3≈0.27 for every a, so neither enters the strip 1<x<2.
Solved Example 3
Find the values of k for which the expression 12x2−10xy+2y2+11x−5y+k is the product of two linear factors.
Solution:
Treat the expression as a quadratic in x:
12x2+(11−10y)x+(2y2−5y+k)=0
By the quadratic formula,
x=24(10y−11)±Δ
Δ=(10y−11)2−48(2y2−5y+k)
The expression factors into two linear (in x and y) factors iff the quantity under the square root is a perfect square in y:
(10y−11)2−48(2y2−5y+k)
=100y2−220y+121
−96y2+240y−48k
=4y2+20y+(121−48k)
This is a perfect square in y iff its discriminant is zero:
400−16(121−48k)=0
⟹400−1936+768k=0
⟹k=7681536=2
Solved Example 4
Find the values of a for which both roots of x2−2ax+a2−1=0 lie between −2 and 4.
Solution:
Here f(x)=x2−2ax+a2−1 and D=4a2−4(a2−1)=4>0 for every a. The other three conditions of Case VIII:
f(−2)=a2+4a+3=(a+1)(a+3)>0⟹a<−3 or a>−1
f(4)=a2−8a+15=(a−3)(a−5)>0⟹a<3 or a>5
vertex x=a: −2<a<4
Intersection: −1<a<3.
Check: the roots are a−1 and a+1, and a−1>−2, a+1<4 give the same interval.
Solved Example 5
Find m for which both roots of x2+2(m−1)x+m+5=0 are positive.
Solution:
Case I: real roots, positive sum, positive product.
4D=(m−1)2−(m+5)=(m−4)(m+1)≥0⟹m≤−1 or m≥4
sum −2(m−1)>0⟹m<1
product m+5>0⟹m>−5
Intersection: −5<m≤−1.
Solved Example 6
If both roots of x2−2ax+a2+a−3=0 are less than 3, then (A) a<2 (B) 2≤a≤3 (C) 3<a≤4 (D) a>4
Solution:
Case V with k=3:
4D=a2−(a2+a−3)=3−a≥0⟹a≤3
f(3)=a2−5a+6=(a−2)(a−3)>0⟹a<2 or a>3
vertex x=a: a<3
Together: a<2. Answer: (A).
Solved Example 7
Exactly one root of x2−2x+k=0 lies in (0,1) exactly when (A) k<0 (B) 0<k<1 (C) k>1 (D) 0≤k≤1
Solution:
f(0)=k and f(1)=k−1. The sign test needs k(k−1)<0, so 0<k<1.
Ends: k=0 gives the roots 0 and 2, k=1 gives the double root 1; neither puts a root inside (0,1). Answer: (B).
Solved Example 8
For which real a does sin2x−4sinx+a=0 have a real solution x?
Solution:
Put t=sinx∈[−1,1]: we need a root of g(t)=t2−4t+a in [−1,1].
The vertex t=2 lies outside [−1,1], so g is decreasing there and has at most one root in it. That root exists exactly when g(−1) and g(1) do not have the same strict sign:
g(−1)⋅g(1)=(a+5)(a−3)≤0
So −5≤a≤3. At a=−5 the root is t=−1; at a=3 it is t=1.
Practice Questions
Find m for which both roots of x2−mx+4=0 are positive.Answer: m≥4
For which k do the roots of x2+kx−6=0 have opposite signs?Answer: Every real k: the product is −6<0.
For which m does 1 lie between the roots of x2−2mx+m−2=0?Answer: m>−1, since f(1)=−m−1<0.
Find k for which both roots of x2−6kx+9k2−2k+2=0 are greater than 3.Answer: k>911
Find a for which exactly one root of x2−2ax+a2−1=0 lies in (0,3).Answer: −1<a≤1 or 2≤a<4; the ends a=1 and a=2 come from checking a root at 0 or 3.
For which a are both roots of x2+ax+a+3=0 negative?Answer: a≥6
Common Mistakes to Avoid
Watch out
Forgetting the discriminant condition. Even when the sign and vertex conditions are satisfied, if D<0 the roots are complex and no configuration involving 'roots on the real line' applies.
Using D≥0 for 'strictly between the roots' cases. Case VI (a point strictly between roots) needs D>0, since D=0 would make both roots coincide with the alleged 'between' point.
Forgetting to multiply f(k) by a when a is not known to be positive. The condition 'k outside the roots' is a⋅f(k)>0, not f(k)>0.
Comparing the vertex −b/(2a) with the wrong side of k. Both roots greater than k needs −b/(2a)>k; both less than k needs −b/(2a)<k.
Solving 'exactly one root in (k1,k2)' with a strict inequality on D. The condition f(k1)f(k2)<0 already forces D>0, so no separate discriminant check is needed.
Assuming inclusive versus exclusive boundaries automatically. If the problem asks 'both roots in (k1,k2)' (open interval), use strict inequalities at the boundary; if [k1,k2] (closed), the boundaries can be roots.
Using f(k1)f(k2)<0 for 'exactly one root in (k1,k2)' without checking the ends: a root at k1 or k2 makes the product 0 (Exam Trick 3, Practice 5).
Treating 'both roots greater than k' as 'the larger root greater than k': the smaller root must exceed k too, which is why both a⋅f(k)>0 and the vertex condition are needed.
Frequently Asked Questions
How do you find the values of a parameter for which both roots of a quadratic lie in a given interval?
Use the three-tool framework: (1) the discriminant D≥0 to ensure real roots, (2) a⋅f(k)>0 at each endpoint k to ensure the endpoint lies outside the roots, and (3) the vertex −b/(2a) lies strictly inside the interval. All three conditions together are necessary and sufficient.
What is the condition for a real number k to lie between the roots of ax2+bx+c=0?
The number k lies strictly between the roots if and only if a⋅f(k)<0 (which automatically forces D>0). Multiplying by a handles both upward and downward parabolas uniformly.
Why do we multiply f(k) by a in these conditions?
For an upward parabola (a>0), f(k)>0 means k is outside the roots. For a downward parabola (a<0), the sign flips: f(k)<0 means k is outside. Multiplying by a normalises both cases: a⋅f(k)>0 always means 'outside the roots', regardless of the sign of a.
What is the condition for exactly one root of a quadratic to lie in an interval (k1,k2)?
Exactly one root lies in (k1,k2) if and only if f(k1)⋅f(k2)<0, provided neither k1 nor k2 is itself a root. This is because f is continuous and a sign change between k1 and k2 forces an odd number of roots inside; for a quadratic that means exactly one.
What is the difference between D≥0 and D>0 in interval problems?
D≥0 allows the two roots to coincide (double root), while D>0 requires distinct roots. For 'both roots in an interval' problems, D≥0 is standard unless the problem explicitly says 'distinct'. For 'point strictly between roots', D>0 is required, since D=0 would collapse the roots.
How do you tell if both roots of a quadratic are positive?
Both roots are positive if and only if D≥0 (real roots), sum of roots −b/a>0, and product of roots c/a>0. Equivalently, D≥0, −b/a>0, and c/a>0.
How does the vertex position help decide root location?
The vertex xv=−b/(2a) is the midpoint of the two roots. Comparing xv to a boundary k tells which side of k the roots lie on: if xv>k and both roots exist, both are ≥k (provided f(k) has the correct sign); if xv<k, both are ≤k.
Can a quadratic with negative leading coefficient satisfy these conditions?
Yes - all the standard conditions carry over unchanged if you use a⋅f(k) instead of f(k). The three-tool framework is designed to work for either sign of a. Just remember to multiply by a everywhere except in the discriminant and vertex conditions, which are already sign-neutral.