40% off

Ends 15 Aug

Lock in £90

Quadratic Functions and Graphs

Updated July 2026

Quadratic functions and their graphs

Quadratic functions and their graphs; the discriminant of a quadratic function; completing the square; solution of quadratic equations.

Quadratics are essentially functions that are written in the form ax2+bx+cax^2 + bx + c where a0a \neq 0. The term "quadratic" can mean the function, or the graph, or the expression etc. – it is generally a loose term for all things related to the function.

In this section we will look at the quadratics both algebraically and graphically. It will help if you read this section in conjunction with the one on "graph shifting" below and also have some graphing software to hand [e.g., DESMOS GRAPHING].

Why is there so much talk about quadratics in GCSE and A level mathematics? The simple answer is that they are both simple to deal with and have lots of interesting properties that can be clearly illustrated without adding unnecessary complications. They are the perfect "toy" function to play with to help you start to understand more complicated concepts and graphs as your mathematical knowledge develops.

Before we start exploring some aspect of quadratics, let's list many of the sorts of things you are expected to be able to do with quadratics:

  1. Factorise them when appropriate.
  2. Solve quadratic equations using "the formula".
  3. Complete the square for a given quadratic [and it is useful to know how this process relates to the quadratic formula].
  4. Understand the relationship between the roots of a quadratic and its graph.
  5. Understand the relationship between a quadratic written in completed-square form and its graph.
  6. Sketch quadratic curves given the equation [marking x-intercepts (i.e., roots) y-intercept and min /max coordinates].
  7. Understand how to use the discriminant of a quadratic to tell you about the quadratic's roots.
  8. Know how to find the coordinates of the min/max by completing the square, or by differentiating.

Generally, if you are asked to solve a quadratic equation, it is usually better to see if you can factorise it before launching into other methods [such as using the quadratic formula or completing the square].

The main topic we shall look at here is the interplay between the algebra of quadratics and their graphs.

Let's start by looking at a simple quadratic y=x2+bx+cy = x^2 + bx + c and write it in "completed square" form [as always, make sure you understand how the "completed square" form works]:

y=x2+bx+c=(x+b2)2b24+cy = x^2 + bx + c = \left(x + \frac{b}{2}\right)^2 - \frac{b^2}{4} + c

We can see from this that the graph of y=x2+bx+cy = x^2 + bx + c is the same shape as the graph of y=x2y = x^2 but it is in a different place on the xyxy plane. In fact, if we start with the graph of y=x2y = x^2 and "shift" [or translate] it to the left by b2\frac{b}{2} and then "up" by b24+c-\frac{b^2}{4} + c then we get the graph of y=x2+bx+cy = x^2 + bx + c. We have merely started with the graph of y=x2y = x^2 and moved it to a new position on the xyxy plane; we have not squashed or stretched it. So, all graphs of the form y=x2+bx+cy = x^2 + bx + c are really just the y=x2y = x^2 graph but translated to another part of the xyxy plane.

If you look at the "graph shifting" section of these notes, you will see that if f(x)=x2f(x) = x^2 then y=f(x)y = f(x) on shifting becomes y(b24+c)=f(x(b2))y - \left(-\frac{b^2}{4} + c\right) = f\left(x - \left(-\frac{b}{2}\right)\right) which is the translation we described.

What happens to the minimum of y=x2y = x^2 [which is at (0,0)(0, 0)] when it is shifted by the translation? Its xx-coordinate moves to b2-\frac{b}{2} and its yy-coordinate moves to b24+c-\frac{b^2}{4} + c. This is not surprising, and we can get the same result in other ways. For instance, we can find the xx coordinate of the minimum by differentiating and setting equal to 0: ddx(x2+bx+c)=2x+b=0\frac{\mathrm{d}}{\mathrm{d}x}(x^2 + bx + c) = 2x + b = 0 so the minimum occurs at x=b2x = -\frac{b}{2} and the yy-coordinate of the minimum is [by substituting x=b2x = -\frac{b}{2} into y=x2+bx+cy = x^2 + bx + c] b24+c-\frac{b^2}{4} + c which is exactly what we expect from our discussion of graph shifting as the point (0,0)(0, 0) would be shifted to (b2,b24+c)\left(-\frac{b}{2}, -\frac{b^2}{4} + c\right).

We can investigate the minimum coordinates of y=x2+bx+cy = x^2 + bx + c a third way: first, recall that we have y=x2+bx+c=(x+b2)2b24+cy = x^2 + bx + c = \left(x + \frac{b}{2}\right)^2 - \frac{b^2}{4} + c and we want to find what xx value gives us the least yy-value. We notice that (x+b2)2\left(x + \frac{b}{2}\right)^2 is always positive or zero, to make the yy value the least possible, we need to make (x+b2)2\left(x + \frac{b}{2}\right)^2 equal to zero; and this means we need x=b2x = -\frac{b}{2} just like before.

What does our discussion about graph shifting for y=x2+bx+cy = x^2 + bx + c tell us about the roots of the quadratic? First we recall that the roots of the quadratic are the solutions to x2+bx+c=0x^2 + bx + c = 0 and so they are the xx-values when the yy-value is zero, and so they are the xx-values when the graph crosses the xx-axis [because the xx-axis has the equation y=0y = 0]. How do we know if the shifted graph has roots, in other words, how do we know if the shifted graph crosses the xx-axis? The answer is straightforward and leads us to the discriminant condition for roots: we start by recalling (0,0)(0, 0) on y=x2y = x^2 is shifted to (b2,b24+c)\left(-\frac{b}{2}, -\frac{b^2}{4} + c\right) on y=x2+bx+cy = x^2 + bx + c. The only way that the new graph can cross the xx-axis is if the yy-coordinate of its minimum point is "under" the xx-axis [notice we have also used the fact that the coefficient of x2x^2 is positive so the quadratic is a U shape]; in other words, we require b24+c<0-\frac{b^2}{4} + c < 0 for the graph to cross the xx-axis [we will deal with touching the xx-axis in a moment]. Rearranging this, we get that the quadratic has [two real] roots when 0<b24c0 < b^2 - 4c which is the discriminant of the quadratic [see our discussion below if you are not familiar with this]. And if the graph just touches the xx-axis then we know the quadratic has one [repeated; we say a root is repeated if it occurs more than once – e.g. (x+2)(x+2)=0(x + 2)(x + 2) = 0] root and also we must have b24+c=0-\frac{b^2}{4} + c = 0 which leads to b24+c=0-\frac{b^2}{4} + c = 0.

Exercise

How does changing the values of bb and cc in y=x2+bx+cy = x^2 + bx + c affect the position of the graph?

You can use a graph sketching package [e.g., DESMOS GRAPHING] and play around with different bb and cc values [positive and negative] to see what happens and then make sure you can justify your findings by referring to the discussion above and completing the square.

So far, we have looked at y=x2+bx+cy = x^2 + bx + c and related it to y=x2y = x^2 but what about the more general quadratic of the form y=ax2+bx+cy = ax^2 + bx + c [where a0a \neq 0 to make sure it is a quadratic]?

We can start by completing the square on this [the algebra is a little unpleasant but worth doing all the same; there are several equivalent but slightly different approaches to completing the square when the x2x^2 coefficient is not just 1. We have picked one approach, but you might have seen others in your maths classes. You should be comfortable with a range of approaches here].

y=ax2+bx+c=a(x2+bax+ca)=a((x+b2a)2b24a2+ca)y = ax^2 + bx + c = a \left(x^2 + \frac{b}{a}x + \frac{c}{a}\right) = a \left(\left(x + \frac{b}{2a}\right)^2 - \frac{b^2}{4a^2} + \frac{c}{a}\right)

And rewriting this a bit [we have jumped steps but make sure you can fill them in!]:

a((x+b2a)2b24a2+ca)=a(x+b2a)2(b24ac4a)a \left(\left(x + \frac{b}{2a}\right)^2 - \frac{b^2}{4a^2} + \frac{c}{a}\right) = a \left(x + \frac{b}{2a}\right)^2 - \left(\frac{b^2 - 4ac}{4a}\right)

We can then use this expression to derive the quadratic formula and to explore the relationship between the formula and aspects of the graph of y=ax2+bx+cy = ax^2 + bx + c.

Let's start with deriving the quadratic formula:

For this, we want to solve ax2+bx+c=0ax^2 + bx + c = 0 and when we replace the quadratic by its completed-square form this becomes:

a(x+b2a)2(b24ac4a)=0a \left(x + \frac{b}{2a}\right)^2 - \left(\frac{b^2 - 4ac}{4a}\right) = 0

which gives

(x+b2a)2=(b24ac4a2)\left(x + \frac{b}{2a}\right)^2 = \left(\frac{b^2 - 4ac}{4a^2}\right)

and hence

x+b2a=±(b24ac4a2)x + \frac{b}{2a} = \pm \sqrt{\left(\frac{b^2 - 4ac}{4a^2}\right)}

[noticing here we need both the positive and the negative square roots] which rearranges to

x=b2a±b24ac2a=b±b24ac2ax = \frac{-b}{2a} \pm \frac{\sqrt{b^2 - 4ac}}{2a} = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

We can relate this to the sketch of ax2+bx+cax^2 + bx + c:

The line of symmetry for the graph is at x=b2ax = \frac{-b}{2a} [make sure you can argue why this is true] and the distance from this line of symmetry to each of the roots is b24ac2a\frac{\sqrt{b^2 - 4ac}}{2a} and so the distance between the roots must be b24aca\frac{\sqrt{b^2 - 4ac}}{a}. See the picture on the next page.

img-1.jpeg

Finally for this section let's remind ourselves of the discriminant condition and how it tells us if the graph cuts the xx-axis [and recall that the discriminant is the b24acb^2 - 4ac in the formula]. Here are the three possible conditions and what they tell us:

  • b24ac>0b^2 - 4ac > 0 quadratic has two real distinct roots [cuts xx-axis at two distinct points]
  • b24ac=0b^2 - 4ac = 0 quadratic has one repeated root [touches xx-axis]
  • b24ac<0b^2 - 4ac < 0 quadratic has no real roots [never cuts or touches the xx-axis; this means the quadratic never crosses the xx-axis. When you learn about complex numbers, you will discover that the quadratic does have roots, i.e. xx values that make the quadratic zero; but it turns out that these roots don't exist in the real numbers, and we have to go to a 'larger' number system to find them. There are all sorts of interesting 'number systems' [we are deliberately vague here as to what we mean by a 'number system' as it can get quite technical and many 'number systems' are not really like the numbers you are used to when counting on your fingers and toes] in maths and some of them have turned out to be essential for dealing with higher level physics too: e.g. complex numbers in elementary quantum theory]

You should also be able to explain clearly why the discriminant condition works – you should be able to explain algebraically using the formula and also using graph sketching and graph shifting. Spend some time now checking all these different approaches to dealing with quadratic roots fit clearly together in your mind.

Exercise

Start with ax2+bx+c=0ax^2 + bx + c = 0.

Divide the expression through by x2x^2. You now have a quadratic in 1x\frac{1}{x}.

Use the quadratic formula to show:

1x=b±b24ac2c\frac{1}{x} = \frac{-b \pm \sqrt{b^2 - 4ac}}{2c}

And hence that

x=2cb±b24acx = \frac{2c}{-b \pm \sqrt{b^2 - 4ac}}

Then show this is the same result as that given by the standard quadratic formula. Are there any conditions on the equivalence of the two formulae [e.g., can we have c=0c = 0 for the alternative; and, if not, why not?]?

Ready to test your knowledge?

You've reached the end of this section. Start a practice session to solidify your understanding and master this topic.