Skip to content
← Explore another subjectCambridge International AS & A Level · 9709

Completing the square: the vertex, the sketch and the range

Mathematics (9709) · Quadratics

ONE COMPLETE FREE SECTION

Your course level

This AS Level section is part of your AS Level course. The sample stays complete. Sign up when you’re ready to continue the unit.

0 highlighted

Completing the square: the vertex, the sketch and the range

Quadratics open Paper 1, Pure Mathematics 1, which every AS and A Level candidate sits.

You met quadratics at IGCSE; here the aim is speed and exactness, because almost every later Paper 1 topic (functions, coordinate geometry, calculus) leans on this algebra.

Completing the square rewrites a quadratic so that xx appears only once, inside a squared bracket.

That one change tells you the vertex of the graph, its line of symmetry and the least or greatest value of the expression, with no calculus at all.

The case a=1a = 1

Halve the coefficient of xx to get the number in the bracket, then subtract its square so that nothing has changed:

x2+bx+c=(x+b2)2−(b2)2+c.x^2 + bx + c = \left(x + \tfrac{b}{2}\right)^2 - \left(\tfrac{b}{2}\right)^2 + c.

For example, x2−6x+11x^2 - 6x + 11: half of −6-6 is −3-3, so (x−3)2(x - 3)^2 gives x2−6x+9x^2 - 6x + 9, and we need 22 more.

So x2−6x+11=(x−3)2+2x^2 - 6x + 11 = (x - 3)^2 + 2.

Expand your answer in your head to check it: this catches most slips.

When aa is not 1

Take aa out of the x2x^2 and xx terms only, complete the square inside, then multiply back out:

ax2+bx+c=a[x2+bax]+c=a[(x+b2a)2−b24a2]+c.ax^2 + bx + c = a\left[x^2 + \tfrac{b}{a}x\right] + c = a\left[\left(x + \tfrac{b}{2a}\right)^2 - \tfrac{b^2}{4a^2}\right] + c.

The constant inside the square bracket gets multiplied by aa when you remove the bracket.

Forgetting that factor is the classic slip.

When aa is negative

Papers often ask for a form such as q−a(x+p)2q - a(x + p)^2 with a>0a > 0.

Take out −a-a, and watch two signs: the xx coefficient inside the bracket changes sign, and the constant you subtract inside becomes an addition outside.

Write the square-bracket line out in full; it is where the marks are lost.

Reading the graph from the form

Suppose y=a(x+p)2+qy = a(x + p)^2 + q.

  • The squared bracket is never negative, and it is zero only when x=−px = -p.
  • If a>0a > 0, the graph is U-shaped. Its least value is qq, at x=−px = -p, so the vertex (a minimum point) is (−p,q)(-p, q).
  • If a<0a < 0, the graph is n-shaped. Its greatest value is qq, at x=−px = -p, and the vertex is a maximum point.
  • The line of symmetry is x=−px = -p.
  • The range of the function follows at once: y⩾qy \geqslant q when a>0a > 0, y⩽qy \leqslant q when a<0a < 0.

Notice the sign: (x−3)2+2(x - 3)^2 + 2 has its vertex at x=+3x = +3, because the bracket is zero when x=3x = 3.

Sketching a quadratic

A sketch on these papers shows its key features as values, not a scale drawing.

For y=ax2+bx+cy = ax^2 + bx + c, mark:

1. the shape (U for a>0a > 0, n for a<0a < 0);

2. the vertex, from the completed square;

3. the yy-intercept, (0,c)(0, c);

4. the xx-intercepts, if any, found by solving y=0y = 0. The completed square gives them straight away: set the bracket form to zero and square-root.

The diagram below shows all four features for y=2x2−8x+3=2(x−2)2−5y = 2x^2 - 8x + 3 = 2(x - 2)^2 - 5 (Worked example 2).

The U-shaped graph of y = 2x² − 8x + 3 with its minimum point (2, −5), a dashed guide from the vertex to the axes showing the line of symmetry x = 2, the y-intercept (0, 3) and the x-intercepts at about (0.419, 0) and (3.58, 0), which are exactly 2 − ½√10 and 2 + ½√10.
The U-shaped graph of y = 2x² − 8x + 3 with its minimum point (2, −5), a dashed guide from the vertex to the axes showing the line of symmetry x = 2, the y-intercept (0, 3) and the x-intercepts at about (0.419, 0) and (3.58, 0), which are exactly 2 − ½√10 and 2 + ½√10.
How the marks work
  • B1: a correct fact or value, earned whatever method you used. M1: a correct method applied to this question, with your numbers in; a slip later does not lose it. A1: a correct answer or step, which needs the M1 before it.
  • M1* then DM1: the DM1 is only available if the starred M1 was earned. B2 for one item means both marks with no error, one mark with one error.
  • AG: answer given; every step to the printed result must be on the page. FT: credit for correctly using your own earlier wrong answer. OE: any equivalent form is fine. AWRT: any answer which rounds to the stated value.
  • A correct answer with no working earns at most a special-case mark (SC), often nothing.
  • Marks once earned are kept, so a harmless extra line after a correct answer costs nothing, except where a final answer must stand alone, such as a final inequality.
Key terms
  • Completed-square form: a quadratic written as a(x+p)2+qa(x + p)^2 + q, in which xx appears once, inside the squared bracket.
  • Vertex: the turning point of the graph of a quadratic, at (−p,q)(-p, q) for y=a(x+p)2+qy = a(x + p)^2 + q; a minimum point when a>0a > 0 and a maximum point when a<0a < 0.
  • Line of symmetry: the vertical line x=−px = -p through the vertex.
  • Least (or greatest) value: the value qq of the expression at the vertex.
Worked example 1: the case $a = 1$

Express x2+10x+18x^2 + 10x + 18 in the form (x+a)2+b(x + a)^2 + b, where aa and bb are constants, and state the coordinates of the vertex of y=x2+10x+18y = x^2 + 10x + 18. [3]

1. Half of 10 is 5: (x+5)2=x2+10x+25(x + 5)^2 = x^2 + 10x + 25, and 18−25=−718 - 25 = -7.

2. x2+10x+18=(x+5)2−7x^2 + 10x + 18 = (x + 5)^2 - 7, so a=5a = 5 B1, b=−7b = -7 B1

3. The bracket is zero when x=−5x = -5, so the vertex is (−5,−7)(-5, -7) B1 FT (from your aa and bb)

Answer: (x+5)2−7(x + 5)^2 - 7; vertex (−5,−7)(-5, -7).

Check: (x+5)2−7=x2+10x+25−7(x + 5)^2 - 7 = x^2 + 10x + 25 - 7, which is the original.

Worked example 2: a leading coefficient, then the sketch

(a) Express 2x2−8x+32x^2 - 8x + 3 in the form a(x+b)2+ca(x + b)^2 + c. [2]

(b) Hence find the exact xx-coordinates of the points where y=2x2−8x+3y = 2x^2 - 8x + 3 crosses the xx-axis, and sketch the graph. [4]

1. (a) 2x2−8x+3=2[x2−4x]+3=2[(x−2)2−4]+32x^2 - 8x + 3 = 2\left[x^2 - 4x\right] + 3 = 2\left[(x - 2)^2 - 4\right] + 3

2. =2(x−2)2−8+3=2(x−2)2−5= 2(x - 2)^2 - 8 + 3 = 2(x - 2)^2 - 5 B2 (all three of a=2a = 2, b=−2b = -2, c=−5c = -5; one error earns B1)

3. (b) 2(x−2)2−5=0⇒(x−2)2=522(x - 2)^2 - 5 = 0 \Rightarrow (x - 2)^2 = \tfrac{5}{2} M1 (the completed square from (a) used)

4. x−2=±52=±102x - 2 = \pm\sqrt{\tfrac{5}{2}} = \pm\tfrac{\sqrt{10}}{2}, so x=2±1210x = 2 \pm \tfrac{1}{2}\sqrt{10} A1

5. Sketch: U-shape, vertex (2,−5)(2, -5) B1; yy-intercept (0,3)(0, 3) and both xx-intercepts marked B1

Answer: x=2−1210x = 2 - \tfrac{1}{2}\sqrt{10} and x=2+1210x = 2 + \tfrac{1}{2}\sqrt{10} (about 0.419 and 3.58); the sketch is the diagram above.

Both roots sit symmetrically about x=2x = 2, which is a quick check.

The second sketch shows an n-shaped graph, for Worked example 3.

The n-shaped graph of y = 5 + 8x − 2x² with its maximum point (2, 13), a dashed guide from the vertex to the axes, the y-intercept (0, 5) and the x-intercepts at about (−0.550, 0) and (4.55, 0).
The n-shaped graph of y = 5 + 8x − 2x² with its maximum point (2, 13), a dashed guide from the vertex to the axes, the y-intercept (0, 5) and the x-intercepts at about (−0.550, 0) and (4.55, 0).
Worked example 3: a negative $x^2$ coefficient

Express 5+8x−2x25 + 8x - 2x^2 in the form a−b(x−c)2a - b(x - c)^2, where aa, bb and cc are positive constants.

Hence state the greatest value of 5+8x−2x25 + 8x - 2x^2 and the range of f(x)=5+8x−2x2f(x) = 5 + 8x - 2x^2 for x∈Rx \in \mathbb{R}. [4]

1. 5+8x−2x2=−2[x2−4x]+55 + 8x - 2x^2 = -2\left[x^2 - 4x\right] + 5 (the sign of the xx term changes inside)

2. =−2[(x−2)2−4]+5=−2(x−2)2+8+5= -2\left[(x - 2)^2 - 4\right] + 5 = -2(x - 2)^2 + 8 + 5 (here −2×−4=+8-2 \times -4 = +8)

3. =13−2(x−2)2= 13 - 2(x - 2)^2 B2 (a=13a = 13, b=2b = 2, c=2c = 2; one error earns B1)

4. The squared term is never negative and is subtracted, so the greatest value is 13, when x=2x = 2 B1 FT

5. Range: f(x)⩽13f(x) \leqslant 13 B1 FT

Answer: 13−2(x−2)213 - 2(x - 2)^2; greatest value 13; range f(x)⩽13f(x) \leqslant 13.

The diagram above confirms it: the maximum point is (2,13)(2, 13).

Worked example 4: an exam-length chain using the form

(a) Express 4x2−12x+134x^2 - 12x + 13 in the form (2x−a)2+b(2x - a)^2 + b. [2]

(b) Hence show that 4x2−12x+13>04x^2 - 12x + 13 > 0 for all real values of xx. [2]

(c) Find the greatest value of 84x2−12x+13\dfrac{8}{4x^2 - 12x + 13} and the value of xx at which it occurs. [2]

1. (a) (2x−a)2=4x2−4ax+a2(2x - a)^2 = 4x^2 - 4ax + a^2, so 4a=124a = 12 and a=3a = 3 B1

2. (2x−3)2=4x2−12x+9(2x - 3)^2 = 4x^2 - 12x + 9, so b=13−9=4b = 13 - 9 = 4, giving (2x−3)2+4(2x - 3)^2 + 4 B1

3. (b) (2x−3)2⩾0(2x - 3)^2 \geqslant 0 for every real xx M1

4. so (2x−3)2+4⩾4>0(2x - 3)^2 + 4 \geqslant 4 > 0, and therefore 4x2−12x+13>04x^2 - 12x + 13 > 0 for all real xx A1 AG

5. (c) The fraction is greatest when its positive denominator is least, which is 4 at 2x−3=02x - 3 = 0 M1

6. Greatest value 84=2\tfrac{8}{4} = 2, when x=32x = \tfrac{3}{2} A1

Answer: (a) (2x−3)2+4(2x - 3)^2 + 4 (b) shown (c) 2, at x=32x = \tfrac{3}{2}.

Part (b) needs the reason in words; a few trial values of xx prove nothing.

Part (c) works only because the denominator is always positive, which (b) has just shown.

Exam tip

The papers ask for a stated form such as a(x+b)2+ca(x + b)^2 + c or a−b(x+c)2a - b(x + c)^2; give the constants in exactly that form and check by expanding.

Later parts often use the form silently, for a vertex, a range, an inverse or an equation, so look back at it before you start a later part from scratch.

Common mistakes
  • Sign slips with a negative x2x^2 coefficient. Taking out −2-2 from −2x2+8x-2x^2 + 8x gives −2(x2−4x)-2(x^2 - 4x), and the −4-4 inside becomes +8+8 outside. Write the square-bracket line in full and expand your answer back to check.
  • The factor aa not applied to the subtracted square. 2[(x−2)2−4]+32\left[(x - 2)^2 - 4\right] + 3 is 2(x−2)2−8+32(x - 2)^2 - 8 + 3, not 2(x−2)2−4+32(x - 2)^2 - 4 + 3.
  • Vertex sign reversed. (x−3)2+2(x - 3)^2 + 2 has its vertex at (3,2)(3, 2), not (−3,2)(-3, 2).
  • Range not read from the form. Once you have 13−2(x−2)213 - 2(x - 2)^2, the range f(x)⩽13f(x) \leqslant 13 is immediate; examiners reported candidates missing it. Write a range with f(x)f(x) or yy, never with xx.
  • Answering a different question. If the vertex is asked for, give both coordinates; if a sketch is asked for, label the vertex and both intercepts as values.

Check your understanding

1. Express x2−14x+40x^2 - 14x + 40 in the form (x−a)2−b(x - a)^2 - b, where aa and bb are constants. [2]

2. (a) Express 3x2+18x+203x^2 + 18x + 20 in the form a(x+b)2+ca(x + b)^2 + c. [2]
(b) Hence state the coordinates of the minimum point of y=3x2+18x+20y = 3x^2 + 18x + 20 and the equation of its line of symmetry. [2]

3. Show that 2x2−10x+17>02x^2 - 10x + 17 > 0 for all real values of xx. [3]

4. It is given that f(x)=7−6x−x2f(x) = 7 - 6x - x^2 for x∈Rx \in \mathbb{R}.
(a) Express f(x)f(x) in the form a−(x+b)2a - (x + b)^2. [2]
(b) State the greatest value of f(x)f(x) and the range of ff. [2]
(c) Hence solve the equation f(x)=0f(x) = 0. [2]

5. The curve y=2x2+px+qy = 2x^2 + px + q has its minimum point at (3,−5)(3, -5). Find the values of the constants pp and qq. [4]

6. Express 9x2+12x+79x^2 + 12x + 7 in the form (3x+a)2+b(3x + a)^2 + b. Hence find the least value of 9x2+12x+79x^2 + 12x + 7 and the value of xx at which it occurs. [4]

7. It is given that y=x2−2kx+k2+2k−3y = x^2 - 2kx + k^2 + 2k - 3, where kk is a constant.
(a) Express yy in the form (x−a)2+b(x - a)^2 + b, giving aa and bb in terms of kk. [2]
(b) Hence show that, whatever the value of kk, the vertex of the curve lies on the line y=2x−3y = 2x - 3. [2]
(c) Find the set of values of kk for which x2−2kx+k2+2k−3>0x^2 - 2kx + k^2 + 2k - 3 > 0 for all real xx. [2]

Answers

1. (x−7)2−49+40(x - 7)^2 - 49 + 40 M1; =(x−7)2−9= (x - 7)^2 - 9, so a=7a = 7, b=9b = 9 A1

2. (a) 3[(x+3)2−9]+20=3(x+3)2−73\left[(x + 3)^2 - 9\right] + 20 = 3(x + 3)^2 - 7 B2 (a=3a = 3, b=3b = 3, c=−7c = -7; one error B1)
(b) Minimum point (−3,−7)(-3, -7) B1 FT; line of symmetry x=−3x = -3 B1 FT

3. 2x2−10x+17=2[(x−52)2−254]+172x^2 - 10x + 17 = 2\left[(x - \tfrac{5}{2})^2 - \tfrac{25}{4}\right] + 17 M1; =2(x−52)2+92= 2(x - \tfrac{5}{2})^2 + \tfrac{9}{2} A1; (x−52)2⩾0(x - \tfrac{5}{2})^2 \geqslant 0, so the expression is at least 92\tfrac{9}{2}, which is positive, for all real xx A1 AG (the reason must be stated)

4. (a) 7−(x2+6x)=7−[(x+3)2−9]=16−(x+3)27 - (x^2 + 6x) = 7 - \left[(x + 3)^2 - 9\right] = 16 - (x + 3)^2 B1 (a=16a = 16) B1 (b=3b = 3)
(b) Greatest value 16 B1 FT; range f(x)⩽16f(x) \leqslant 16 B1 FT
(c) (x+3)2=16(x + 3)^2 = 16, x+3=±4x + 3 = \pm 4 M1 (the form from (a) used); x=1x = 1 or x=−7x = -7 A1

5. Vertex form y=2(x−3)2−5y = 2(x - 3)^2 - 5 M1 (vertex (3,−5)(3, -5) put into a(x+b)2+ca(x + b)^2 + c with a=2a = 2); =2(x2−6x+9)−5= 2(x^2 - 6x + 9) - 5 M1 (expanded); =2x2−12x+13= 2x^2 - 12x + 13 A1; p=−12p = -12, q=13q = 13 A1. Or: the line of symmetry x=−p4=3x = -\tfrac{p}{4} = 3 gives p=−12p = -12 (M1 A1), then 18−36+q=−518 - 36 + q = -5 gives q=13q = 13 (M1 A1).

6. (3x+a)2=9x2+6ax+a2(3x + a)^2 = 9x^2 + 6ax + a^2, so 6a=126a = 12, a=2a = 2 B1; b=7−4=3b = 7 - 4 = 3, giving (3x+2)2+3(3x + 2)^2 + 3 B1; least value 33 B1 FT; when 3x+2=03x + 2 = 0, x=−23x = -\tfrac{2}{3} B1 FT

7. (a) (x−k)2−k2+k2+2k−3(x - k)^2 - k^2 + k^2 + 2k - 3 M1; =(x−k)2+2k−3= (x - k)^2 + 2k - 3, so a=ka = k, b=2k−3b = 2k - 3 A1
(b) The vertex is (k,2k−3)(k, 2k - 3) B1 FT; at x=kx = k the line gives y=2k−3y = 2k - 3, the same as the vertex's yy-coordinate, so the vertex lies on y=2x−3y = 2x - 3 for every kk A1 AG (the comparison must be stated)
(c) The least value 2k−32k - 3 must be positive M1; k>32k > \tfrac{3}{2} A1

Ready for the next section?

Create a free account to read the rest of this free unit, save highlights, track your confidence and plan your revision.

Your next step

Put this topic into practice.

These tools belong to this free unit. Create an account to open them and save your progress.

Practice paper · Sign up to open

Mathematics 9709 Topic 1.1: Quadratics. Structured practice

7 questions · AS Level · Paper 1

Attempt the questions, check the mark scheme and record your own marks.

Create free account to open this practice

Other units and paper/booklet downloads depend on your plan. This unit has no MCQ quiz; use its other practice and checklist.

Already have an account? Sign in →

Give your revision a routine.

Build a timetable, tick off daily tasks, catch up on missed work and opt in to weekly email reviews. Connect with your teacher when you want to share your progress.