Educerie · IB Diploma · Mathematics: analysis and approaches
IB Mathematics AA 2.6 · SL and HL
The quadratic function
The same quadratic can be written three ways, so which way shows which feature of its graph, and how do you move between them?
What you will learn
Know that the graph of a quadratic is a parabola, and how the sign and size of a set its shape.
Understand which feature each form shows: (0, c) from standard form, (p, 0) and (q, 0) from factorised form, (h, k) from vertex form.
Know that the axis of symmetry is x = −b ÷ 2a, halfway between the x-intercepts.
Understand how to move between the three forms by expanding, factorising and completing the square.
You must be able to
Express a quadratic in the form a(x − h)² + k by completing the square, including when a is not 1.
Write down the vertex, axis of symmetry and intercepts from the form you are given.
Find the equation of a parabola from its vertex, its intercepts or points on it.
Sketch a parabola, labelling the vertex and the intercepts with both axes.
Find a greatest or least value in context, such as a maximum height or area.
Describe the transformation from y = x² and state the range of a quadratic.
In the exam. Paper 1 Section A, very often: "write f(x) in the form a(x−h)2+k" (3 marks), "write down the coordinates of the vertex" (1 mark), "find the equation of the graph" from a sketch (4 to 5 marks). Paper 1 Section B uses the forms as the opening to a longer question on transformations (2.11) or calculus. Paper 2 sets quadratics in context, a ball, a bridge, a fence, where the vertex is the greatest height or the largest area.
1The simplest parabola, and what a does
Start from y=x2. A square is never negative, and 3 and −3 give the same output. So the curve lies on or above the x-axis and mirrors itself in the y-axis. The vertex is the origin, and every other point is higher.
Multiplying by a constant a changes the curve in two ways, shown in Figure 1.
Figure 1 · What the coefficient a does
The sign of a sets the direction
For a>0, the parabola opens upwards. The vertex is the lowest point, a minimum.
For a<0, every output flips sign and the parabola opens downwards. The vertex is the highest point, a maximum.
The size of a sets the width
At x=2, y=3x2 reaches 12 but y=0.4x2 only 1.6. A large ∣a∣ gives a steep, narrow curve. A small ∣a∣ gives a wide, shallow one.
In the language of 2.11, a is a vertical stretch of y=x2 by scale factor ∣a∣. If a is negative there is also a reflection in the x-axis.
The value of a is the same in all three forms. So in any form you know which way up the graph is and roughly how steep.
2The vertex form, a(x−h)2+k
The vertex formf(x)=a(x−h)2+k names the vertex outright: it is (h,k). The axis of symmetry is the line x=h.
The reason is quick. The bracket is squared, so (x−h)2≥0, with equality only at x=h. When a>0, a(x−h)2 is smallest (zero) there, so f is smallest with value k. When a<0, the same argument gives a largest value.
Take f(x)=(x−3)2−4. The bracket is zero at x=3, so the lowest point is (3,−4).
Figure 2 shows another way to see it. The graph is y=x2 slid 3 units right and 4 units down. That carries the vertex from (0,0) to (3,−4).
Figure 2 · Vertex form moves the vertex of y = x²
Mind the signs.
The bracket (x−3) gives h=3, and (x+3) gives h=−3. The horizontal shift is the opposite of what is written.
The k outside the bracket keeps its sign: +k lifts the graph.
Reading everything off. Let g(x)=−2(x+1)2+9.
a=−2<0opens downwardsvertex (−1,9)h=−1, k=9; a maximumaxis: x=−1g(0)=−2(1)2+9=7y-intercept (0,7)
Range
For g with all real x, the largest output is 9 and the graph runs down forever. So the range is g(x)≤9. For f(x)=(x−3)2−4 the range is f(x)≥−4, or in interval notation [−4,∞[.
The domain of a quadratic is all reals unless restricted, and a restriction can change the range. Take u(x)=(x+2)2−9.
On −4≤x≤1, the vertex (−2,−9) is inside the domain, so the least value is −9. The greatest is at an end: u(−4)=−5 and u(1)=0. The range is −9≤u(x)≤0.
On 0≤x≤3, the vertex is outside and the function only rises. The range runs from u(0)=−5 up to u(3)=16.
Always test the ends of the domain as well as the vertex.
Rising and falling
The vertex splits the graph in two. For a>0, f is decreasing for x<h and increasing for x>h. For a<0 the roles swap. State the answer as an inequality in x, never in y.
Questions often join this to the sign of the function. For u(x)=(x+2)2−9, u is negative when (x+2)2<9, that is −5<x<1. It is decreasing for x<−2. Both at once: −5<x<−2.
Describing the transformation
The vertex form is the transformation of y=x2 written out. First a vertical stretch by factor ∣a∣ (with a reflection in the x-axis if a<0). Then a translation by the vector (hk).
y=2(x−6)2+5: vertical stretch with scale factor 2, then translation by (65).
y=−21(x+5)2−2: reflection in the x-axis, vertical stretch with scale factor 21, then translation by (−5−2).
When a=1 the translation is the whole answer. Say translation (or shift), not "move", and always give the vector. From standard form, complete the square first (next section).
3Completing the square
Most quadratics arrive in standard form. Completing the square turns them into vertex form, the conversion examined most.
The idea: (x+m)2=x2+2mx+m2. So half the coefficient of x is the number inside the bracket. Its square is what you add and then take away.
When a=1. Halve the x-coefficient, square it, add and subtract it.
x2−10x+172−10=−5,and (−5)2=25=x2−10x+25−25+17=(x−5)2−8half the x-coefficient, squaredadd and subtract 25vertex (5,−8)
An odd coefficient just gives fractions: x2+3x−1=(x+23)2−413.
When a=1. Take a out of the x2 and x terms only. Complete the square inside the bracket, then multiply the correction back out.
3x2+18x+4=3(x2+6x)+4=3[(x+3)2−9]+4=3(x+3)2−27+4=3(x+3)2−23factor 3 from the first two terms onlyx2+6x=(x+3)2−9the 3 multiplies the −9 toovertex (−3,−23)
The slip to dread is on the third line. The −9 sits inside a bracket that is multiplied by 3, so it becomes −27.
A negative a is the same method with a negative factor, so the correction changes sign twice.
−2x2+8x+3=−2(x2−4x)+3=−2[(x−2)2−4]+3=−2(x−2)2+8+3=−2(x−2)2+11−2 times −4 is +8vertex (2,11), a maximum
A route with no completing
Find the vertex first, then write the form. Take h=−2ab and k=f(h), and keep the same a.
For 3x2+18x+4: h=−3 and k=3(9)−54+4=−23. So 3(x+3)2−23, the same result. Use one route and check with the other, or by expanding.
Where the formula −2ab comes from. Complete the square on the general quadratic:
ax2+bx+c=a(x+2ab)2+c−4ab2vertex form with h=−2ab
So the axis is x=−2ab for every quadratic, whether or not it meets the x-axis.
4The standard form, ax2+bx+c
The standard form (also called the general form) gives two things straight away.
The y-intercept is (0,c). At x=0 only c is left.
The axis of symmetry is x=−2ab. This is in the formula booklet. Substitute the axis value back into f to get the y-coordinate of the vertex.
Take f(x)=2x2−8x+6, drawn in Figure 3. Here a=2, b=−8, c=6.
y-intercept: (0,6)the constant termx=−2ab=−2×2−8=2axis of symmetry, formula bookletf(2)=2(2)2−8(2)+6=8−16+6=−2vertex (2,−2)
As a>0, the vertex is a minimum: the least value of f is −2.
Figure 3 · The graph of y = 2x² − 8x + 6
Symmetry gives free points
The y-intercept (0,6) is 2 units left of the axis x=2. So there is a twin point (4,6), 2 units to the right. Plotting both makes a sketch symmetric for free.
The same mirror idea gives a second solution. If f(x)=k is solved by x=m, the other solution is the reflection of m in the axis x=h, namely 2h−m.
Example: x2−10x+9 has axis x=5. It is zero at x=1, so it is also zero at 2(5)−1=9.
A second example. For p(x)=−3x2−6x+9: a=−3, b=−6, c=9.
x=−2(−3)−6=−66=−1axis; watch the sign of bp(−1)=−3+6+9=12vertex (−1,12), a maximum since a<0twin of (0,9) is (−2,9)1 unit left of the axis
Reading the signs of a, b, c from a sketch
a is positive if the graph opens upwards, negative if downwards.
c is where the graph crosses the y-axis: positive above the origin, negative below, zero through it.
For b, use b=−2ah, from h=−2ab. Axis right of the y-axis: b has the opposite sign to a. Axis left: same sign as a. Axis on the y-axis: b=0.
Example: a parabola that opens upwards, with its axis right of the y-axis and crossing the y-axis below the origin, has a>0, b<0, c<0.
5The factorised form, a(x−p)(x−q)
The factorised form (the intercept form) shows where the graph meets the x-axis. A product is zero only when a factor is zero. So f(x)=0 exactly when x=p or x=q. The x-intercepts are (p,0) and (q,0).
Again the sign flips. (x−5) gives x=5. (x+1), which is (x−(−1)), gives x=−1.
The graph is symmetric, so the axis is halfway between the intercepts:
In a(x−p)(x−q), the x-intercepts are (p,0) and (q,0), and the axis of symmetry is x=2p+q.
Take f(x)=−(x+1)(x−5), drawn in Figure 4. Here a=−1, so it opens downwards.
x-intercepts: (−1,0) and (5,0)set each bracket to zeroaxis: x=2−1+5=2f(2)=−(3)(−3)=9vertex (2,9), a maximumf(0)=−(1)(−5)=5y-intercept (0,5)
Figure 4 · Factorised form: y = −(x + 1)(x − 5)
Another: q(x)=2(x−4)(x+6).
Intercepts: (4,0) and (−6,0).
Axis: x=−1.
q(−1)=2(−5)(5)=−50, so the vertex is the minimum (−1,−50).
q(0)=2(−4)(6)=−48, so the y-intercept is (0,−48).
Two special cases.
The graph only touches the x-axis. Then p=q and the form is a(x−p)2. There is one intercept (p,0), which is also the vertex. For 3(x+2)2 that is (−2,0).
The graph never reaches the x-axis. In y=x2+9, no real number makes the output zero. So there are no x-intercepts and no real factorised form. The discriminant in 2.7 detects this case.
6Moving between the forms
The guide expects you to convert freely. Figure 5 shows one parabola, y=2x2−4x−6, and what each form hands over.
Figure 5 · One parabola, three forms
You have
You want
Do this
Factorised or vertex
Standard
Expand
Standard
Factorised
Take out a, factorise
Standard
Vertex
Complete the square, or h=−2ab and k=f(h)
Factorised
Vertex
h=2p+q, k=f(h)
Vertex
Factorised
Solve a(x−h)2+k=0
Expanding always works. The two forms of Figure 5 both give the standard form:
Factorising. Take out the common factor first, then factorise the quadratic that is left.
4x2−8x−60=4(x2−2x−15)=4(x−5)(x+3)common factor firstproduct −15, sum −2
The intercepts are (5,0) and (−3,0).
The form a(x−p)(x−q) wants a outside and a bare x in each bracket. When a=1 and there is no common factor, factorise as usual, then pull the coefficients out:
3x2+10x−8=(3x−2)(x+4)=3(x−32)(x+4)ordinary factorisingthe 3 moves out of the first bracket5x2+15x=5x(x+3)=5(x−0)(x+3)no constant term: take out x
The intercepts of the first are (32,0) and (−4,0).
If a quadratic will not factorise by inspection, find its zeros with the formula or the GDC (2.7) and build the form from them.
Example: x2+8x+9 has zeros −4±7. So x2+8x+9=(x+4−7)(x+4+7).
Vertex to factorised: set to zero and solve
From 3(x−2)2−12=0: (x−2)2=4, so x=4 or x=0. Hence 3(x−2)2−12=3x(x−4). Expanding 3x2−12x+12−12 confirms it.
This only works when the parabola actually reaches the x-axis. If a and k have the same sign, as in 5(x+2)2+3, the equation has no real solution and there is no factorised form.
Factorised to vertex: no expanding needed. The axis is the average of the intercepts. The vertex height is f of that. For −3(x+1)(x−9): h=4 and k=−3(5)(−5)=75. So the vertex form is −3(x−4)2+75.
7Sketching a parabola
A sketch shows the shape and the labelled key points, not a plotted table. Use this routine:
Sign of a: which way it opens.
Vertex, from vertex form, or from −2ab and f(h).
y-intercept (0,c), and its twin across the axis.
x-intercepts if there are any: factorise or solve f(x)=0.
Draw a smooth, symmetric curve through the labelled points, with the axis dashed if asked.
Example with intercepts
Sketch f(x)=x2−2x−35. It opens upwards.
Factorising, f(x)=(x−7)(x+5). So the x-intercepts are (7,0) and (−5,0), and the axis is x=1. Then f(1)=1−2−35=−36, so the vertex is (1,−36). The y-intercept is (0,−35), with twin (2,−35).
Example with none
Sketch g(x)=x2+4x+7. Completing the square, g(x)=(x+2)2+3. The vertex (−2,3) is a minimum above the x-axis, so the graph never touches it.
The y-intercept is (0,7) with twin (−4,7). Note on the sketch that there are no x-intercepts.
8Finding the equation of a parabola
Choose the form that uses the given facts, so that only a, or very few unknowns, remain.
Vertex and one other point: vertex form. A parabola has vertex (3,10) and passes through (5,2).
y=a(x−3)2+10vertex put in2=a(5−3)2+10=4a+10the point (5,2)a=−2y=−2(x−3)2+10=−2x2+12x−8
x-intercepts and one other point: factorised form. A parabola meets the x-axis at 2 and 8, and the y-axis at 48.
The axis is x=5 and y=3(3)(−3)=−27, so the vertex is (5,−27).
Graph touches the x-axis: a(x−p)2. A parabola touches the x-axis at x=1 and passes through (3,20). Then y=a(x−1)2 and 20=4a, so a=5: y=5(x−1)2=5x2−10x+5.
Three points and nothing special: standard form. The graph of y=ax2+bx+c passes through (0,4), (1,1) and (3,13).
The vertex gives two: its x-coordinate is the axis, and f of that is its y-coordinate.
Example: f(x)=−x2+bx+c has vertex (2,7). The axis gives 2b=2, so b=4. Then f(2)=−4+8+c=7 gives c=3. Check in vertex form: −(x−2)2+7=−x2+4x+3.
On Paper 2, graph your equation to confirm it passes through the given points.
9Quadratics in context
A parabola describes anything thrown, and any quantity with its best value between two extremes. In context the vertex is usually the answer: the greatest height, the largest revenue, the least cost.
A ball is thrown upwards from a height of 1.5m. Its height in metres after t seconds is modelled by h(t)=−5t2+20t+1.5. Complete the square for the greatest height:
The vertex is (2,21.5) and a=−5<0, so it is a maximum: the ball reaches 21.5m after 2 seconds. The GDC maximum tool gives the same point.
Figure 6 shows the model on the domain where it makes sense. That runs from the throw at t=0 to the landing at t≈4.07s, the positive zero of h (found with 2.7 or the GDC).
Figure 6 · A thrown ball: h(t) = −5t² + 20t + 1.5
A revenue model. A climbing gym charges x dollars a session and sells 900−30x sessions a week, for 0<x<30. Weekly revenue is R(x)=x(900−30x)=−30x2+900x.
R(x)=−30(x2−30x)=−30[(x−15)2−225]=−30(x−15)2+6750vertex (15,6750)−30(x−15)2+6750=6000⇒(x−15)2=25⇒x=10 or 20
A price of 15 dollars earns the most, 6750 dollars a week. Prices of 10 and 20 both earn 6000, and both are inside the domain.
In context, give answers in the context's units and words: "21.5m after 2 seconds". Respect the domain: a negative time or a price above 30 solves the algebra, not the problem.
If asked what a point means, say it in the story. The vertex (2,21.5) is the greatest height and the time it happens. The y-intercept (0,1.5) is the height at the moment of the throw.
Practice questions
35 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.