Quadratics and parabolas
A quadratic is , where , and are numbers and . With it would be the line of lesson 1.2.1. Its graph is a U-shaped curve called a parabola.
Here is at seven inputs.
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | |
|---|---|---|---|---|---|---|---|
| 5 | 0 | 0 | 5 |
The values fall, turn at , then climb back in mirror image. The turning point is the vertex.
The vertical line through it is the axis of symmetry. Inputs the same distance either side, such as 2 and 4, give the same output.
The vertex answers two questions at once: how small can the quadratic get, and at which input? For the smallest value is , at . In the words of lesson 1.1.1, its range is .
Three things can be read off the formula before any working.
- The sign of . If the parabola opens upwards and the vertex is its lowest point. If it opens downwards and the vertex is its highest point.
- The size of . As in lesson 1.1.2, is a narrower stretch of , and a wider one.
- The value of . At the quadratic equals , so is the -intercept. Here it is .
Try it
The cell rebuilds the table. The outputs are symmetric about , where the lowest one, , sits.
Completing the square
A table finds the vertex only when it lands on an input you tried. Completing the square finds it exactly. Lesson 1.1.1 used it once, to write as .
Completing the square rewrites a quadratic as . That is stretched by , moved right and up (lesson 1.1.2), so its vertex is .
The method rests on one square: . Its term is , twice the in the bracket. So halving the coefficient of gives the number to put in the bracket.
- 1
- 2
- 3
A square is never negative, so is never below . It equals exactly when , at . So the vertex is , as the table showed.
Completing the square writes as : the graph of moved 3 right and 4 down. Its roots, 1 and 5, sit 2 either side of the axis , and mirrors .
When is not 1
For , take the 2 out of the two terms first: . Inside the bracket, half of is , so . Then multiply back out:
The vertex is . Note that the inside the bracket was multiplied by 2.
When is negative
For , take out to leave , then complete the square inside as before:
Now the square is subtracted, so the value is never above 9. The vertex is a maximum, and the parabola opens downwards, as says.
When half of is a fraction
For , half of 3 is 1.5, and . Taking 2.25 away and adding 1 gives . The bracket is , so the vertex is , to the left of the -axis.
The same steps work for any quadratic. Taking out leaves in the bracket, and half of is . So the square is , and the vertex is at .
Rule: Vertex form
The vertex is : the lowest point if , the highest if . Instead of the formula for , you can put back into the quadratic.
Try it
SymPy multiplies each completed square back out, so each line should match the quadratic it came from. The last shows decimals (3.0) because 1.5 is typed as a decimal.
The loop then uses the rule and puts back in for . It finds the four vertices of this section.
Roots
The roots of a quadratic are the solutions of . They are where the parabola meets the -axis: its zeros, from lesson 1.1.1. The completed square leads straight to them.
Example 1. gives . Both 2 and square to 4, so . The roots are and , the two zeros in the table.
The roots sit either side of the axis by the same distance: and . Every quadratic with two roots has this mirror pattern.
Example 2. gives , so . Since , the roots are about 0.4189 and 3.5811. A table of whole numbers would never land on them.
The same steps, done once on with letters, give a formula for every quadratic.
Rule: Quadratic formula
The gives two answers, one with and one with . Their midpoint is , the axis of symmetry, and they sit the same distance either side of it.
For , the number under the root is , so . Since , that is again.
Two roots, one or none
The number under the square root, , is the discriminant. Its sign says how many real roots there are.
- Positive: two roots. For it is , and the roots are 1 and 5.
- Zero: one root. is . Its discriminant is , and the vertex touches the axis at the single root 3.
- Negative: no real roots. is , never below 4. Its discriminant is .
For the height of the vertex decides: below the axis gives two roots, on it one, above it none. The sign of says the same.
A negative discriminant would need the square root of a negative number, which has no real value (lesson 1.1.1). Lesson 1.7.2 gives such roots a meaning, as complex numbers.
Try it
The loop prints the discriminant of for the three curves above.
Then it applies the formula to , rounded to 4 places. np.roots takes the coefficients [a, b, c] and lists the larger root first. For a negative discriminant it returns complex numbers, written with j.
Lesson 1.3.1 shows how each root gives a factor. Case study 1.2.4 uses the vertex to find the least risky mix of two assets.
Common mistakes
- The vertex is at , minus sign included. For that is . And puts the vertex at .
- Keep the balance. brings in an extra 9, so take 9 away: .
- Take out first, then multiply back. is , not .
- Minimum or maximum depends on the sign of . has a highest value, 9, and no lowest.
- has two solutions. Both and count.
- Divide all of by , not just the square root.
- A negative discriminant means no real roots. Do not drop its minus sign to force a square root.
- With there is no quadratic. The formulas would divide by zero; solve the line instead.
Quadratics
0 of 12 correct
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
How to type answers
- Powers with
^:x^7,2^(1/3),a^-2. - Multiply with
*or by writing side by side:3x^2,2(x+1). ln(x)is the natural log,log(x, 2)is log base 2,eis Euler's number,sqrt(x)is a square root.sin(x),cos(x)andtan(x)take radians; writepifor π andsin(x)^2for sin²x.- Your first answer to each question is saved: it counts towards your score and brings the question back for review.
- Exact answers like
ln(20)/ln(3)are best. Decimals need about 4 significant figures.
Summary card
- with draws a parabola. It opens upwards when ; is the -intercept.
- The vertex is the lowest point (if ) or the highest (if ), at . The axis of symmetry is the vertical line through it.
- Completing the square writes the quadratic as , with vertex . Take out first, and halve the coefficient of .
- Roots: , the same distance either side of the axis.
- The discriminant : positive gives two roots, zero one, negative none.