A quadratic expression ax2+bx+c with a=0 traces a parabola: opening upward if a>0 and downward if a<0. Its sign for all real x is decided by the leading coefficient a and the discriminant D=b2−4ac, giving six standard cases from 'always positive' to 'always negative'. The vertex x=−b/(2a) gives the maximum or minimum value (4ac−b2)/(4a). This page covers the sign of a quadratic expression, its greatest and least values, and the range of a rational expression, with eight solved examples for JEE Main and JEE Advanced.
On this page1Parabola2Sign cases3Greatest and least4Range method5Solved examples
Key Formulas - Quick Reference
Standard quadratic expression: f(x)=ax2+bx+c with a=0
★ Must learnVertex: x=−2ab
★ Must learnExtremum value: f(−2ab)=4a4ac−b2=−4aD
If a>0: minimum value =4a4ac−b2; no maximum
If a<0: maximum value =4a4ac−b2; no minimum
★ Must learnAlways positive (f(x)>0∀x): a>0 and D<0
Always negative (f(x)<0∀x): a<0 and D<0
★ Must learnNon-negative (f(x)≥0∀x): a>0 and D≤0
Perfect square (square of a real linear polynomial): a>0 and D=0
Range of rational expression: set y=P(x)/Q(x) and require the resulting quadratic in x to have real solutions (discriminant ≥0)
1. The Quadratic Expression as a Parabola
The expression f(x)=ax2+bx+c (with a,b,c real and a=0) is called a
real quadratic expression in x. Its graph is a parabola:
If a>0, the parabola opens upward: f(x)→+∞ as ∣x∣→∞.
If a<0, the parabola opens downward: f(x)→−∞ as ∣x∣→∞.
The vertex lies at x=−b/(2a) and gives the minimum value (if a>0) or maximum value (if a<0):
★ Must learn
f(−2ab)=4a4ac−b2=−4aD
Figure 1: The vertex gives the only extreme value. y=x2−2x+3 (a>0, D=−8) has least value −4aD=2 at x=1; y=−x2+2x+1 (a<0, D=8) has greatest value 2 at x=1.
Key idea
The sign of a fixes which way the parabola opens; the vertex x=−2ab gives its only extreme value, −4aD.
2. Sign of the Quadratic Expression
The sign of f(x) for all real x depends on the sign of a and the discriminant D=b2−4ac.
Six standard sub-cases:
Case I: a>0 (parabola opens upward)
Discriminant
Sign of f(x)
Geometric picture
D<0
f(x)>0∀x∈R
Parabola stays entirely above the x-axis
D=0
f(x)≥0∀x∈R
Parabola touches the x-axis at exactly one point (double root)
D>0
f(x)>0 outside [α,β]; f(x)<0 inside
Parabola cuts the x-axis at two points α,β
Case II: a<0 (parabola opens downward)
Discriminant
Sign of f(x)
Geometric picture
D<0
f(x)<0∀x∈R
Parabola stays entirely below the x-axis
D=0
f(x)≤0∀x∈R
Parabola touches the x-axis at exactly one point
D>0
f(x)<0 outside [α,β]; f(x)>0 inside
Parabola cuts the x-axis at two points
Figure 2: All six sign configurations of the quadratic expression f(x)=ax2+bx+c, organised by sign of a (row) and sign of D (column). Drawn from y=±(x2+0.8), ±x2 and ±(x2−1).
Always positive: a>0, D<0The parabola never reaches the x-axis, so f(x)>0 for every x. Example: x2+x+1 (D=−3).
Non-negative: a>0, D≤0The parabola may touch the axis once, so f(x)≥0. Example: x2−2x+1=(x−1)2 is 0 at x=1.
Exam Trick
No two distinct real roots (D≤0)? Then f(x) never changes sign, so one value away from a double root fixes its sign everywhere; f(0)=c is the quickest. For 3x2−2x+5: D=4−60<0 and f(0)=5>0, so it is positive for every x. Solved Example 3 uses the same idea.
Figure 3: With a>0 and D>0, f(x)=x2−2x−3=(x+1)(x−3) is positive outside [−1,3] and negative strictly between the roots. With a<0 the signs swap: negative outside, positive between.
Quick Recall: tap to checkSign of −x2+2x−5 for real x?
a<0 and D=4−20=−16<0: always negative.
When is ax2+bx+c≥0 for all real x?
Exactly when a>0 and D≤0.
For a>0 and D>0, where is f(x) negative?
Strictly between the roots, α<x<β.
Key idea
The sign of a decides what happens far from the vertex; the sign of D decides whether the parabola reaches the x-axis.
3. Greatest and Least Values
When a>0 (parabola opens upward)
The expression has no greatest value (it goes to +∞) and a least value of
4a4ac−b2 attained at x=−2ab.
When a<0 (parabola opens downward)
The expression has no least value (it goes to −∞) and a greatest value of
4a4ac−b2 attained at x=−2ab.
Completing the square gives the same result:ax2+bx+c=a(x+2ab)2+4a4ac−b2. Since the squared term is always ≥0, the extremum equals the constant 4a4ac−b2, achieved when x=−b/(2a).
Figure 4: Completing the square, 2x2−4x+5=2(x−1)2+3: the graph is y=2x2 moved 1 right and 3 up. The squared term is never negative, so the least value is 3=4a4ac−b2=840−16, at x=1.
The extreme value4a4ac−b2=−4aD: a number on the y-axis. For x2−6x+13 it is 4.
Where it occursx=−2ab: a point on the x-axis. For x2−6x+13 it is x=3.
Exam Trick
Know the roots? The vertex is midway, x=2α+β, and the extreme value is −4a(β−α)2. So 2(x−1)(x−5) has its least value at x=3: 2(2)(−2)=−8.
JEE Advanced
Greatest and least values on a closed interval. On [p,q] the extremes of f(x)=ax2+bx+c are among f(p), f(q) and, if p≤−2ab≤q, the vertex value −4aD. If the vertex lies outside [p,q], f is increasing or decreasing on the whole interval and both extremes sit at the ends (Figure 5).
This is how a quadratic in sinx or cosx is handled: put t=sinx∈[−1,1] and treat f(t) on that interval (Solved Example 8).
Figure 5: On a closed interval the extreme values are among f(p), f(q) and the vertex value (if the vertex is inside). Top: x2−4x+5 on [0,3] has least value 1 at the vertex and greatest 5 at x=0. Bottom: t2−3t+2 on [−1,1] has its vertex at t=1.5, outside (hollow dot), so both extremes are at the ends: 6 and 0 (Solved Example 8). Green marks the greatest value, red the least.
Quick Recall: tap to checkLeast value of x2+4x+9?
5, at x=−2.
Does 2x2+3x+1 have a greatest value?
No: a>0, so it grows without bound.
Greatest value of 5−4x−x2?
9, at x=−2.
4. Range of a Rational Expression in x
To find the range of a rational expression Q(x)P(x) where P,Q are quadratics in
x (or one is linear), use this four-step reduction:
Set the rational expression equal to y and clear denominators: P(x)=y⋅Q(x).
For real x to exist, the discriminant of that quadratic (in x) must be ≥0. This gives an inequality in y.
Solve the inequality in y; the resulting range is the range of the original expression.
Exam Trick
Check a range quickly: the end values it attains come from a repeated root in x, at x=−2A(y)B(y). In Solved Example 1, y=3 gives 2x2+4x+2=0, so x=−1, and y=31 gives x=1: substitute back and both values come out.
Figure 6: Flowchart for the range of y=Q(x)P(x). The discriminant test in x gives the possible y, the value that kills the x2 coefficient is solved separately, and on both branches a y reached only at an x removed by cancelling, or at a zero of Q, is dropped. For x−1x2−1 this removes y=2.
Quick Recall: tap to checkFirst step for the range of Q(x)P(x)?
Set it equal to y and clear the denominator: yQ(x)=P(x).
Why D≥0 and not D>0?
D=0 gives a repeated real x, which is still a real x, so that y is attained (unless that x makes the denominator zero).
What if the x2 coefficient is 0 for some y?
Solve that linear equation separately; Solved Example 1 gets y=1 this way.
Key idea
A value y is in the range exactly when the equation in x has a real solution that keeps the denominator non-zero.
Figure 7: Mind map of quadratic expressions: the parabola, the sign cases for D<0, D=0 and D>0, the extreme value at the vertex, extremes on an interval, the range of a rational expression and the usual traps.
5. Solved Examples
Solved Example 1
Find the maximum and minimum values of x2+x+1x2−x+1 for real x.
Solution:
Set y=x2+x+1x2−x+1. Cross-multiplying:
y(x2+x+1)=x2−x+1
⟹(y−1)x2+(y+1)x+(y−1)=0
For real x, discriminant ≥0:
(y+1)2−4(y−1)2≥0
Factor as difference of squares:
[(y+1)−2(y−1)][(y+1)+2(y−1)]≥0
⟹(3−y)(3y−1)≥0
⟹(y−3)(3y−1)≤0
⟹31≤y≤3
So ymin=31,ymax=3.
Aside: the case y=1 makes the quadratic degenerate to a linear equation 2x=0, giving x=0, which is valid. So y=1 is attained too, consistent with 1∈[1/3,3].
Figure 8: Solved Example 1. A horizontal line y=k meets the curve exactly when 31≤k≤3: that is the discriminant condition. y=3 and y=31 touch it at x=−1 and x=1 (a repeated root in x); y=2 cuts it twice, at x=2−3±5.
Solved Example 2
If min{x2+(a−b)x+(1−a−b)}>max{−x2+(a+b)x−(1+a+b)}, prove that a2+b2<4.
Solution:
Complete the square in each expression. For the first (leading coefficient +1>0, minimum exists):
x2+(a−b)x+(1−a−b)
=(x+2a−b)2
+(1−a−b)−4(a−b)2
Minimum value =1−a−b−4(a−b)2.
For the second (leading coefficient −1<0, maximum exists):
−x2+(a+b)x−(1+a+b)
=−(x−2a+b)2
+4(a+b)2−(1+a+b)
Maximum value =4(a+b)2−1−a−b.
The given inequality becomes:
1−a−b−4(a−b)2>4(a+b)2−1−a−b
⟹2>4(a−b)2+(a+b)2
=42a2+2b2=2a2+b2
⟹a2+b2<4
Figure 9: Solved Example 2 with a=b=1, so a2+b2=2<4. The least value of x2−1 is −1, the greatest value of −x2+2x−3 is −2, and −1>−2 as the condition needs.
Solved Example 3
If the quadratic equation ax2−bx+5=0 (a=0) does not have two distinct real roots, find the minimum value of 5a+b.
Solution:
Since the equation does not have two distinct real roots, either the roots are complex (D<0) or they are real and equal (D=0). In either case, f(x)=ax2−bx+5 does not change sign, so it is either always ≥0 or always ≤0.
Note f(0)=5>0, so f(x)≥0 for all real x. In particular:
f(−5)≥0⟹25a+5b+5≥0
⟹5a+b≥−1
Hence the minimum value of 5a+b is −1, achieved when equality holds in f(−5)≥0, i.e. when −5 is a repeated root.
Figure 10: Solved Example 3. With no two distinct real roots, f(x)=ax2−bx+5 never changes sign, and f(0)=5>0, so f(−5)=25a+5b+5≥0, that is 5a+b≥−1. The orange member 5(x+5)2 touches the axis at x=−5 and gives 5a+b=−1.
Solved Example 4
Find the range of x2+2x+3x2+14x+9 for real x.
Solution:
The denominator x2+2x+3=(x+1)2+2 is never zero. Set y=x2+2x+3x2+14x+9 and clear it:
(y−1)x2+(2y−14)x+(3y−9)=0
For y=1, real x needs 4D=(y−7)2−(y−1)(3y−9)≥0:
−2y2−2y+40≥0⟹y2+y−20≤0
⟹(y+5)(y−4)≤0⟹−5≤y≤4
For y=1 the equation is linear, −12x−6=0, which gives x=−21: so y=1 is attained. Range: [−5,4].
Solved Example 5
Find all real k for which (k−2)x2+8x+k+4>0 for every real x.
Solution:
If k=2 the expression is 8x+6, which is negative for x<−43: rejected.
Otherwise we need k−2>0 and D<0:
64−4(k−2)(k+4)<0
⟹(k−2)(k+4)>16
⟹k2+2k−24>0
⟹(k+6)(k−4)>0
So k<−6 or k>4. Together with k>2: k>4.
Solved Example 6
The least value of x2+4y2+3z2−2x−12y−6z+14 for real x,y,z is (A) 0 (B) 1 (C) 2 (D) 14
Solution:
Complete the square in each variable:
(x−1)2+4(y−23)2+3(z−1)2+1
Each square is ≥0 and all three vanish at x=1, y=23, z=1, so the least value is 1. Answer: (B) 1.
Solved Example 7
If x is real, 2x2+3x+6x+2 takes all values in (A) [1/13,1/3] (B) [−1/13,1/3] (C) [−1/3,1/13] (D) [−1/3,1/3]
Solution:
2x2+3x+6 has D=9−48<0, so it is never zero. Set y=2x2+3x+6x+2:
2yx2+(3y−1)x+(6y−2)=0
For y=0, real x needs (3y−1)2−8y(6y−2)≥0:
−39y2+10y+1≥0
⟹(13y+1)(3y−1)≤0
⟹−131≤y≤31
For y=0 the equation is −x−2=0, so x=−2 and 0 is attained. Answer: (B).
Solved Example 8
Find the range of sin2x−3sinx+2 for real x.
Solution:
Put t=sinx, so t∈[−1,1] and the expression is f(t)=t2−3t+2.
The vertex is at t=23, outside [−1,1], so f is decreasing on the whole interval (Figure 5).
Greatest value f(−1)=6 (when sinx=−1), least value f(1)=0 (when sinx=1). Range: [0,6].
Practice Questions
Find the least value of 3x2−12x+20.Answer: 8, at x=2.
Find the greatest value of −2x2+8x−3.Answer: 5, at x=2.
For which real m is x2+mx+9>0 for every real x?Answer: −6<m<6.
For which real k is kx2+4x+k<0 for every real x?Answer: k<−2.
Find the range of x2+x+1x2+1.Answer: [32,2]
Find the range of x2+1x.Answer: [−21,21]
Find the greatest and least values of x2−6x+11 on [1,4].Answer: Least 2 at x=3, greatest 6 at x=1.
Common Mistakes to Avoid
Watch out
Confusing the max/min value of the expression with the location of the extremum. The value is 4a4ac−b2; the location is x=−b/(2a).
Assuming a quadratic with a>0 has both a maximum and minimum. It has only a minimum (at the vertex); it has no maximum since f(x)→+∞.
Using D<0 alone to conclude 'always positive'. You also need a>0. If a<0 and D<0, the expression is always negative.
In the range-of-rational-expression technique, forgetting to check when the coefficient of x2 becomes zero (i.e. y takes a value that makes the equation linear rather than quadratic). Handle that value separately.
In the range technique, using D>0 instead of D≥0. The equality case corresponds to a repeated real root of x, which is still a valid real x, so D≥0 is correct.
Assuming that 'ax2+bx+c=0 has no real roots' means the discriminant is zero. It means D<0 (strict inequality). D=0 gives one repeated real root, so the expression touches zero.
Using the vertex value on a restricted interval when the vertex lies outside it: then both extremes are at the ends (Solved Example 8, Figure 5).
Cancelling a common factor and forgetting the x it removes: for x−1x2−1 the discriminant test allows every y, but y=2 is never reached because it needs x=1, where the expression is not defined (Figure 6).
Frequently Asked Questions
What is the difference between a quadratic equation and a quadratic expression?
A quadratic expression is ax2+bx+c - a polynomial in x of degree 2. A quadratic equation is ax2+bx+c=0 - setting the expression equal to zero and asking for the values of x that satisfy it. The expression is a function of x; the equation has specific roots.
How do you find the maximum or minimum value of a quadratic expression?
The extremum is at the vertex x=−b/(2a), with value 4a4ac−b2=−4aD. If a>0 this is the minimum (no maximum); if a<0 this is the maximum (no minimum). You can also derive this by completing the square.
When is ax2+bx+c positive for all real x?
ax2+bx+c>0 for all real x if and only if a>0 and D=b2−4ac<0. Geometrically, the parabola opens upward and does not touch the x-axis.
When is ax2+bx+c non-negative for all real x?
ax2+bx+c≥0 for all real x if and only if a>0 and D=b2−4ac≤0. The equality D=0 corresponds to the expression touching zero at exactly one point (a repeated root).
How do you find the range of a rational expression like x2+x+1x2+1?
Set the expression equal to y and clear denominators to get a quadratic in x with y as parameter. For x to be real, the discriminant of that quadratic (in x) must be ≥0. Solve the resulting inequality in y - the solution set is the range.
Why does completing the square give the vertex formula?
Writing ax2+bx+c=a(x+b/(2a))2+(4ac−b2)/(4a) shows the expression is a shifted-and-scaled version of x2. The squared term is minimised when x+b/(2a)=0, i.e. x=−b/(2a), giving the constant (4ac−b2)/(4a) as the extremum.
When is a quadratic expression a perfect square?
ax2+bx+c is a perfect square (the square of a real linear polynomial) if and only if a>0 and D=b2−4ac=0. In that case ax2+bx+c=a(x+b/(2a))2.
How can a quadratic expression in two variables be factored into linear factors?
For Ax2+Bxy+Cy2+Dx+Ey+F to factor into two linear factors in x and y, treat it as a quadratic in x with y as a parameter. Its discriminant (in x) must be a perfect square in y, which itself requires that discriminant's own discriminant (in y) to be zero. This gives an algebraic condition on the coefficients.