Root placement in an interval: discriminants, vertices, and endpoints

Original publication: Updated:

Turn a root question into an intersection question

A root-placement problem asks how many real roots of an equation lie in a specified interval. For a quadratic, three pieces of information are especially useful:

  • The discriminant: are there two distinct roots, a double root, or no real roots?
  • The vertex: where is the axis relative to the interval?
  • The endpoint values: on which side of the horizontal axis is the graph at the boundaries?

We will assume the quadratic opens upward. If its leading coefficient is negative, multiply the equation by minus one first. This leaves its roots unchanged and makes the sign criteria below applicable.

The quadratic formula is valid too, but directly solving several radical inequalities is often longer than using the graph's structure.

Two distinct roots in an open interval

For f(x)=Ax2+Bx+Cf(x)=Ax^2+Bx+C with A>0A>0, let v=−B/(2A)v=-B/(2A) and D=B2−4ACD=B^2-4AC. Both roots lie in (α,β)(\alpha,\beta) exactly when

D>0,α<v<β,f(α)>0,f(β)>0.\boxed{D>0,\quad\alpha<v<\beta,\quad f(\alpha)>0,\quad f(\beta)>0.}

The vertex is below the axis because D>0D>0. Positive endpoint values and a vertex inside force one crossing on each side of it before reaching the endpoints.

An upward-opening parabola with its axis between alpha and beta, positive endpoint values, and two crossings inside the interval.

For a closed interval, allowing the roots at the endpoints changes the endpoint inequalities to nonstrict ones. Keeping D>0D>0 still distinguishes two roots from a double root.

Problem 1: two roots in (-1, 2)

Problem. Find all real aa for which

x2+ax+a2−3=0x^2+ax+a^2-3=0

has two distinct roots in −1<x<2-1<x<2.

For f(x)=x2+ax+a2−3f(x)=x^2+ax+a^2-3,

v=−a2,D=12−3a2,f(−1)=(a−2)(a+1),f(2)=(a+1)2.v=-\frac a2,\quad D=12-3a^2,\quad f(-1)=(a-2)(a+1),\quad f(2)=(a+1)^2.

The four conditions become

−2<a<2,−4<a<2,a<−1 or a>2,a≠−1.-2<a<2,\quad-4<a<2,\quad a<-1\text{ or }a>2,\quad a\ne-1.

Their intersection is

−2<a<−1.\boxed{-2<a<-1.}

At a=−2a=-2 the discriminant is zero, so the two roots merge. At a=−1a=-1 one root is an excluded endpoint. Both strict boundaries are therefore necessary.

Animation of the quadratic as a varies, with the interval endpoints -1 and 2 marked.

Exactly one root in an open interval

There are three possibilities to examine:

  1. The endpoint values have opposite signs, giving one crossing inside.
  2. A double root lies strictly inside the interval.
  3. An endpoint is itself a root, and the other root lies strictly inside.

The third case is easily missed because an endpoint of an open interval is excluded, while the other root may still count.

Two upward parabolas showing opposite endpoint signs, each with one root inside the interval.

A quadratic with one root inside the interval and its other root at the excluded right endpoint.

Problem 2: one distinct root, including a double root

Problem. Find all real aa for which

x2+2ax−a+1=0x^2+2ax-a+1=0

has exactly one distinct root in −1<x<3-1<x<3. A double root counts as one.

Here v=−av=-a, D=4(a2+a−1)D=4(a^2+a-1), f(−1)=2−3af(-1)=2-3a, and f(3)=10+5af(3)=10+5a.

First handle endpoint roots:

  • At a=2/3a=2/3, the roots are −1-1 and −1/3-1/3, so exactly one is inside.
  • At a=−2a=-2, the roots are 11 and 33, again leaving exactly one inside.

Away from those parameter values, opposite endpoint signs require

(2−3a)(10+5a)<0,(2-3a)(10+5a)<0,

which gives a<−2a<-2 or a>2/3a>2/3.

The double-root case requires a2+a−1=0a^2+a-1=0. Its two values (−1±5)/2(-1\pm\sqrt5)/2 both place v=−av=-a inside (−1,3)(-1,3).

Combining the cases,

a≤−2ora=−1±52ora≥23.\boxed{a\le-2\quad\text{or}\quad a=\frac{-1\pm\sqrt5}{2}\quad\text{or}\quad a\ge\frac23.}

The same problem can be approached by separating the parameter and rotating a line.

At least one root in a closed interval

For an upward quadratic, a useful exhaustive criterion on [α,β][\alpha,\beta] is

f(α)f(β)≤0f(\alpha)f(\beta)\le0

or, simultaneously,

D≥0,α≤v≤β,f(α)≥0,f(β)≥0.D\ge0,\quad\alpha\le v\le\beta,\quad f(\alpha)\ge0,\quad f(\beta)\ge0.

The first case includes an endpoint root and opposite-sign endpoints. The second includes a vertex at or below the axis while both endpoints are at or above it. The cases can overlap, but together they omit no valid configuration.

Equivalently, the continuous function must have a minimum at most zero and a maximum at least zero on the interval. The maximum of an upward quadratic is at an endpoint; the minimum is at the vertex if it lies inside, or at an endpoint otherwise.

Problem 3: a closed interval

Problem. Find all real aa for which

x2+ax+a2−3=0x^2+ax+a^2-3=0

has at least one root in −1≤x≤3/2-1\le x\le3/2.

The discriminant first requires −2≤a≤2-2\le a\le2. For every aa in this range, the vertex −a/2-a/2 lies in [−1,1][-1,1], and therefore in the required interval. Its minimum value is nonpositive. Thus a root exists in the interval precisely when at least one endpoint value is nonnegative:

f(−1)=a2−a−2≥0orf(3/2)=a2+32a−34≥0.f(-1)=a^2-a-2\ge0\quad\text{or}\quad f(3/2)=a^2+\frac32a-\frac34\ge0.

The first inequality gives a≤−1a\le-1 or a≥2a\ge2. The second gives

a≤−3−214ora≥−3+214.a\le\frac{-3-\sqrt{21}}4\quad\text{or}\quad a\ge\frac{-3+\sqrt{21}}4.

Intersecting their union with [−2,2][-2,2] yields

−2≤a≤−1or−3+214≤a≤2.\boxed{-2\le a\le-1\quad\text{or}\quad\frac{-3+\sqrt{21}}4\le a\le2.}

The endpoints are included because roots at the interval boundaries are allowed.

A quadratic touching the interval boundaries in a critical parameter configuration, illustrating that the exhaustive cases may overlap.

Problem 4: a cubic and a separated constant

Problem. Find all real aa for which

x3−3x−a=0x^3-3x-a=0

has a root in 0<x<1/20<x<1/2.

Write x3−3x=ax^3-3x=a. The fixed function h(x)=x3−3xh(x)=x^3-3x has derivative 3x2−3<03x^2-3<0 throughout (0,1/2)(0,1/2), so it is strictly decreasing there. Its endpoint limits are

h(0)=0,h(1/2)=18−32=−118.h(0)=0,\qquad h(1/2)=\frac18-\frac32=-\frac{11}8.

Continuity and strict decrease show that its image is exactly (−11/8,0)(-11/8,0). Therefore

−118<a<0.\boxed{-\frac{11}8<a<0.}

The fixed cubic y=x cubed-3x and a horizontal line y=a, with x=0 and x=1/2 marking the relevant range.

For higher-degree equations, parameter separation can simplify the question to the range or intersection count of a fixed function. It is a useful choice rather than a rule forbidding other approaches; derivatives, factorization, or explicit roots can also be appropriate.

The endpoint habit

Write down whether each interval endpoint is included before starting. Then test critical parameter values directly in the original equation. A discriminant equality, a tangency, and a root crossing an endpoint are different events, and each can change a root count.

Related articles

About the author

Koki Saito

Physician and graduate of the University of Tokyo Faculty of Medicine. Drawing on his entrance-exam experience, he explains how to choose mathematical methods and construct complete solutions.

Full profile →

Have a question or spotted an error? Contact us.