Graphs of quadratic functions

AS · P1 · 13 min

The graph of y=ax2+bx+cy = ax^2 + bx + c is a parabola, a symmetric ∪\cup or ∩\cap shaped curve. Being able to sketch it quickly, with its intercepts and vertex labelled, turns many algebra questions into pictures: how many roots an equation has, where an expression is positive, what the range of a function is. Cambridge asks for these sketches directly, and expects you to use them silently in inequality, range and intersection questions.

The shape and what controls it

Every quadratic graph has the same basic shape, the graph of y=x2y = x^2, moved and stretched.

  • The sign of aa decides the direction. If a>0a > 0 the parabola opens upwards (∪\cup) and has a lowest point. If a<0a < 0 it opens downwards (∩\cap) and has a highest point.
  • The size of aa decides how narrow it is. y=3x2y = 3x^2 is narrower than y=x2y = x^2; y=13x2y = \tfrac{1}{3}x^2 is wider.
  • The vertex is the turning point. The parabola is symmetric about the vertical line through it, the line of symmetry.
y = x^2 y = 3x^2 y = (1/3)x^2 y = -x^2

From top to bottom near x=2x = 2: y=3x2y = 3x^2, y=x2y = x^2, y=13x2y = \tfrac{1}{3}x^2, then y=−x2y = -x^2 opening downwards.

Three forms, three pieces of information

The same quadratic can be written in three ways. Each one shows a different feature of the graph immediately.

Key result
FormWhat you can read off
y=ax2+bx+cy = ax^2 + bx + cyy-intercept (0,c)(0, c); direction from the sign of aa
y=a(x−α)(x−β)y = a(x - \alpha)(x - \beta)xx-intercepts (α,0)(\alpha, 0) and (β,0)(\beta, 0)
y=a(x−p)2+qy = a(x - p)^2 + qvertex (p,q)(p, q); line of symmetry x=px = p

The line of symmetry is halfway between the roots and is also given by

x=−b2ax = -\frac{b}{2a}

The formula x=−b2ax = -\dfrac{b}{2a} comes from the completed square a(x+b2a)2+…a\left(x + \dfrac{b}{2a}\right)^2 + \dots, or from the fact that the two roots −b±b2−4ac2a\dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a} are placed symmetrically either side of −b2a-\dfrac{b}{2a}.

Definition

A sketch is a freehand drawing that shows the correct shape and the key features, with coordinates written on. For a parabola that means: the direction it opens, the vertex, the yy-intercept, and any xx-intercepts. It does not need to be to scale, but the features must be in the right order and position relative to each other.

Sketching a quadratic graph
  1. Look at the sign of aa: ∪\cup if a>0a > 0, ∩\cap if a<0a < 0.
  2. Put x=0x = 0 to find the yy-intercept (0,c)(0, c).
  3. Put y=0y = 0 and solve to find the xx-intercepts. If b2−4ac<0b^2 - 4ac < 0 there are none.
  4. Find the vertex by completing the square, or by taking the midpoint of the roots and substituting.
  5. Draw a smooth symmetric curve (not a V) through these points, and label every point with its coordinates.
Sketching from factorised form

Sketch the graph of y=2(x+1)(x−3)y = 2(x + 1)(x - 3), showing the coordinates of the vertex and of the points where the graph meets the axes.

Solution
  • a=2>0a = 2 > 0, so the graph is ∪\cup-shaped.
  • xx-intercepts: (−1,0)(-1, 0) and (3,0)(3, 0).
  • yy-intercept: y=2(1)(−3)=−6y = 2(1)(-3) = -6, so (0,−6)(0, -6).
  • Line of symmetry: halfway between −1-1 and 33, so x=1x = 1. Then y=2(2)(−2)=−8y = 2(2)(-2) = -8. Vertex (1,−8)(1, -8).
y = 2(x + 1)(x - 3) (-1, 0) (3, 0) (0, -6) (1, -8) x = 1
A parabola that does not meet the x-axis

Sketch y=−x2+4x−7y = -x^2 + 4x - 7.

Solution
  • a=−1<0a = -1 < 0, so the graph is ∩\cap-shaped.
  • yy-intercept (0,−7)(0, -7).
  • Discriminant: b2−4ac=16−4(−1)(−7)=16−28=−12<0b^2 - 4ac = 16 - 4(-1)(-7) = 16 - 28 = -12 < 0, so there are no xx-intercepts.
  • Completing the square: −x2+4x−7=−(x2−4x)−7=−[(x−2)2−4]−7=−(x−2)2−3-x^2 + 4x - 7 = -\left(x^2 - 4x\right) - 7 = -\left[(x - 2)^2 - 4\right] - 7 = -(x - 2)^2 - 3. Vertex (2,−3)(2, -3), which is a maximum.

The whole curve lies below the xx-axis, which is another way of saying −x2+4x−7<0-x^2 + 4x - 7 < 0 for all xx.

y = -x^2 + 4x - 7 (2, -3) (0, -7) (4, -7) x = 2

By symmetry the point (4,−7)(4, -7) is also on the curve, which helps you draw it accurately.

Surd intercepts

Sketch y=x2−4x+1y = x^2 - 4x + 1, giving exact coordinates of the intercepts with the xx-axis.

Solution
  • a>0a > 0: ∪\cup-shaped. yy-intercept (0,1)(0, 1).
  • Completing the square: x2−4x+1=(x−2)2−3x^2 - 4x + 1 = (x - 2)^2 - 3. Vertex (2,−3)(2, -3).
  • xx-intercepts: (x−2)2=3(x - 2)^2 = 3, so x=2±3x = 2 \pm \sqrt{3}. The points are (2−3,0)\left(2 - \sqrt{3}, 0\right) and (2+3,0)\left(2 + \sqrt{3}, 0\right), roughly (0.27,0)(0.27, 0) and (3.73,0)(3.73, 0).
y = x^2 - 4x + 1 (2 - sqrt(3), 0) (2 + sqrt(3), 0) (0, 1) (2, -3)

Label the exact values on the sketch; decimals are only to help you place them.

Finding the equation of a parabola

Choose the form that uses the information you are given.

  • Given both xx-intercepts: start from y=a(x−α)(x−β)y = a(x - \alpha)(x - \beta), then use one more point to find aa.
  • Given the vertex: start from y=a(x−p)2+qy = a(x - p)^2 + q, then use one more point to find aa.
  • Given three general points: substitute into y=ax2+bx+cy = ax^2 + bx + c and solve three simultaneous equations. (Rare in P1, but quick if two points are intercepts.)
Equation from intercepts

A parabola crosses the xx-axis at (−1,0)(-1, 0) and (5,0)(5, 0) and crosses the yy-axis at (0,10)(0, 10). Find its equation in the form y=ax2+bx+cy = ax^2 + bx + c and state the coordinates of its vertex.

Solution

y=a(x+1)(x−5)y = a(x + 1)(x - 5). At (0,10)(0, 10): 10=a(1)(−5)10 = a(1)(-5), so a=−2a = -2.

y=−2(x+1)(x−5)=−2(x2−4x−5)=−2x2+8x+10y = -2(x + 1)(x - 5) = -2\left(x^2 - 4x - 5\right) = -2x^2 + 8x + 10

The line of symmetry is x=−1+52=2x = \dfrac{-1 + 5}{2} = 2, and y=−2(3)(−3)=18y = -2(3)(-3) = 18. The vertex is (2,18)(2, 18), a maximum since a<0a < 0.

Equation from roots and a greatest value

The curve y=ax2+bx+cy = ax^2 + bx + c meets the xx-axis at x=1x = 1 and x=3x = 3, and the greatest value of yy is 22. Find aa, bb and cc.

Solution

y=a(x−1)(x−3)y = a(x - 1)(x - 3). The greatest value occurs on the line of symmetry x=2x = 2:

a(2−1)(2−3)=2⇒−a=2⇒a=−2a(2 - 1)(2 - 3) = 2 \quad\Rightarrow\quad -a = 2 \quad\Rightarrow\quad a = -2

So y=−2(x−1)(x−3)=−2x2+8x−6y = -2(x - 1)(x - 3) = -2x^2 + 8x - 6, giving a=−2a = -2, b=8b = 8, c=−6c = -6. A negative aa is consistent with the curve having a greatest value.

The graph and the equation

The roots of ax2+bx+c=0ax^2 + bx + c = 0 are the xx-coordinates where the graph y=ax2+bx+cy = ax^2 + bx + c meets the line y=0y = 0. More generally:

Key result

The solutions of f(x)=kf(x) = k are the xx-coordinates of the points where y=f(x)y = f(x) meets the horizontal line y=ky = k.

For a ∪\cup-shaped parabola with vertex (p,q)(p, q), the equation f(x)=kf(x) = k has

  • two distinct roots if k>qk > q,
  • one repeated root if k=qk = q,
  • no real roots if k<qk < q.

This is the picture behind the discriminant, and it is often quicker. Slide a horizontal line up and down the graph and count the crossings.

Counting solutions on a restricted domain

The function ff is defined by f(x)=x2−6x+5f(x) = x^2 - 6x + 5 for x≥0x \ge 0. Find the set of values of kk for which the equation f(x)=kf(x) = k has two distinct solutions.

Solution

Complete the square: f(x)=(x−3)2−4f(x) = (x - 3)^2 - 4. The vertex is (3,−4)(3, -4). The graph starts at x=0x = 0, where f(0)=5f(0) = 5, falls to the vertex and then rises for ever.

y = x^2 - 6x + 5 + 0 sqrt(x) y = 5 y = -4 (0, 5) (3, -4)

A horizontal line y=ky = k:

  • for k<−4k < -4 misses the curve;
  • for k=−4k = -4 touches it once, at the vertex;
  • for −4<k≤5-4 < k \le 5 crosses it twice (one crossing on each side of x=3x = 3, and at k=5k = 5 one of those is the end point (0,5)(0, 5), which is included because x≥0x \ge 0);
  • for k>5k > 5 crosses it only once, on the right-hand branch.

So f(x)=kf(x) = k has two distinct solutions for −4<k≤5-4 < k \le 5.

Watch out

Drawing a V or a U with vertical sides. A parabola is smooth at the vertex and keeps getting steeper; it never becomes vertical.

Wrong vertex sign. y=(x+2)2−1y = (x + 2)^2 - 1 has vertex (−2,−1)(-2, -1).

Unlabelled sketches. A sketch without coordinates usually earns only the shape mark. Label the intercepts and the vertex.

Ignoring a domain restriction. If x≥0x \ge 0, the graph has an end point at x=0x = 0. Draw only the allowed part, and include or exclude the end point correctly.

Exam tip
  • "Sketch" means shape plus key points; you will not need graph paper. Draw a large, clear diagram with axes labelled xx and yy.
  • If the question says "showing the coordinates of the vertex", the vertex coordinates must be written on the sketch or clearly stated next to it.
  • A quick sketch is the safest way to finish a quadratic inequality or a "set of values of kk" question, even when it is not asked for. It costs ten seconds and prevents the most common sign error.
  • When a range of values of kk comes from a graph, think carefully about the end points: is k=qk = q included? Is the value at a domain end point included?
Summary
  • a>0a > 0 gives ∪\cup (minimum); a<0a < 0 gives ∩\cap (maximum).
  • ax2+bx+cax^2 + bx + c shows the yy-intercept, a(x−α)(x−β)a(x - \alpha)(x - \beta) the xx-intercepts, a(x−p)2+qa(x - p)^2 + q the vertex (p,q)(p, q).
  • The line of symmetry is x=−b2ax = -\dfrac{b}{2a}, halfway between the roots.
  • A sketch needs the correct shape and labelled vertex and intercepts.
  • To find an equation, pick the form matching the given information, then use one more point to find aa.
  • Solutions of f(x)=kf(x) = k are where y=f(x)y = f(x) meets y=ky = k; count crossings by sliding the line.

Practice questions

Question
  1. Sketch y=x2−6x+5y = x^2 - 6x + 5, showing the vertex and the intercepts with both axes.
  2. Sketch y=9−x2y = 9 - x^2.
  3. Sketch y=2x2+4x+5y = 2x^2 + 4x + 5, showing that it does not meet the xx-axis.
  4. A parabola passes through (−2,0)(-2, 0), (4,0)(4, 0) and (0,8)(0, 8). Find its equation in the form y=ax2+bx+cy = ax^2 + bx + c, and its vertex.
  5. A parabola has vertex (3,4)(3, 4) and passes through (1,−4)(1, -4). Find its equation in the form y=ax2+bx+cy = ax^2 + bx + c.
  6. The curve y=x2+bx+cy = x^2 + bx + c has line of symmetry x=−1.5x = -1.5 and passes through (1,2)(1, 2). Find bb and cc.
  7. Find the set of values of kk for which x2−4x+7=kx^2 - 4x + 7 = k has (a) two distinct real roots, (b) no real roots.
  8. The function ff is defined by f(x)=−x2+4x+1f(x) = -x^2 + 4x + 1 for 0≤x≤50 \le x \le 5. Find the set of values of kk for which f(x)=kf(x) = k has exactly two solutions.
  9. The curve CC has equation y=x2−2px+3py = x^2 - 2px + 3p, where pp is a constant. (a) Find, in terms of pp, the coordinates of the vertex of CC. (b) Find the values of pp for which the vertex lies on the line y=2xy = 2x. (c) Find the set of values of pp for which CC lies entirely above the xx-axis.
Answers
  1. (x−1)(x−5)(x - 1)(x - 5): xx-intercepts (1,0)(1, 0), (5,0)(5, 0); yy-intercept (0,5)(0, 5); (x−3)2−4(x - 3)^2 - 4 gives vertex (3,−4)(3, -4); ∪\cup-shaped.

  2. 9−x2=(3−x)(3+x)9 - x^2 = (3 - x)(3 + x): xx-intercepts (±3,0)(\pm 3, 0); vertex and yy-intercept (0,9)(0, 9); ∩\cap-shaped.

  3. 2x2+4x+5=2(x+1)2+32x^2 + 4x + 5 = 2(x + 1)^2 + 3, vertex (−1,3)(-1, 3), yy-intercept (0,5)(0, 5), ∪\cup-shaped. Its least value is 3>03 > 0 (equivalently b2−4ac=16−40<0b^2 - 4ac = 16 - 40 < 0), so it never meets the xx-axis.

  4. y=a(x+2)(x−4)y = a(x + 2)(x - 4); 8=a(2)(−4)8 = a(2)(-4) gives a=−1a = -1. y=−x2+2x+8y = -x^2 + 2x + 8. Line of symmetry x=1x = 1, y=9y = 9: vertex (1,9)(1, 9).

  5. y=a(x−3)2+4y = a(x - 3)^2 + 4; −4=4a+4-4 = 4a + 4 gives a=−2a = -2. y=−2(x−3)2+4=−2x2+12x−14y = -2(x - 3)^2 + 4 = -2x^2 + 12x - 14.

  6. −b2=−1.5-\dfrac{b}{2} = -1.5 gives b=3b = 3. Then 1+3+c=21 + 3 + c = 2 gives c=−2c = -2.

  7. x2−4x+7=(x−2)2+3x^2 - 4x + 7 = (x - 2)^2 + 3, vertex (2,3)(2, 3). (a) k>3k > 3. (b) k<3k < 3.

  8. f(x)=5−(x−2)2f(x) = 5 - (x - 2)^2: maximum 55 at x=2x = 2, f(0)=1f(0) = 1, f(5)=−4f(5) = -4. On the left of x=2x = 2 the curve rises from (0,1)(0, 1) to (2,5)(2, 5); on the right it falls from (2,5)(2, 5) to (5,−4)(5, -4). A line y=ky = k meets both parts when 1≤k<51 \le k < 5. So exactly two solutions for 1≤k<51 \le k < 5. (At k=5k = 5 there is one; for −4≤k<1-4 \le k < 1 there is one.)

  9. (a) y=(x−p)2−p2+3py = (x - p)^2 - p^2 + 3p, so the vertex is (p, 3p−p2)\left(p,\ 3p - p^2\right). (b) 3p−p2=2p3p - p^2 = 2p gives p2−p=0p^2 - p = 0, so p=0p = 0 or p=1p = 1. (c) The minimum value 3p−p23p - p^2 must be positive: p(3−p)>0p(3 - p) > 0, so 0<p<30 < p < 3.

How well do you know this?

Builds on

Where this leads

Console

Search notes, courses and tools, or run an action