“For which values of a…” — DİM entrance exams contain such tasks every year: in 2026, 6 of the 60 tasks of groups I and II had a parameter (a quadratic negative for all x, reciprocal roots, a vertex in quadrant IV, a system with a given solution). A parameter is a fixed number whose value is not known; the task asks us to investigate all its possible values. This lesson builds on “Quadratic equations”, “The quadratic function and its graph” and “Quadratic inequalities and the interval method”.
The case a = 0 and the number of roots
1. Leading coefficient
If the coefficient of x² depends on the parameter, check separately the case where it is 0: the equation becomes linear.
2. Discriminant
For a ≠ 0, write D in terms of the parameter.
3. Translate the condition
Turn the condition in words into inequalities for D, x₁ + x₂, x₁x₂, the vertex or f(k).
4. System
Solve the system in the parameter and add the answer of the case a = 0.
5. Answer
Write the answer as an interval or a set and check the boundary values separately.
Think of a parameter as the tuning knob of a radio: every position of the knob gives an ordinary equation with no letter left except x. Let us turn k in x² − 6x + k = 0: for k = 5 we get x² − 6x + 5 = 0 with roots 1 and 5; for k = 9 we get (x − 3)² = 0 with the single root 3; for k = 10 the discriminant is 36 − 40 = −4 and there are no roots. A question “for which k …” does not ask us to try a few values — it asks us to sort all positions of the knob into groups at once.
| k | Equation | D = 36 − 4k | Roots |
|---|---|---|---|
| 5 | x² − 6x + 5 = 0 | 16 | 1 and 5 |
| 9 | x² − 6x + 9 = 0 | 0 | only 3 |
| 10 | x² − 6x + 10 = 0 | −4 | none |
- Can the x² term disappear? If its coefficient contains the parameter, try separately the value that makes it 0.
- Write the discriminant with the parameter in it.
- Turn the question into a condition on D (and, if needed, on the sum and the product of the roots), solve it and test one value from your answer.
Where
- a, b, c
- the coefficients of ax² + bx + c = 0 (may depend on the parameter)
For a = 0 the equation is bx + c = 0: one root if b ≠ 0; if b = 0, either no roots or every x is a root.
The number of roots
Problem
1) For which m does (m − 2)x² + 4x + 1 = 0 have exactly one root?
2) For which k does x² − 6x + k = 0 have two distinct roots?
3) For which k does kx² + 2x + 1 = 0 have no roots?
Show solutionHide solution
Solution
m ≠ 2: D = 16 − 4(m − 2) = 24 − 4m = 0 ⇒ m = 6 (the equation is 4x² + 4x + 1 = (2x + 1)² = 0).
Answer: m ∈ {2, 6}. Forgetting the case a = 0 loses m = 2.
2) D = 36 − 4k > 0 ⇒ k < 9. Answer: (−∞, 9).
3) k = 0: 2x + 1 = 0 — has a root, does not fit.
k ≠ 0: D = 4 − 4k < 0 ⇒ k > 1. Answer: (1, +∞).
Why is the case a = 0 so different? Let m approach 2 in (m − 2)x² + 4x + 1 = 0. By Vieta, x₁x₂ = 1/(m − 2) and x₁ + x₂ = −4/(m − 2) — both grow without bound in absolute value. One root stays close to −1/4 (the root of 4x + 1 = 0), while the other runs away to infinity: for m = 2.01 the roots are about −0.2502 and −399.75. At m = 2 the runaway root is gone and a single root is left. That is why the value at which the leading coefficient vanishes often appears in the answer of a parameter problem as an isolated point.
A quadratic that keeps its sign for all x
Where
- a
- direction of the branches: a > 0 — up, a < 0 — down
- D < 0
- the parabola does not meet the x-axis
For non-strict inequalities (≥ 0, ≤ 0) take D ≤ 0. If a depends on the parameter, check a = 0 separately: bx + c keeps its sign for all x only when b = 0.
Picture the parabola as a cup. If a > 0 the cup stands upright (the branches point up); if a < 0 it is upside down. D < 0 means that the parabola never reaches the x-axis. An upright cup that does not touch the axis lies entirely above it — the expression is positive for every x. An upside-down cup that does not touch it lies entirely below — the expression is negative for every x.
Check with numbers
Problem
Is x² + 2x + 5 positive for every x? Is −x² + 4x − 5 negative for every x?
Show solutionHide solution
Solution
−x² + 4x − 5: a = −1 < 0, D = 16 − 20 = −4 < 0 — an upside-down cup below the axis, so yes. Its highest point is at x = 2: −4 + 8 − 5 = −1 < 0.
Interactive
Quadratics that keep their sign
Problem
1) For which m is −x² + 4x + m < 0 true for all x?
2) For which a is (a − 1)x² − 2(a − 1)x + 3 > 0 true for all x?
3) For which k is the domain of y = √(x² + 2x + k) the whole number line?
Show solutionHide solution
Solution
2) a = 1: 3 > 0 — true for all x, so a = 1 fits.
a ≠ 1: a − 1 > 0 and D/4 = (a − 1)² − 3(a − 1) = (a − 1)(a − 4) < 0 ⇒ 1 < a < 4.
Answer: [1, 4) — 1 is included, 4 is not (for a = 4, D = 0 and the expression is 0 at x = 1).
3) x² + 2x + k ≥ 0 for all x: a = 1 > 0, D = 4 − 4k ≤ 0 ⇒ k ≥ 1. Answer: [1, +∞).
DİM style: a closed task
Problem
For which k is kx² − 4x + k − 3 < 0 true for all x?
A) (−∞, −1) B) (−1, 4) C) (4, +∞) D) (−∞, 0) E) (−∞, −1) ∪ (4, +∞)
Show solutionHide solution
Solution
k ≠ 0: { k < 0; D/4 = 4 − k(k − 3) < 0 } ⇒ { k < 0; k² − 3k − 4 > 0 } ⇒ { k < 0; k < −1 or k > 4 } ⇒ k < −1.
Answer: A.
Option E solves D < 0 alone and ignores k < 0: for k > 4 the branches point up and the expression is positive.
Completing the square. Here (x + b/(2a))² ≥ 0, and it equals 0 at x₀ = −b/(2a). If D < 0, then −D/(4a²) > 0, the square bracket is positive for every x, and the trinomial has the sign of a. If D ≥ 0, the bracket is zero or negative at x₀, so the sign is not kept. This is the proof of the criterion “a > 0 and D < 0”.
A trap where the leading coefficient vanishes
Problem
For which a is (a² − 1)x² + 2(a − 1)x + 2 > 0 true for all x?
Show solutionHide solution
Solution
a = 1: the expression is 2 > 0 — true for all x, so a = 1 fits.
a = −1: −4x + 2 > 0 holds only for x < 1/2 — does not fit.
2) a² − 1 ≠ 0: we need a² − 1 > 0 and D/4 < 0.
D/4 = (a − 1)² − 2(a² − 1) = (a − 1)(a − 1 − 2a − 2) = −(a − 1)(a + 3) < 0 ⇔ (a − 1)(a + 3) > 0 ⇔ a < −3 or a > 1.
Together with a² > 1: a < −3 or a > 1.
3) The boundary a = −3: 8x² − 8x + 2 = 2(2x − 1)² equals 0 at x = 1/2, so the strict inequality fails — −3 is excluded.
Answer: (−∞, −3) ∪ [1, +∞). The point a = 1 comes only from the case of a vanishing leading coefficient — a typical trap.
Conditions on the roots: Vieta’s theorem
Where
- x₁, x₂
- the roots of ax² + bx + c = 0
Vieta’s formulas work only when the roots exist: always add the condition D ≥ 0 (D > 0 for distinct roots).
| Condition | System for the parameter |
|---|---|
| Roots of opposite signs | c/a < 0 (then D > 0 automatically) |
| Both roots positive | D ≥ 0, x₁ + x₂ > 0, x₁x₂ > 0 |
| Both roots negative | D ≥ 0, x₁ + x₂ < 0, x₁x₂ > 0 |
| Reciprocal roots (x₁x₂ = 1) | c/a = 1 and D ≥ 0 |
| Opposite roots (x₁ = −x₂) | b = 0 and c/a < 0 |
| Both roots greater than k | D ≥ 0, a · f(k) > 0, x₀ = −b/(2a) > k |
Each of the three conditions in the last row is needed. D ≥ 0 makes sure the roots exist. a · f(k) > 0 says that k is not between the roots: between the roots f has the sign opposite to a. But k can be to the left of both roots or to the right of both — x₀ > k tells these apart. For example, in x² − 2mx + m² − 1 = 0 with m = 0 we have D > 0 and f(2) = 3 > 0, yet the roots are −1 and 1, both less than 2: the condition x₀ > 2 fails (x₀ = 0).
Vieta’s formulas give the sum and the product of the roots without solving the equation. The roots of x² − 5x + 6 = 0 are 2 and 3: their sum is 5 and their product is 6. The product and the sum show the signs of the roots, just as with ordinary numbers:
- product negative → the roots have opposite signs: (−2) · 3 = −6;
- product positive, sum positive → both roots are positive: 2 · 3 = 6, 2 + 3 = 5;
- product positive, sum negative → both roots are negative: (−2) · (−3) = 6, (−2) + (−3) = −5.
- But first make sure the roots exist (D ≥ 0): for x² + x + 1 = 0 the “product” is 1, yet the equation has no roots at all.
Both roots positive
Problem
For which k are both roots of x² − 4x + k = 0 positive?
Show solutionHide solution
Solution
2) Sum: x₁ + x₂ = 4 > 0 — always true.
3) Product: x₁x₂ = k > 0.
Together: 0 < k ≤ 4. Check k = 3: x² − 4x + 3 = 0 has roots 1 and 3, both positive ✓. k = −5 is not in the answer: x² − 4x − 5 = 0 has roots −1 and 5.
Answer: (0, 4].
The most elegant case is this one: the number k lies between the roots (x₁ < k < x₂) ⇔ a · f(k) < 0. Neither D nor the vertex is needed: if a parabola with its branches up (a > 0) is below the axis at x = k, it must cross the axis on both sides of k — two roots appear automatically, and k separates them. For a < 0 the picture is flipped.
The number 1 separates the roots
Problem
For which m do the roots of (m − 1)x² − 2mx + m + 3 = 0 satisfy x₁ < 1 < x₂?
Show solutionHide solution
Solution
(m = 1 gives the linear equation −2x + 4 = 0 with a single root, so it does not fit anyway.)
Check m = 0: −x² + 3 = 0, roots ±√3 ≈ ±1.73, and 1 lies between them ✓. For m < 1, D/4 = m² − (m − 1)(m + 3) = 3 − 2m > 0 — the roots really exist, as the theory promised.
Answer: (−∞, 1).
Conditions with Vieta’s theorem
Problem
1) For which k are the roots of x² − 2x + k − 5 = 0 of opposite signs?
2) For which a are the roots of x² + (a − 1)x + a² − 3 = 0 reciprocal?
3) For which a is the sum of the squares of the roots of x² + (a − 2)x − a = 0 the least? What is this least value?
4) For which m are both roots of x² − 2mx + m² − 1 = 0 greater than 2?
Show solutionHide solution
Solution
2) x₁x₂ = a² − 3 = 1 ⇒ a = ±2.
a = 2: x² + x + 1 = 0, D = 1 − 4 = −3 < 0 — no roots, a = 2 is rejected.
a = −2: x² − 3x + 1 = 0, D = 9 − 4 = 5 > 0 ✓.
Answer: −2.
3) x₁ + x₂ = 2 − a, x₁x₂ = −a; D = (a − 2)² + 4a = a² + 4 > 0 — the roots always exist.
x₁² + x₂² = (2 − a)² + 2a = a² − 2a + 4 = (a − 1)² + 3. The least value is 3, at a = 1.
4) D/4 = m² − (m² − 1) = 1 > 0 ✓; f(2) = 4 − 4m + m² − 1 = m² − 4m + 3 > 0 ⇒ m < 1 or m > 3; x₀ = m > 2.
System: m > 3. Check: the roots are m − 1 and m + 1, and m − 1 > 2 ⇔ m > 3. Answer: (3, +∞).
Trap: the minimum lies outside the allowed values
Problem
For which a is the sum of the squares of the roots of x² − 2ax + a + 6 = 0 the least?
Show solutionHide solution
Solution
The naive answer is the vertex of this parabola in a: a = 1/4. But for a = 1/4 the equation x² − 0.5x + 6.25 = 0 has D < 0 — there are no roots at all!
The roots exist only when D/4 = a² − a − 6 = (a − 3)(a + 2) ≥ 0, that is, a ≤ −2 or a ≥ 3. On these rays g(a) = 4a² − 2a − 12 decreases up to −2 and increases from 3 on, so the least value is at an endpoint: g(−2) = 8, g(3) = 18.
Answer: a = −2. Check: the equation becomes x² + 4x + 4 = 0, the roots are −2 and −2, and 4 + 4 = 8.
DİM style: a coded task
Problem
For which m are the roots of (m − 1)x² + 10x + 3m − 7 = 0 reciprocal?
Show solutionHide solution
Solution
Check: m = 3 ⇒ 2x² + 10x + 2 = 0, D = 100 − 16 = 84 > 0 — the roots exist and their product is 2/2 = 1.
Answer: 3.
Two methods: Vieta and the graph
Problem
For which a does x² − 6x + 5 = a have two distinct positive roots?
Show solutionHide solution
Solution
With the graph: the parabola y = x² − 6x + 5 has vertex (3, −4) and meets the y-axis at (0, 5). The line y = a cuts the part with x > 0 at two points only for −4 < a < 5. For a = 5 the roots are 0 and 6 — 0 is not positive; for a = −4 there is one root. Both methods give the same answer.
Written task: a full investigation
Problem
For which a does ax² − (a + 1)x + 1 = 0 have two distinct positive roots? Write all stages of the solution.
Show solutionHide solution
Solution
2) a ≠ 0: D = (a + 1)² − 4a = (a − 1)². Two distinct roots need D > 0 ⇒ a ≠ 1.
3) Roots: x = ((a + 1) ± |a − 1|)/(2a), i.e. x₁ = 1 and x₂ = 1/a (check: ax² − (a + 1)x + 1 = (ax − 1)(x − 1)).
4) x₁ = 1 > 0; x₂ = 1/a > 0 ⇒ a > 0.
5) Combine the conditions: a > 0 and a ≠ 1.
Answer: (0, 1) ∪ (1, +∞).
Criteria: the case a = 0 investigated — ⅓; the roots (or the D and Vieta conditions) found correctly — ⅔; a ≠ 1 taken into account and the answer written correctly — 1.
The vertex of the parabola and a parameter
Where
- (x₀; y₀)
- the vertex of y = ax² + bx + c
The vertex lies in quadrant I if x₀ > 0, y₀ > 0; II if x₀ < 0, y₀ > 0; III if x₀ < 0, y₀ < 0; IV if x₀ > 0, y₀ < 0. On the x-axis ⇔ D = 0; on the y-axis ⇔ b = 0.
The vertex is the turning point of the parabola: its lowest point when a > 0 and its highest point when a < 0. If the parabola has roots, the x-coordinate of the vertex lies exactly halfway between them. For example, y = x² − 6x + 5 has roots 1 and 5, and halfway between them is x₀ = 3 = −(−6)/(2 · 1). Then y₀ = 9 − 18 + 5 = −4, so the vertex is (3, −4): x₀ is positive and y₀ is negative — that is quadrant IV. To find the quadrant, only the signs of x₀ and y₀ matter.
Interactive
Where the vertex lies
Problem
1) For which m is the vertex of y = x² − 2mx + 2m + 3 in quadrant IV?
2) For which c does the parabola y = x² + 4x + c touch the x-axis?
3) For which m does the vertex of y = x² + 2(m − 3)x + 5 lie on the y-axis?
Show solutionHide solution
Solution
{ m > 0; −m² + 2m + 3 < 0 } ⇒ { m > 0; m² − 2m − 3 > 0 } ⇒ { m > 0; m < −1 or m > 3 } ⇒ m > 3.
Answer: (3, +∞).
2) Touching means the vertex is on the x-axis: D = 16 − 4c = 0 ⇒ c = 4 (y = (x + 2)²).
3) x₀ = −(m − 3) = 0 ⇒ m = 3.
Linear systems with a parameter
Where
- a₁x + b₁y = c₁ a₂x + b₂y = c₂
- the equations of the system
Geometrically the lines intersect, are parallel or coincide. If a denominator is 0, check a₁b₂ − a₂b₁ = 0 instead of the ratios. More in “Systems of linear equations”.
Systems with a parameter
Problem
1) For which m does { mx + 4y = 8; x + my = 4 } have one solution, no solution, infinitely many solutions?
2) For which a and b is the pair (2, −3) a solution of { ax + 2y = 4; 3x − by = 15 }?
3) For which k does { 2x + ky = 5; x + 3y = 2 } have no solution?
Show solutionHide solution
Solution
m ≠ ±2 — one solution.
m = 2: 2/1 = 4/2 = 8/4 = 2 — infinitely many solutions (the equations are the same).
m = −2: −2/1 = 4/(−2) = −2, but 8/4 = 2 ≠ −2 — no solution.
2) Substitute x = 2, y = −3: 2a − 6 = 4 ⇒ a = 5; 6 + 3b = 15 ⇒ b = 3.
3) 2/1 = k/3 ⇒ k = 6; 5/2 ≠ 2 ✓ — for k = 6 the lines are parallel and there is no solution.
University linear algebra describes the system a₁x + b₁y = c₁, a₂x + b₂y = c₂ with determinants: Δ = a₁b₂ − a₂b₁, Δx = c₁b₂ − c₂b₁, Δy = a₁c₂ − a₂c₁. If Δ ≠ 0, the only solution is x = Δx/Δ, y = Δy/Δ (Cramer’s rule). If Δ = 0 but Δx or Δy is not 0, there is no solution; if all three are 0 (and each equation really describes a line), there are infinitely many. The ratio test of this lesson is the condition Δ = 0 written with fractions.
With Cramer’s rule
Problem
Solve { mx + 4y = 8; x + my = 4 } for every m with determinants.
Show solutionHide solution
Solution
m ≠ ±2: x = 8(m − 2)/((m − 2)(m + 2)) = 8/(m + 2), y = 4/(m + 2). Check m = 0: x = 4, y = 2; indeed 4y = 8 and x = 4.
m = 2: Δ = Δx = Δy = 0 — infinitely many solutions.
m = −2: Δ = 0, Δx = −32 ≠ 0 — no solution.
The classification is the same as in the example above, but now we also get the solution itself.
- 1.x² − 6x + k = 0 has exactly one root when k =
- 2.The greatest integer k for which x² − 6x + k = 0 has two distinct roots:
- 3.One root of x² + px + 12 = 0 is 3 ⇒ p =
- 4.In x² − 4x + m = 0, x₁² + x₂² = 10 ⇒ m =
- 5.The y-coordinate of the vertex of y = x² − 2mx + m² + 3:
- 6.{ 3x + ay = 6; x + 2y = 2 } has infinitely many solutions ⇒ a =
Remember
- If the leading coefficient depends on the parameter, first investigate the case a = 0 separately.
- ax² + bx + c > 0 for all x ⇔ a > 0, D < 0; < 0 ⇔ a < 0, D < 0.
- Conditions on the roots are written with Vieta’s formulas, always together with D ≥ 0 (or D > 0).
- The vertex is (−b/(2a), −D/(4a)): the quadrant is set by the signs of its coordinates.
- A linear system: the ratios a₁/a₂, b₁/b₂, c₁/c₂ decide between one, no and infinitely many solutions.