Educerie · IB Diploma · Mathematics: analysis and approaches
IB Mathematics AA 2.7 · SL and HL
Quadratic equations and inequalities, and the discriminant
How do you solve any quadratic equation or inequality, and how can you tell how many solutions there are before you find them?
What you will learn
- Know three ways to solve a quadratic equation: factorising, completing the square and the quadratic formula.
- Understand that the discriminant b² − 4ac decides whether there are two distinct, two equal or no real roots.
- Know how to solve a quadratic inequality by finding the roots and reading the sign from a sketch.
- Understand how the discriminant answers questions with an unknown constant, tangents and 'for all x'.
You must be able to
- Find the values of k for which a quadratic equation has two distinct, two equal or no real roots.
- Solve a quadratic equation exactly by factorising, completing the square or the formula.
- Solve a quadratic inequality, giving the answer as one interval or two joined by 'or'.
- Find the condition for a line to be a tangent to, cut or miss a parabola.
- Show that a quadratic is positive for every real x.
- Solve an equation that is quadratic in 3ˣ, eˣ or x² by substitution, rejecting impossible values.
In the exam. Paper 1, constantly (117 of the 157 past IB questions counted on this unit): "solve", "find the exact solutions", "solve the inequality" (3 to 5 marks), "show that" (second only to "find", often the first step of a "hence" chain), and the classic discriminant question, "find the values of for which the equation has two equal real roots" (4 to 6 marks), which often hides a quadratic inequality in . The same discriminant reasoning turns up inside other topics: where a line meets a curve, "for all " and "is defined for every real " questions, and exponential equations that are quadratics in disguise. Paper 2 uses the GDC to solve quadratics that arrive from a context, a ball, a profit, a braking distance, where the question is when or for how long. HL Paper 3 (23 of the 157, more than Paper 2's 17) uses the same tools as steps inside a longer investigation: "show that the expression is positive for all " or "find the values of for which the equation has real roots" before the next part builds on the answer.
1Roots, zeros and solutions
The guide uses three words for the same numbers.
- The roots or solutions of the equation are the values of that make it true.
- The zeros of the function are the inputs that give output zero.
On the graph, both are the -coordinates of the -intercepts. A quadratic has at most two.
- Every method below starts from the same place: get zero on one side.
- The equation must become before you do anything else.
- The same goes for a fraction. In , multiply every term by (allowed, since cannot be a solution of the original).
- You get , then , then . So or .
- A check: the two roots add to and multiply to .
- For , and .
2Solving by factorising
- If a product of two numbers is zero, one of them must be zero.
- That fact, the zero product rule, turns a factorised quadratic into two linear equations.
When , look for the pair of numbers with product and sum , and split the middle term.
Two shortcuts:
- A common factor: gives .
- A difference of two squares: .
A trap
- From , dividing both sides by gives and loses a root.
- Rearrange instead: , so , and or . Never divide by an expression that could be zero.
Factorising only works when the roots are rational. If you cannot find the factors in half a minute, switch method. Section 5 says how to know in advance.
3Solving by completing the square
- The vertex form of 2.6 turns any quadratic equation into "something squared equals a number".
- Undo it with a square root, remembering both signs.
- When there is no -term at all, you are already there: gives .
- These are the exact roots.
- If a Paper 1 question says "exact", the decimals and lose the accuracy mark.
- Figure 1 shows why the method has its name.
- The expression is a square of side plus two strips of 3 by . Add the missing 3-by-3 corner, 9, and you have a complete square of side .
- When , take out of the and terms first.
- For : , so and .
4The quadratic formula
Completing the square on the general equation gives a formula for the roots of every quadratic. It is in the formula booklet:
, for , .
Write , and down first, with their signs.
Two sign errors cost marks, both in the second line.
- when is negative: .
- when is negative: the subtraction becomes an addition.
Brackets prevent both.
Where the formula comes from
- The guide lists this as enrichment, but seeing it once makes the formula easier to trust.
- Divide by , complete the square, and solve:
- The formula also shows why the axis of symmetry is (2.6).
- The roots are that value plus and minus the same amount.
Which method?
| The equation | Best method |
|---|---|
| factorises quickly (small whole-number coefficients), or has a common factor or is a difference of squares | factorising |
| asks for "exact" answers, or with an even | completing the square, or the formula |
| anything else on Paper 1 | the formula |
| any quadratic on Paper 2 | the GDC's polynomial solver or the zero tool, with a line of method |
On Paper 2 still write the equation you solved, in the form .
Background, not examined: quadratics are old. The guide points to a Babylonian way of multiplying by means of squares. It also points to the algebraic formulas for quadratic equations in the ancient Indian Sulba Sutras and the Bakhshali manuscript.
5The discriminant and the nature of the roots
The part of the formula under the square root, , is the discriminant, written . It decides everything about the roots, since you can only take the square root of a non-negative number.
- : two distinct real roots.
- The gives two different values.
- The parabola crosses the -axis twice.
- : two equal real roots (one repeated root, ).
- The adds and subtracts zero.
- The parabola touches the -axis at its vertex.
- : no real roots.
- There is no real square root of a negative number.
- The parabola misses the -axis entirely.
Figure 2 shows all three for parabolas that differ only in .
- : .
- : .
- : .
- For the nature of the roots, write the equation as .
- Give the value of , compare it with zero, and state the conclusion in words.
- Example: rearranges to , so . One repeated root, .
Two more facts are useful.
- A perfect square means rational roots.
- If is a perfect square ( ...) and , , are whole numbers, the roots are rational. The quadratic factorises.
- For , , and indeed works.
- fixes the sign.
- If , the parabola sits entirely above the -axis, so the quadratic is positive for every . If , it is entirely below, so the quadratic is negative for every .
- Example: for all , since and .
- Both facts are needed in a "show that".
- alone says only that the graph misses the axis, perhaps from below. Completing the square gives the same proof in one line: .
- When the roots are complex numbers (1.12, HL). At SL "no real roots" is the whole answer.
6Quadratic inequalities
A quadratic inequality such as asks for every where the parabola is above the -axis. The method is always the same three steps:
- Rearrange so that one side is zero.
- Solve the equation to find the critical values, the roots.
- Sketch the parabola through them and read off the part you want.
- Take . The roots of are and .
- The parabola opens upwards, so it is below the axis between the roots and above it outside them. Figure 3(a) shows it.
- The answer is or .
- Now . Rearrange: , which factorises as , with roots and .
- We want on or below the axis, which is between the roots: , as Figure 3(b) shows.
Three rules keep these answers right.
Inside or outside
- For , "" is always between the roots (one interval) and "" is always outside them (two pieces). For it is the other way round.
- Always draw the sketch, even small.
- When , either draw the downward parabola or multiply through by and flip the inequality sign.
- For the roots are and , and the answer is .
Two pieces are joined by "or". Write or , never , which is true for no number.
Strict or not
- A strict inequality ( or ) excludes the roots. A non-strict one ( or ) includes them.
- Mixing them up costs the accuracy mark.
When the parabola only touches the axis, or misses it. Some inequalities have one critical value or none. The sketch still decides:
- : the parabola touches the axis at and is never below it. The only solution is .
- has no solution.
- is true for every except the touching point: .
- , with and , is true for every real .
On Paper 2 the roots may be ugly, and the GDC does the root-finding. For , the zeros of are and (3 s.f.). The parabola opens upwards, so the answer is or .
If the inequality does not have zero on one side, you can graph the two sides as two separate curves. Find where they intersect, and read off the -values where one curve is above or below the other.
7Questions with an unknown coefficient
The most characteristic Paper 1 question here gives a quadratic with a letter in it. It asks for the values of that letter which give a certain kind of root. The discriminant answers it, often with the inequality skills of section 7.
Example. For the equation , find the values of for which it has (a) two equal real roots, (b) two distinct real roots, (c) no real roots.
Write , and down, then form and simplify it.
(a) Equal roots: , so or .
(b) Two distinct real roots: , so . That means , since dividing by flips the sign. That is between the roots: .
But is in that interval, and at the equation is . That is linear with only one root. So the answer is , .
(c) No real roots: , so , which is outside the roots: or .
Figure 4(a) shows one parabola of the family for each case. Figure 4(b) draws against , positive only between and 4.
"For every " with a parameter
- Find the values of for which for every real .
- Here , so the parabola opens upwards. It stays above the axis exactly when it has no -intercepts.
- The discriminant is itself a quadratic in :
- The strictness matters.
- At the expression is , zero at , so " for every " fails.
- For " for every " touching is allowed, so and .
The same idea answers other questions. Write the condition the quadratic must satisfy for all , then apply the discriminant.
- "The function is defined for every real ": the quadratic sits inside a logarithm or a square root.
- "The function is increasing": the quadratic is a derivative.
Tangents are the same question
- A line meets a curve where their equations are equal.
- If that gives a quadratic, the line is a tangent = it touches the curve at one point, exactly when .
- For which gradients is a tangent to ?
- Figure 5 shows the two tangents from .
- It also shows the line with , for which : it meets the curve at and .
Twice, once or never
- Setting the line equal to the curve gives a quadratic.
- Its discriminant answers every version of "how do they meet".
- : the line cuts the curve at two points.
- : it is a tangent.
- : it misses.
- When the question says "for every value of ", show that keeps one sign whatever is.
- Usually it is a square plus a positive number.
Example. Show that the line meets the curve at two distinct points for every real value of .
- Since , whatever is. So there are two distinct points of intersection.
- The reason, a square plus a positive number, is what earns the marks.
Show that, then hence
- Part (a) says "show that the discriminant is ...". Substitute into and expand so the printed result appears from your working.
- Part (b) says "hence": use the printed , even if you could not show it.
8Quadratics in disguise
Some equations are not quadratic in but are quadratic in an expression that contains . Replace that expression by a single letter, solve the quadratic, then undo the substitution.
Two kinds turn up:
- Even powers, such as and , with .
- Exponentials, with , because .
- The even-power kind works the same way.
- For , gives , so or .
Two marks are lost here:
- Stopping at and never returning to .
- Keeping a value of that the substitution cannot take. and are always positive, and is never negative.
The second matters most when a parameter is involved
- Take , with giving .
- Here is necessary but not enough. The roots add to , so for both are zero or negative, and has no solution.
- The equation has a real solution only when a root is positive.
- Here that means : the product of the roots is then negative, so exactly one root is positive.
9Quadratics in context
A ball is kicked upwards so that its height after seconds is metres. For how long is it at least above the ground?
This is a quadratic inequality: , or . On Paper 2, find where the graph of meets the line with the GDC, or use the formula:
- Figure 6 shows the arc above the line.
- Subtract the unrounded values, not , which can differ in the last figure.
- In any context, check that every root is in the domain: throw away a negative time.
- Other contexts work the same way.
- A rectangle 3 m longer than it is wide has area : , so . Then m, because a width cannot be negative.
Practice questions
47 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.