Quadratic functions - from the graph to the formula, step by step
· 16 min read
In short
The graph of every quadratic function is a parabola - the graph of y = x², moved and stretched. The vertex form a(x − h)² + k shows the vertex (h, k), the factorised form a(x − x₁)(x − x₂) shows the roots, and the expanded form ax² + bx + c shows where the graph crosses the y axis. To find the formula from a graph, read the vertex or the roots and work out a from one more point.
Words to know
- Parabola
- The curve that is the graph of a quadratic function. It has one line of symmetry, which goes through its vertex.
- Vertex (turning point)
- The lowest point of a parabola that opens upwards, or the highest point of one that opens downwards.
- Vertex form
- f(x) = a(x − h)² + k, the vertex being (h, k). In the UK it is also called the completed-square form.
- Roots (zeros)
- The values of x where f(x) = 0 - where the graph crosses or touches the x axis.
- Discriminant
- The number Δ = b² − 4ac. Its sign tells you whether the parabola has two roots, one or none.
What do you think?
How does the graph of sit compared with the graph of ?
3 to the right. The lowest point of is where the bracket is zero, at . In general, takes at any the value that takes 3 units earlier, at . So everything happens 3 units later - further to the right. The minus sign in the bracket means a move to the right, not to the left.
The idea: one parabola, moved and stretched
The graph of every quadratic function is a parabola, and every parabola is the graph of moved and stretched. Three numbers decide how:
- stretches the graph: it opens upwards when and downwards when . The larger , the narrower the parabola,
- moves it to the right (to the left when is negative),
- moves it up (down when is negative).
The same function can be written in three forms. Each form shows a different point of the graph, so you choose the form that fits what the graph shows you:
- the vertex form shows the vertex ,
- the factorised form shows the roots and ,
- the expanded form shows the point , where the graph crosses the y axis.
The number is the same in all three forms. To find a formula from a graph, read the vertex or the roots, and then work out from one more point.
From the graph to the formula, step by step
Below is a parabola whose formula we do not know yet. Go through the animation with the buttons or the arrow keys. The dashed curve is the graph of .
V = (2, −2) · f(x) = ?
Here is the graph of a quadratic function - a parabola. We do not know its formula yet. Start with the point that stands out: the vertex V = (2, −2), the lowest point of the graph.
The trick from step 4 works for every parabola. One step to the right of the vertex, the graph rises by . Two steps away it rises by , three steps by - just like , only times taller. Here, two steps from the vertex, the graph is higher than the vertex: at it reaches , the same height as at .
Try it yourself: move and stretch the parabola
Set and the moves and . The readouts give the same function in all three forms. Choose a form, and the picture marks what that form shows: the vertex, the point on the y axis or the roots.
- vertex form
- f(x) = 2(x − 2)² − 2
- expanded form
- f(x) = 2x² − 8x + 6
- factorised form
- f(x) = 2(x − 1)(x − 3)
- vertex V
- (2, −2)
- discriminant Δ
- 16
What to notice:
- and move the whole parabola, and the vertex is always ,
- the sign of turns the parabola upside down, and a larger makes it narrower. With the term disappears, and the graph is a straight line,
- the number changes when you move the parabola sideways, even though stays the same: ,
- there are roots only when the vertex is on the x axis or on the other side of it from where the parabola opens: above the axis for , below it for .
The definitions
A quadratic function is a function , where , and are numbers and . Its graph is a parabola. When it opens upwards and the vertex is its lowest point (a minimum). When it opens downwards and the vertex is its highest point (a maximum).
The vertex form is . The vertex is , and the line of symmetry is . From the expanded form you get the vertex with the discriminant :
The roots are the solutions of . When there are two:
When there is one root, : the parabola touches the x axis at its vertex. When there are no roots. The factorised form exists only when (with when ). The vertex lies halfway between the roots:
For the parabola from the animation, , these formulas give , then and . The roots are and .
Example 1: from the vertex and one point
A parabola has its vertex at and goes through the origin . Find its formula.
Step 1. Write the vertex form
The vertex gives and , so only is unknown.
Step 2. Put in the second point
The graph goes through , so .
Step 3. Write the formula
We put back into the vertex form.
Step 4. Multiply out
We expand the square first, and then multiply each term by .
Answer
. Here , so the parabola opens downwards and the vertex is its highest point.
Example 2: from the roots and one point
A parabola crosses the x axis at and , and the y axis at . Find its formula in all three forms.
Step 1. Write the factorised form
The roots are and . The root gives the bracket .
Step 2. Put in the point on the y axis
The graph goes through , so .
Step 3. Multiply out the brackets
We multiply each term of the first bracket by each term of the second, then collect the terms.
Step 4. Find the vertex
The vertex lies halfway between the roots. Its height is the value of the function there.
Answer
. The vertex is , and , so the parabola has the same width as .
Your turn
A parabola has its vertex at and goes through the point . Find its formula in all three forms.
Hintshow
Start from the vertex form - the vertex has . Put in the point to find . For the roots, set the vertex form equal to zero.
Solutiontry it on your own first
Step 1. Write the vertex form
The vertex gives and , and .
Step 2. Put in the second point
The graph goes through , so .
Step 3. Multiply out
We expand the square, multiply each term by and collect the numbers.
Step 4. Find the roots
We set the vertex form equal to zero and get the square on its own.
A number whose square is is or , so there are two cases.
Step 5. Write the factorised form
The roots and give the brackets and , and stays in front.
Answer
. All three formulas give .
Common mistakes
- The wrong sign in the bracket. has its vertex at , not at . The bracket is zero when .
- The vertex without . The vertex alone gives , which goes through . The graph from the animation goes through . Every value of gives another parabola with the same vertex, so you always need one more point.
- Multiplying out too quickly. is , not . And multiplies every term in the bracket: .
- A factorised form for every parabola. has its vertex at and opens upwards, so it never meets the x axis: . It has no roots and no factorised form. And the roots alone do not fix a parabola: and have the same roots.
At GCSE and A-level
In England, GCSE Mathematics asks you to identify and interpret the roots, intercepts and turning points of quadratic functions from their graphs. You find the roots algebraically and the turning point by completing the square, which turns the expanded form into the vertex form. GCSE also asks you to sketch translations and reflections of a given graph - exactly what moving does.
A-level Mathematics builds on this. You work with quadratic functions and their graphs, use the discriminant to decide whether there are real or repeated roots, and complete the square. You also study the effect of transformations such as , and on any graph. Those are the same three moves as , and for a parabola.
Check yourself
Test yourself
Where is the vertex of the parabola ?
Where does the graph of cross the y axis?
A parabola crosses the x axis at and , and the y axis at . What is ?
How many roots does have?
One step to the right of its vertex, a parabola goes down by . What is ?
Flashcards for review
Flip a card and say whether you knew the answer. The ones you did not know come back at the end of the deck. Why it pays to come back to them in a few days is explained in the guide Spaced repetition.
Flashcards
Question
Answer
What are the three forms of a quadratic function?
Expanded , vertex and factorised . The number is the same in all three.What does the vertex form show?
The vertex . The line of symmetry is .What does the number in show?
Where the graph crosses the y axis: at , because .What does the factorised form show?
The roots and - where the graph crosses the x axis.How do you read off a graph?
Go one step to the right of the vertex: the graph rises by (or falls, when is negative).Where is the vertex of ?
At : the graph of moved 3 to the right.How do you get the vertex from ?
and , where .When does a quadratic function have no factorised form?
When : the parabola does not meet the x axis, so there are no roots.What does the sign of tell you?
With the parabola opens upwards and the vertex is its lowest point. With it opens downwards and the vertex is its highest point.Where does the line of symmetry of a parabola lie?
At , halfway between the roots: .
Sources
We checked the facts on this page against these sources. All of them may be reused freely: they carry an open licence or are not covered by copyright.
- Illustrative Mathematics - Algebra 1, Unit 6, Lesson 9: Standard Form and Factored Form (ax² + bx + c with a not 0; a constant times two linear factors) · CC BY 4.0
- Illustrative Mathematics - Algebra 1, Unit 6, Lesson 11: Graphing from the Factored Form (the zeros are the x-intercepts; the vertex lies halfway between them) · CC BY 4.0
- Illustrative Mathematics - Algebra 1, Unit 6, Lesson 12: Graphing the Standard Form, Part 1 (a positive opens upwards, a negative downwards; a larger a makes the graph narrower) · CC BY 4.0
- Illustrative Mathematics - Algebra 1, Unit 6, Lesson 16: Graphing from the Vertex Form (a(x − h)² + k has its vertex at (h, k), a minimum or a maximum) · CC BY 4.0
- Illustrative Mathematics - Algebra 1, Unit 6, Lesson 17: Changing the Vertex ((x − 3)² moves the graph 3 units right, (x + 3)² moves it 3 units left) · CC BY 4.0
- Wikibooks - A-level Mathematics/OCR/C1/Polynomials (the constant term gives the y-intercept; the discriminant and the number of roots; completing the square and the turning point) · CC BY-SA 4.0
- Wikipedia - Quadratic function (vertex at x = −b/2a, the axis of symmetry, the factored form with the roots) · CC BY-SA 4.0
- Wikipedia - Discriminant (the vertex (−b/2a, −Δ/4a); a parabola touches the x axis at its vertex when Δ = 0) · CC BY-SA 4.0