Definition: quadratic functionA quadratic function is a function of the form
f(x)=ax2+bx+cwhere a=0
a
Coefficient of x2. Must not be zero.
b
Coefficient of x. May be any number, including 0.
c
Constant term. May be any number, including 0.
Why a cannot be 0If a=0 the term ax2 disappears and f(x)=bx+c, which is a straight line of Week 2, not a quadratic. The curve representing any quadratic function is always a parabola.
Figure 1. A parabola: the graph of f(x) = x² + 2x − 24, with its axis of symmetry, vertex and intercepts (all explained in this week's notes)
1.1Reading a, b and c
Example 1: identify a, b and c
Write each function in the form ax2+bx+c and read off a, b, c.
Function
a
b
c
x2+2x−24
1
2
−24
4x2+9x−9
4
9
−9
−x2−2x+24
−1
−2
24
2x2−8
2
0 (no x term)
−8
Take the sign with the number: in (iii) the coefficient of x2 is −1, and in (iv) b=0 because there is no x term. The functions (i) and (ii) are the ones these notes use for all examples; (iii) and (iv) are extra illustrations.
These four points (0,−24), (4,0), (−6,0) and (−1,−25) are the y-intercept, the two x-intercepts and the vertex of Figure 1. Note that f(0)=c always, so c is where the curve meets the y-axis.
1.3Going deeper
Three numbers fix the parabola. Change a and the curve gets wider, narrower or flips; change c and it slides up or down; b moves it sideways and up or down together (extra remark).
Always one y-intercept.f(0)=c, so a quadratic function meets the y-axis exactly once, at (0,c).
Name the type first. If a problem gives x2+2x=24, move everything to one side to see a, b, c before doing anything else.
Exam tips
Write a,b,c with their signs before using any formula.
If the x term is missing, b=0; if the constant is missing, c=0.
Common mistakes
Dropping the minus sign of a or c.
Taking a=0 for something like 2x−3 and still calling it a quadratic.
Definition: axis of symmetryAll parabolas have an axis of symmetry: if the graph paper is folded along it, the two sides of the parabola match exactly.
Definition: vertexThe point at which the axis of symmetry meets the parabola is the vertex.
Axis of symmetry: x=2a−b
x-coordinate of the vertex. Compute x=2a−b.
y-coordinate of the vertex. Put this x into the function: y=f(2a−b).
Figure 2. Folding along x = −1 matches every point with its mirror image: the pairs (−3, −21) and (1, −21), (−4, −16) and (2, −16), (−6, 0) and (4, 0) share the same height and sit the same distance either side of the axis
Reading the diagram
Each pair of points at the same height has x-values −1−t and −1+t, so the axis x=−1 sits exactly halfway between them. The vertex is the one point that is its own mirror image.
2.3Why the formula works
Completing the square (Chapter 7) gives
ax2+bx+c=a(x+2ab)2+(c−4ab2)
The bracket squared is never negative and is zero exactly when x=2a−b. So the curve is symmetric about that line, and the vertex has height c−4ab2, which agrees with f(2a−b). The lecture states the axis and vertex formulas without proof; this short derivation is added to show where they come from.
2.4Going deeper
The axis is a vertical line, so it is written x=…; the vertex is a point, written as a pair.
Quick check. The vertex of x2+2x−24 is the midpoint of its x-intercepts −6 and 4: 2−6+4=−1 (see Chapter 8).
Fractions are normal. The vertex of 4x2+9x−9 is (−89,−16225); keep it as a fraction and convert to a decimal only at the end.
Exam tips
Do the two steps in order: x first, then f(x).
Substitute into the original function, not into the slope.
Common mistakes
Forgetting the minus in −b when b is already negative.
The sign of a decides which way the parabola opens.
a > 0: upward parabola
Opens towards the positive y-axis and has a minimum value.
a < 0: downward parabola
Opens towards the negative y-axis and has a maximum value.
Figure 3. Two parabolas: a > 0 (left, a = 1) and a < 0 (right, a = −1). The dashed line is the axis of symmetry in both
Reading the diagram
On the left the curve rises on both sides of the vertex, so the vertex is the lowest point: the minimum. On the right the curve falls on both sides, so the vertex is the highest point: the maximum. The right-hand function is the left-hand one with every sign reversed, so it is the reflection in the x-axis.
3.1Minimum and maximum values
Definition: minimum or maximum valueThe vertex is the turning point of the parabola. Its y-coordinate f(2a−b) is the minimum value of f when a>0 and the maximum value when a<0. It is attained at x=2a−b.
a > 0
a < 0
Shape
Upward parabola
Downward parabola
Opens towards
positive y-axis
negative y-axis
Turning point
minimum value
maximum value
Value at the vertex
lowest value of f
highest value of f
Example 5: minimum or maximum?
For each function decide whether it has a minimum or a maximum, and find its value and where it occurs: (i) x2+2x−24, (ii) 4x2+9x−9, (iii) −x2−2x+24.
(i) a=1>0, so a minimum. It occurs at x=−1 and equals f(−1)=−25.
(ii) a=4>0, so a minimum. It occurs at x=−89 and equals −16225=−14.0625.
(iii) a=−1<0, so a maximum. The axis is x=2(−1)−(−2)=−1 and the maximum value is f(−1)=−1+2+24=25.
So (i) never goes below −25, (ii) never goes below −14.0625, and (iii) never goes above 25. These three computations apply the rule with the vertex formula.
3.2Going deeper
Range of the function. For a>0 the values of f are all numbers from the minimum upwards; for a<0, all numbers from the maximum downwards. For (i) that is f(x)≥−25 (extra remark).
Optimisation. Questions like “the least cost” or “the greatest height” of a quadratic are asking for the vertex value.
Minimum value is a y-value. Say where it occurs (x) and what it is (y) separately.
Exam tips
Look at the sign of a first: it settles minimum or maximum before any calculation.
Common mistakes
Quoting the x-value of the vertex as the minimum value.
Definition: slope of a quadraticFor f(x)=ax2+bx+c with a=0, the slope of f at any given point (x,f(x)) is
slope=2ax+b
A straight line has one slope everywhere. A parabola bends, so its slope changes from point to point; the formula 2ax+b gives the slope at each x (the slope of the tangent line touching the curve there).
4.1Worked examples
Example 6: slope of x² + 2x − 24
a=1, b=2, so the slope at x is 2(1)x+2=2x+2.
Substitute:
x
−6
−5
−3
−1
0
1
3
4
Slope 2x + 2
−10
−8
−4
0
2
4
8
10
Figure 4. Tangent lines at x = −5, −1 and 3: slopes −8, 0 and 8
Reading the diagram
Left of the vertex the curve falls, so the slope is negative (the red tangent, slope −8). At the vertex the tangent is flat, slope 0 (yellow). Right of the vertex the curve rises, so the slope is positive (green, slope 8). The steeper the curve, the larger the size of the slope.
Example 7: slope of 4x² + 9x − 9
Find the slope at x=−3,−89,0 and 43.
a=4, b=9, so the slope is 8x+9.
Substitute:
x
−3
−9/8
0
3/4
Slope 8x + 9
8(−3) + 9 = −15
8(−9/8) + 9 = 0
9
8(3/4) + 9 = 15
4.2What the slope tells us
Slope zero: the vertex
Put x=2a−b into 2ax+b: 2a⋅2a−b+b=−b+b=0. The slope is zero exactly at the vertex, which is why the vertex is the minimum or maximum.
Sign of the slope: rising or falling
For a>0 the slope 2ax+b is negative to the left of the vertex and positive to the right. For a<0 it is the other way round.
The lecture gives only the formula 2ax+b. The two observations above are direct consequences of it, using the vertex formula of Chapter 2.
4.3Going deeper
A straight line is the special case. With a=0 the formula 2ax+b becomes just b, the constant slope of bx+c from Week 2.
The slope changes by 2a per unit. In 2x+2 it grows by 2 each step: −8,−6,…. The bigger ∣a∣, the faster the curve bends (extra remark).
Use it to find the vertex. Set 2ax+b=0 and solve: you get x=2a−b again.
If a quadratic function is set equal to a value, the result is a quadratic equation.
Standard form
If ax2+bx+c=0 with a=0 and a,b,c integers, the quadratic equation is said to be in standard form.
Roots
The solutions of the equation are called the roots of the equation.
Zeros
The zeros of f are the x-intercepts of its curve; they are the solutions of f(x)=0.
So one method for finding the roots of ax2+bx+c=0 is to find the zeros of the quadratic function f(x)=ax2+bx+c.
5.1Putting an equation in standard form
Example 8: standard form
Write (i) x2+2x=24 and (ii) 4x2+9x=9 in standard form and read off a, b, c.
(i) Subtract 24 from both sides: x2+2x−24=0, so a=1, b=2, c=−24.
(ii) Subtract 9 from both sides: 4x2+9x−9=0, so a=4, b=9, c=−9.
5.2Roots and the graph
The equation x2+2x=24 says: the function x2+2x has value 24. Its solutions are the x-values where the curve is at height 24, that is, where the horizontal line y=24 meets it. Moving 24 to the left gives the same solutions as the x-intercepts of y=x2+2x−24.
Figure 5. Left: the line y = 24 meets the curve y = x² + 2x at x = −6 and x = 4. Right: the roots of 4x² + 9x − 9 = 0 are the x-intercepts −3 and 3/4; the vertex (−9/8, −225/16) lies on the axis halfway between them
Reading the diagrams
A root is a value of x, not a point: it is the x-coordinate where the curve meets the x-axis. A parabola can cut the x-axis twice, touch it once, or miss it; this is why a quadratic equation has two, one or no real roots (Chapter 8). The slides solve the equations algebraically, by three methods, in the next chapters.
5.3Going deeper
Root, zero, x-intercept: one idea. For x2+2x−24 the numbers −6 and 4 are the roots of the equation, the zeros of the function and the x-coordinates of the intercepts.
Why standard form first. Every method of the next chapters starts from ax2+bx+c=0; a root only appears when one side is zero.
Sum of the roots (extra remark).−6+4=−2=−ab and −3+43=−49=−ab: the roots add up to −ab, twice the axis.
Exam tips
Move every term to one side, keep a positive if you can, then read a,b,c.
Common mistakes
Subtracting from only one side.
Treating a root as a point (x,0) instead of the number x.
Zero Product PropertyZero Product Property. When the product of two factors equals zero, then at least one of the factors is zero.
6.1Steps
Write the equation in standard form (equal to 0).
Factor the polynomial.
Use the Zero Product Property to set each factor equal to zero.
Solve each resulting linear equation.
How to split the middle termFor ax2+bx+c find two numbers whose product is ac and whose sum is b; write bx as the sum of two terms with those coefficients and factor by grouping. In (i) below ac=−24 and the numbers 6 and −4 have sum 2; in (ii) ac=−36 and the numbers 12 and −3 have sum 9.
6.2Lecture examples
Example 9: solve x² + 2x = 24 by factoring
Standard form.x2+2x−24=0.
Factor. Split 2x as 6x−4x:
Zero Product Property.x−4=0 or x+6=0.
Solve.x=4 or x=−6.
x2+6x−4x−24=0⇒x(x+6)−4(x+6)=0⇒(x−4)(x+6)=0
Check.42+2(4)=24 and (−6)2+2(−6)=36−12=24. Both work.
Example 10: solve 4x² + 9x = 9 by factoring
Standard form.4x2+9x−9=0.
Factor. Split 9x as 12x−3x:
Zero Product Property.4x−3=0 or x+3=0.
Solve.x=43 or x=−3.
4x2+12x−3x−9=0⇒4x(x+3)−3(x+3)=0⇒(4x−3)(x+3)=0
Check.4(43)2+9⋅43=49+427=9 and 4(9)+9(−3)=36−27=9.
6.3Going deeper
Why the right side must be 0. The Zero Product Property says nothing about a product equal to 24: (x−1)(x+3)=24 does not mean a factor is 24 or 0. Always move everything to one side first.
Finding the split. For x2+2x−24, list pairs with product −24: 1,−24; −1,24; 2,−12; −2,12; 3,−8; −3,8; 4,−6; −4,6. Only −4,6 adds to 2.
Always check by expanding.(x−4)(x+6)=x2+6x−4x−24=x2+2x−24. If this does not return the original, the factoring is wrong.
When factoring is hard. It works when the polynomial can be factored into nice integers. When it cannot, use completing the square or the quadratic formula.
Exam tips
Substitute each root back into the original equation.
For a root like 43, the factor is 4x−3, not x−43 with a stray 4.
Common mistakes
Setting a product equal to a non-zero number and splitting into factors.
Dropping the sign when reading the root from a factor: x+6=0 gives x=−6.
Figure 6. Why x² + 2x + 1 is a perfect square: the missing yellow corner of area 1 completes the square of side x + 1
Reading the diagram
The blue square x2 and the two strips x make x2+2x. They form a larger square with one corner missing. Adding the corner (area 1) gives a square of side x+1, so x2+2x+1=(x+1)2. Add 1 to complete the square, and take 1 away again to keep the equation balanced.
7.1Steps
Transform the equation so that a perfect square is on one side and a constant is on the other.
Take the square root of each side. Remember that the square root of a constant gives a positive and a negative value.
Solve each resulting equation. (If you are taking the square root of a negative number, there is no real solution.)
7.2Lecture examples
Example 11: solve x² + 2x = 24 by completing the square
Add and subtract 1 (half of 2, squared): x2+2x+1−1=24.
Perfect square.(x+1)2=25⇒x+1=±25.
x+1=+5 or x+1=−5.
x=4 or x=−6.
Example 12: solve 4x² + 9x = 9 by completing the square
Write 4x2 as (2x)2 and 9x as 2⋅2x⋅49, then add and subtract (49)2=1681:
The first three terms are a perfect square, and 9+1681=16225:
If the right-hand side after completing the square is negative, there is no real solution because a real square is never negative. For example x2+2x+5=0 becomes (x+1)2=−4, which has no real solution. The slides state the rule without an example; this equation is an illustration.
7.4Going deeper: the general recipe
Make the coefficient of x2 equal to 1 (or write ax2 as a square, as in Example 12).
Half the coefficient of x, squared. For x2+2x it is (22)2=1. Add and subtract it.
The same idea finds the vertex.x2+2x−24=(x+1)2−25, so the vertex is (−1,−25) (extra remark).
Do not forget the ±. Dropping the negative root loses half the answer.
Exam tips
Check both roots in the original equation.
A negative right-hand side means stop: no real solution.
Quadratic formulaThe roots of ax2+bx+c=0 can be found directly from the quadratic formula
x=2a−b±b2−4ac
The expression b2−4ac is called the discriminant.
8.1Number of real roots
Value of the discriminant
Number of real roots
b2−4ac>0
two real roots
b2−4ac=0
one real root
b2−4ac<0
no real roots
Figure 7. The discriminant tells how the parabola meets the x-axis: twice, once (touching), or not at all. Illustrations: x² + 2x − 24, x² − 4x + 4, x² + 2x + 5
Reading the diagrams
With a positive discriminant the parabola crosses the x-axis at two points. With zero it just touches the axis at its vertex, giving one root. With a negative discriminant the whole curve stays on one side of the axis and never reaches it. The slides give the table only; the three graphs, and the equations x2−4x+4=0 (discriminant 0, root x=2) and x2+2x+5=0 (discriminant −16), are illustrations of its three rows.
8.2Lecture examples
Example 13: solve x² + 2x − 24 = 0 by the formula
a=1, b=2, c=−24.
Discriminant.b2−4ac=22−4(1)(−24)=4+96=100>0, so two real roots.
Substitute.x=2−2±100=2−2±10.
x=2−2+10=4 or x=2−2−10=−6.
Example 14: solve 4x² + 9x − 9 = 0 by the formula
a=4, b=9, c=−9.
Discriminant.b2−4ac=92−4(4)(−9)=81+144=225>0, so two real roots.
Substitute.x=8−9±225=8−9±15.
x=8−9+15=43 or x=8−9−15=−3.
8.3The same equations by all three methods
Figure 8. One equation, three routes to the same roots
Equation
Factoring
Completing the square
Formula
Roots
x2+2x=24
(x−4)(x+6)=0
(x+1)2=25
discriminant 100
4 and −6
4x2+9x=9
(4x−3)(x+3)=0
(2x+49)2=16225
discriminant 225
3/4 and −3
8.4Check with the vertex
The axis of symmetry lies halfway between the two roots. For the first equation, 24+(−6)=−1, the axis found in Chapter 2. For the second, 243+(−3)=−89, again the axis. The formula shows why: the two roots are 2a−b±2ab2−4ac, equally spaced about 2a−b. At each root the slope 2ax+b equals ±b2−4ac: ±10 for the first equation and ±15 for the second. This check follows from the formulas; it is not on the slides.
8.5Where the formula comes from
Start from ax2+bx+c=0, complete the square as in Chapter 2, and take square roots:
This also explains the table: the square root is real only when b2−4ac≥0, and it vanishes when b2−4ac=0, leaving a single root. This derivation is added to show where the formula and the discriminant table come from; the slides state them directly.
8.6Going deeper
Compute the discriminant first. It tells you whether to expect real roots before you take any square root. A perfect-square discriminant (100, 225) means the roots are rational and the equation factors.
Which method? Factoring is fastest when the numbers are nice; completing the square shows the vertex; the formula always works.
Parentheses with negative b and c. Write −b as −(2)=−2 and 4ac with its signs: 4(1)(−24)=−96, so b2−4ac=4+96.
Exam tips
Write a,b,c first, then the discriminant, then the roots.
Check the roots with the axis: their average should be 2a−b.
Common mistakes
Putting only b (not −b) in the numerator.
Dividing only the square root by 2a, not the whole numerator.
Forgetting that a negative discriminant means no real roots.