← Back to course

Math — Mechina

Location of the roots of a quadratic

Summary

For f(x)=ax2+bx+cf(x)=ax^2+bx+c with roots x1,x2x_1,x_2: x1+x2=−bax_1+x_2=-\frac ba, x1x2=cax_1x_2=\frac ca. Where the roots lie relative to a number kk is decided without computing them.

  • kk between the roots   ⟺  a⋅f(k)<0\iff a\cdot f(k)<0 (no need to check Δ\Delta).
  • Both roots greater than kk: Δ>0\Delta>0, a⋅f(k)>0a\cdot f(k)>0, xv>kx_v>k.
  • Both roots less than kk: Δ>0\Delta>0, a⋅f(k)>0a\cdot f(k)>0, xv<kx_v<k.
  • Exactly one root in (k1,k2)(k_1,k_2): f(k1)⋅f(k2)<0f(k_1)\cdot f(k_2)<0.
-1123456789-8-6-4-224681012xyf(1, 3)k=1
f(1)>0f(1)>0 and the vertex at x=4>1x=4>1 — both roots to the right of 11.

Question types

1

Signs of the roots (Vieta)

Asked about positive / negative roots / roots of opposite signs.

Worked example

For which mm does x2−4x+m=0x^2-4x+m=0 have two distinct positive roots?

Solution

IdeaΔ>0\Delta>0, positive sum, positive product.
  1. Δ=16−4m>0⇒m<4\Delta=16-4m>0\Rightarrow m<4.
  2. x1+x2=4>0x_1+x_2=4>0 always; x1x2=m>0x_1x_2=m>0.
  3. 0<m<40<m<4.
Checkm=3m=3: roots 1,31,3 ✓.
Common mistakeChecking only the product and forgetting Δ\Delta.

Variants of this type · 1

1.1Opposite signs

Worked example

For which mm are the roots of x2+3x+m=0x^2+3x+m=0 of opposite signs?

Solution

IdeaNegative product — Δ\Delta is automatically positive.
  1. m<0m<0.
Checkm=−4m=-4: roots 1,−41,-4 ✓.
Common mistakeAdding Δ>0\Delta>0 and overcomplicating.
2

A number between the roots

kk must lie between the roots.

Worked example

For which mm does 33 lie between the roots of x2−2x+m=0x^2-2x+m=0?

Solution

Ideaa=1>0a=1>0 — we need f(3)<0f(3)<0.
  1. f(3)=9−6+m=3+m<0f(3)=9-6+m=3+m<0.
  2. m<−3m<-3.
Checkm=−8m=-8: roots −2,4-2,4 ✓.
Common mistakef(3)>0f(3)>0.

Variants of this type · 1

2.1Leading coefficient with a parameter

Worked example

For which mm does 00 lie between the roots of mx2+x−1=0mx^2+x-1=0?

Solution

Ideam⋅f(0)<0m\cdot f(0)<0.
  1. m⋅(−1)<0⇒m>0m\cdot(-1)<0\Rightarrow m>0.
Checkm=2m=2: 2x2+x−12x^2+x-1, roots 12,−1\frac12,-1 ✓.
Common mistakef(0)<0f(0)<0 without aa.
3

Both roots on the same side of a number

Both roots greater (or less) than kk.

Worked example

For which mm are both roots of x2−6x+m=0x^2-6x+m=0 greater than 11?

Solution

IdeaThree conditions: Δ\Delta, f(k)f(k), vertex.
  1. Δ=36−4m>0⇒m<9\Delta=36-4m>0\Rightarrow m<9.
  2. f(1)=m−5>0⇒m>5f(1)=m-5>0\Rightarrow m>5.
  3. xv=3>1x_v=3>1 ✓.
  4. 5<m<95<m<9.
Checkm=8m=8: roots 2,42,4 ✓.
Common mistakeDropping the vertex condition.
4

One root in an interval

Exactly one root in the interval (k1,k2)(k_1,k_2).

Worked example

For which mm does x2−3x+m=0x^2-3x+m=0 have exactly one root in the interval (0,1)(0,1)?

Solution

IdeaThe function changes sign in the interval: f(0)f(1)<0f(0)f(1)<0.
  1. f(0)=mf(0)=m, f(1)=m−2f(1)=m-2.
  2. m(m−2)<0⇒0<m<2m(m-2)<0\Rightarrow0<m<2.
Checkm=1m=1: roots 3±52≈0.38,2.62\frac{3\pm\sqrt5}{2}\approx0.38,2.62 ✓.
Common mistakef(0)f(1)>0f(0)f(1)>0.

Exam-style problems

One problem with several parts on the same data, as on the exam. Each part adds something to the drawing.

Practice · 20

Test yourself with problems and full solutions.

Go to practice