- Practice
- About 22 min
- 5 practice questions
Linear inequalities and quadratic functions: roots, discriminant and completing the square
Solve linear inequalities and systems of them, model word problems with inequalities, complete the square, use the quadratic formula and the discriminant, and work with the sum and product of roots.
If something looks wrong, please tell us.
By the end of this lesson you can
- Solve a linear inequality algebraically and read its solution from two graphs.
- Solve a system of linear inequalities and a word problem that leads to one.
- Write ax² + bx + c in completed-square form and derive the quadratic formula.
- Use the discriminant to decide the nature of the roots and how the parabola meets the x-axis.
- Use α + β = −b/a and αβ = c/a, and solve a quadratic equation containing a modulus.
A sentence like the bill must stay below ₹300 is an inequality, not an equation, and it usually has a whole range of solutions. Quadratic functions are the next step up from linear ones; their zeros, found by completing the square, appear in almost every later chapter.
Linear inequalities in one variable
A linear function f(x) = ax + b has a straight-line graph with slope a and y-intercept b; if a ≠ 0 its x-intercept is −b/a. Replacing = by <, ≤, > or ≥ gives a linear inequality. We solve it like an equation, using the properties of R: we may add the same number to both sides, and multiply by a positive number; multiplying by a negative number reverses the sign.
Worked example 1: solving and reading graphs
Solve 5x − 3 ≥ 2x + 9. Subtract 2x: 3x − 3 ≥ 9. Add 3: 3x ≥ 12. Divide by 3: x ≥ 4. The solution set is [4, ∞). Graphically, draw y = 5x − 3 and y = 2x + 9; they cross at x = 4 (both give 17), and the line y = 5x − 3 lies on or above the other exactly when x ≥ 4. Another: −3x < 12 gives x > −4, since dividing by −3 reverses the sign.
Worked example 2: a system of inequalities
Solve 2x + 1 > −5 and 3x − 2 ≤ 10 together. The first gives 2x > −6, so x > −3. The second gives 3x ≤ 12, so x ≤ 4. Both must hold, so we take the intersection (−3, ∞) ∩ (−∞, 4] = (−3, 4].
Worked example 3: word problems (made-up data)
(i) A mobile plan charges a fixed ₹99 plus ₹15 for each extra GB. A user wants the bill below ₹300. If x is the number of extra GB, 99 + 15x < 300, so 15x < 201 and x < 13.4. Since x is a whole number of GB, she can use at most 13 extra GB. (ii) Meena scored 78, 85 and 92 in three tests and wants an average of at least 85 over four tests. If x is her fourth score, (78 + 85 + 92 + x)/4 ≥ 85, so 255 + x ≥ 340 and x ≥ 85.
Solving a word problem with an inequality
- Name the unknown say what x stands for and its allowed values
- Translate below → <, at most → ≤, at least → ≥
- Solve reverse the sign if you multiply or divide by a negative
- Interpret round to whole numbers if the context needs it
Quadratic functions and completing the square
A quadratic function is P(x) = ax² + bx + c with real constants and a ≠ 0. A number t with P(t) = 0 is a zero of P. Any quadratic can be rewritten as a(x − k)² + d. Factor out a: P(x) = a[x² + (b/a)x + c/a]. Add and subtract the square of half the x-coefficient, (b/2a)²: P(x) = a[(x + b/2a)² − b²/4a² + c/a] = a(x + b/2a)² + (4ac − b²)/4a. The constant (4ac − b²)/4a is exactly P(−b/2a), so
P(x) = a(x + b/2a)² + P(−b/2a), and the zeros of ax² + bx + c are x = (−b ± √(b² − 4ac))/2a.
To get the formula, set P(x) = 0: a(x + b/2a)² = (b² − 4ac)/4a, so (x + b/2a)² = (b² − 4ac)/4a². Taking square roots (possible when b² − 4ac ≥ 0) gives x + b/2a = ±√(b² − 4ac)/2a. Here √u always means the non-negative root, defined only for u ≥ 0.
The discriminant
| D = b² − 4ac | Nature of roots | Graph y = ax² + bx + c |
|---|---|---|
| D > 0 | two real, distinct roots | cuts the x-axis at two points |
| D = 0 | two real, equal roots | touches the x-axis at one point |
| D < 0 | no real roots | does not meet the x-axis |
When D < 0 the roots are complex numbers, (−b ± i√(4ac − b²))/2a with i² = −1, studied in Class 12. If α and β are the roots of ax² + bx + c = 0, then α + β = −b/a and αβ = c/a, and a quadratic with roots α and β is x² − (α + β)x + αβ = 0.
Worked example 4: completed square and discriminant
Write x² − 6x + 13 in completed-square form. Half of −6 is −3, so x² − 6x + 13 = (x − 3)² − 9 + 13 = (x − 3)² + 4. Since (x − 3)² ≥ 0, the value is always at least 4, so the parabola never meets the x-axis. This agrees with D = 36 − 52 = −16 < 0.
Worked example 5: sum and product of roots
If α and β are the roots of 2x² − 5x + 1 = 0, then α + β = 5/2 and αβ = 1/2. So 1/α + 1/β = (α + β)/αβ = (5/2)/(1/2) = 5, and α² + β² = (α + β)² − 2αβ = 25/4 − 1 = 21/4. A quadratic with roots 3 and −5 is x² − (−2)x + (−15) = x² + 2x − 15 = 0.
Worked example 6: equal roots and a given difference
(i) For which k does x² − (k + 1)x + 4 = 0 have equal roots? We need D = (k + 1)² − 16 = 0, so k + 1 = ±4, giving k = 3 or k = −5. (ii) The roots of x² − px + 12 = 0 differ by 1. Find p. Using (α − β)² = (α + β)² − 4αβ: 1 = p² − 48, so p² = 49 and p = ±7. Check p = 7: x² − 7x + 12 = (x − 3)(x − 4), roots 3 and 4.
Worked example 7: a quadratic with a modulus
Solve x² + |x − 2| = 4. Case x ≥ 2: |x − 2| = x − 2, so x² + x − 6 = 0, (x + 3)(x − 2) = 0, giving x = 2 (x = −3 is rejected as it is not ≥ 2). Case x < 2: |x − 2| = 2 − x, so x² − x − 2 = 0, (x − 2)(x + 1) = 0, giving x = −1 (x = 2 is rejected here). So there are two solutions, −1 and 2. Check: 1 + 3 = 4 and 4 + 0 = 4.
Key takeaways: solve linear inequalities like equations but reverse the sign when multiplying by a negative; a system is solved by intersecting the separate solution sets; completing the square gives the vertex form and the quadratic formula; D = b² − 4ac decides the roots; and α + β = −b/a, αβ = c/a often avoid solving the equation at all.
Check your understanding
-
1. What is the solution set of 7 − 2x > 3x − 8?
- (3, ∞)
- (−∞, 3)
- (−∞, −3)
- (−3, ∞)
Show answer
Answer: B. Add 2x and add 8: 15 > 5x, so x < 3. The solution set is (−∞, 3).
-
2. What is the nature of the roots of 4x² − 12x + 9 = 0?
- Real and distinct
- Not real
- Real and equal
- One real and one not real
Show answer
Answer: C. D = (−12)² − 4 × 4 × 9 = 144 − 144 = 0, so the roots are real and equal. Indeed 4x² − 12x + 9 = (2x − 3)², with the root 3/2 repeated.
-
3. If α and β are the roots of x² − 7x + 10 = 0, what is α² + β²?
- 49
- 39
- 20
- 29
Show answer
Answer: D. α + β = 7 and αβ = 10. So α² + β² = (α + β)² − 2αβ = 49 − 20 = 29. (The roots are 2 and 5, and 4 + 25 = 29.)
-
4. For which values of k does x² + kx + 16 = 0 have equal roots?
- k = 8 or k = −8
- k = 4 only
- k = 16 or k = −16
- k = 8 only
Show answer
Answer: A. Equal roots need D = k² − 64 = 0, so k² = 64 and k = 8 or k = −8.
-
5. Which is the completed-square form of x² + 8x + 11?
- (x + 4)² + 11
- (x + 4)² − 5
- (x + 8)² − 53
- (x − 4)² − 5
Show answer
Answer: B. Half of 8 is 4: x² + 8x + 11 = (x + 4)² − 16 + 11 = (x + 4)² − 5. Expanding (x + 4)² − 5 gives x² + 8x + 16 − 5 = x² + 8x + 11.
Sign in to keep track of the lessons you finish.