Quadratics

Graphing Quadratic Functions, Step by Step

To graph f(x)=ax2+bx+cf(x) = ax^2 + bx + c, plot the vertex at x=−b2ax = -\frac{b}{2a}, add the y-intercept (0,c)(0, c) and its mirror image across the axis of symmetry, then draw a smooth U that opens up when a>0a > 0 and down when a<0a < 0.

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

Try it with your numbers

Show every step

Every parabola is the graph of y=x2y = x^2 stretched, flipped and moved, so a handful of well-chosen points is enough. The sections below show where each step comes from, which starting form saves the most work, and how to catch a wrong graph before anyone else does.

How do you graph a quadratic function step by step?

The graph of a quadratic function is a parabola, and a parabola is fully determined by a few features. You do not need a long table of values. You need to know where the curve turns, which way it opens, and where it crosses the axes.

  1. Read the sign of aa to decide whether the parabola opens up or down.
  2. Find the vertex: x=−b2ax = -\frac{b}{2a}, then substitute that value into the function to get yy.
  3. Plot the y-intercept (0,c)(0, c) and its mirror image across the vertical line through the vertex.
  4. Find the x-intercepts, if there are any, by setting y=0y = 0.
  5. Draw a smooth curve through the points, rounded at the vertex, with arrows on both ends.

A table of random x-values wastes effort because the curve bends and you cannot tell where. Starting from the vertex of the parabola and stepping equal distances to each side gives you pairs of points at equal heights, so every calculation does double duty. The vertical line through the vertex is the axis of symmetry, and drawing it as a light dashed line keeps the two halves honest.

Where does the vertex formula come from?

The formula comes from one idea: a parabola is symmetric, so two points at the same height are the same distance from the vertex. Take the height of the y-intercept, which is cc, and ask where else the curve reaches that height:

ax2+bx+c=c⟹x(ax+b)=0⟹x=0 or x=−baax^2 + bx + c = c \quad\Longrightarrow\quad x(ax + b) = 0 \quad\Longrightarrow\quad x = 0 \text{ or } x = -\frac{b}{a}

The vertex sits exactly halfway between those two points, which is x=−b2ax = -\frac{b}{2a}. That also hands you a free point: the mirror image of (0,c)(0, c) is (−ba, c)\left(-\frac{b}{a},\, c\right).

Completing the square reaches the same place from another direction. Rewriting the function gives a(x+b2a)2+c−b24aa\left(x + \frac{b}{2a}\right)^2 + c - \frac{b^2}{4a}, so the vertex is (−b2a,  c−b24a)\left(-\frac{b}{2a},\; c - \frac{b^2}{4a}\right). The trap that costs the most points is the sign. With y=x2−6x+5y = x^2 - 6x + 5, b=−6b = -6, so x=−−62=3x = -\frac{-6}{2} = 3, not −3-3. Write the substitution out every time instead of doing the sign in your head.

Quick check

The parabola y=x2−8x+3y = x^2 - 8x + 3 passes through (0,3)(0, 3). What other point on it has y=3y = 3?

Graphing a quadratic function in standard form

Standard form, y=ax2+bx+cy = ax^2 + bx + c, gives you the y-intercept for free, since cc is the height at x=0x = 0. Everything else needs a short calculation. This is the form you meet most often, and the standard form of a quadratic is the one the vertex formula is built for.

Example 1. Graph f(x)=x2−4x−5f(x) = x^2 - 4x - 5.

Here a=1a = 1, so the parabola opens up. The vertex has x=−−42(1)=2x = -\frac{-4}{2(1)} = 2, and then

f(2)=4−8−5=−9f(2) = 4 - 8 - 5 = -9

so the vertex is (2,−9)(2, -9). The y-intercept is (0,−5)(0, -5), and its mirror image across x=2x = 2 is (4,−5)(4, -5). For the x-intercepts, set f(x)=0f(x) = 0 and use factoring:

x2−4x−5=(x−5)(x+1)=0⟹x=5 or x=−1x^2 - 4x - 5 = (x - 5)(x + 1) = 0 \quad\Longrightarrow\quad x = 5 \text{ or } x = -1

Plot (−1,0)(-1, 0), (0,−5)(0, -5), (2,−9)(2, -9), (4,−5)(4, -5) and (5,0)(5, 0), then draw the curve. A mental check: the roots −1-1 and 55 average to 22, which matches the vertex. Because the vertex is at y=−9y = -9, your y-axis needs to run down to at least −10-10 before you start plotting.

When factoring fails

The quadratic formula can be read as x=−b2a±b2−4ac2ax = -\frac{b}{2a} \pm \frac{\sqrt{b^2 - 4ac}}{2a}. The first part is the vertex's x-value, and the second is how far each root sits from it. That is why the roots are always symmetric about the axis.

Graphing quadratic functions in vertex form

Vertex form, f(x)=a(x−h)2+kf(x) = a(x - h)^2 + k, puts the vertex at (h,k)(h, k) with no calculation. The number aa controls the shape: ∣a∣>1|a| > 1 makes the parabola narrower, 0<∣a∣<10 < |a| < 1 makes it wider, and a negative aa flips it. The vertex form of a quadratic is the best starting point when a problem asks for transformations.

The classic trap is the sign of hh. The factor (x+3)(x + 3) means h=−3h = -3, because x+3=x−(−3)x + 3 = x - (-3). The graph moves left, the opposite of what the plus sign suggests. Only kk moves with its own sign.

Example 2. Graph f(x)=−2(x+1)2+8f(x) = -2(x + 1)^2 + 8.

Reading off the form: a=−2a = -2 (opens down), h=−1h = -1, k=8k = 8, so the vertex is (−1,8)(-1, 8). The y-intercept is f(0)=−2(1)+8=6f(0) = -2(1) + 8 = 6, so (0,6)(0, 6) is on the graph, and its mirror image is (−2,6)(-2, 6). For the x-intercepts, the square root method works directly:

−2(x+1)2+8=0⟹(x+1)2=4⟹x+1=±2-2(x + 1)^2 + 8 = 0 \quad\Longrightarrow\quad (x + 1)^2 = 4 \quad\Longrightarrow\quad x + 1 = \pm 2

That gives x=1x = 1 or x=−3x = -3. A quick test before any algebra: if aa and kk have opposite signs, the parabola has two x-intercepts. If they share a sign, it has none. Here a=−2a = -2 and k=8k = 8 differ, so two crossings were guaranteed.

Quick check

Find the x-intercepts of y=3(x−1)2−12y = 3(x - 1)^2 - 12.

What is the 1, 3, 5 pattern for plotting parabola points?

From the vertex of y=ax2y = ax^2, step one unit sideways and the curve moves aa units vertically. Step two units and it has moved 4a4a in total. Step three and it has moved 9a9a. The individual rises between steps are aa, 3a3a, 5a5a, which is why the shortcut is called the 1, 3, 5 pattern.

The reason is plain arithmetic: n2−(n−1)2=2n−1n^2 - (n-1)^2 = 2n - 1, so each new step adds the next odd number. Adding odd numbers from the start gives perfect squares, a special case of the arithmetic series formula. The pattern works from the vertex of any parabola, and it is symmetric, so the left side mirrors the right.

Apply it to Example 2, where a=−2a = -2 and the vertex is (−1,8)(-1, 8). One step right, go down 22 to reach (0,6)(0, 6). The next step goes down 66 to (1,0)(1, 0). The next goes down 1010 to (2,−10)(2, -10). The point (1,0)(1, 0) agrees with the root found earlier, and (0,6)(0, 6) agrees with the y-intercept. Five points appear with no table and no substitution.

Graphing from factored form: start with the roots

When a function is written as f(x)=a(x−p)(x−q)f(x) = a(x - p)(x - q), the x-intercepts are pp and qq on sight. The vertex lies halfway between them, so its x-value is p+q2\frac{p + q}{2}. Substitute that value back to find the height.

For f(x)=(x+3)(x−1)f(x) = (x + 3)(x - 1), the roots are −3-3 and 11, and the midpoint is −1-1. Then

f(−1)=(2)(−2)=−4f(-1) = (2)(-2) = -4

so the vertex is (−1,−4)(-1, -4). The y-intercept is f(0)=(3)(−1)=−3f(0) = (3)(-1) = -3, with mirror image (−2,−3)(-2, -3). Expanding gives x2+2x−3x^2 + 2x - 3, and the vertex formula returns x=−1x = -1 and f(−1)=1−2−3=−4f(-1) = 1 - 2 - 3 = -4, so both routes agree.

The coefficient aa still matters. The function −(x+3)(x−1)-(x + 3)(x - 1) has the same roots and the same axis, but it flips to open downward with vertex (−1,4)(-1, 4). Forgetting a leading factor of aa when reading factored form is a quiet way to lose the whole graph.

Repeated root

When p=qp = q, as in y=(x−2)2y = (x - 2)^2, the vertex sits on the x-axis. The parabola touches the axis at one point and turns around, and the discriminant is 00.

What if the parabola never touches the x-axis?

Many quadratics have no real x-intercepts, and the graph is still easy to draw. The vertex and the y-intercept do all the work. This is also where students sometimes panic because the factoring step fails, even though nothing is wrong.

Example 3. Graph f(x)=2x2−4x+5f(x) = 2x^2 - 4x + 5.

The parabola opens up since a=2a = 2. The vertex has x=−−42(2)=1x = -\frac{-4}{2(2)} = 1, and f(1)=2−4+5=3f(1) = 2 - 4 + 5 = 3, so the vertex is (1,3)(1, 3). A vertex above the x-axis on a parabola that opens up means the curve can never come down to zero. The discriminant confirms it:

b2−4ac=16−40=−24<0b^2 - 4ac = 16 - 40 = -24 < 0

For points, use the y-intercept (0,5)(0, 5) and its mirror (2,5)(2, 5). The 1, 3, 5 pattern with a=2a = 2 adds (−1,11)(-1, 11) and (3,11)(3, 11), since 3+8=113 + 8 = 11. Check: f(3)=18−12+5=11f(3) = 18 - 12 + 5 = 11.

The equation f(x)=0f(x) = 0 still has solutions, namely x=1±i32x = 1 \pm i\sqrt{\frac{3}{2}}. They are complex numbers, so they do not appear anywhere on the real graph.

Quick check

How many x-intercepts does y=x2+4x+7y = x^2 + 4x + 7 have?

How do you check a graphed quadratic?

A finished sketch can be tested in under a minute, without redoing the work. These checks catch nearly every error:

  • The y-intercept on your graph must equal cc (or f(0)f(0)).
  • Points at equal distances left and right of the axis must have equal heights.
  • The vertex must be the lowest point if a>0a > 0, or the highest if a<0a < 0.
  • An x-intercept substituted back into the function must give 00.
  • The number of x-intercepts must match the sign of the discriminant: two, one or none.

A graph also answers inequality questions directly. In Example 1, the parabola sits above the x-axis when x<−1x < -1 or x>5x > 5, so those are the solutions of x2−4x−5>0x^2 - 4x - 5 > 0. This is the visual idea behind quadratic inequalities.

Try this: Sketch y=−x2+6x−5y = -x^2 + 6x - 5 using only its vertex, its y-intercept and the mirror image of that intercept. Before solving anything, predict where it crosses the x-axis, then confirm by solving y=0y = 0.

Where graphing quadratics shows up in real life

A ball thrown upward follows a quadratic height-versus-time model. Suppose h(t)=−16t2+64t+5h(t) = -16t^2 + 64t + 5 gives height in feet after tt seconds. The vertex has t=−642(−16)=2t = -\frac{64}{2(-16)} = 2 and h(2)=−64+128+5=69h(2) = -64 + 128 + 5 = 69, so the ball peaks at 6969 feet after 22 seconds.

To find when it lands, solve h(t)=0h(t) = 0. The discriminant is 642−4(−16)(5)=441664^2 - 4(-16)(5) = 4416, and the positive root is t=−64−4416−32≈4.08t = \frac{-64 - \sqrt{4416}}{-32} \approx 4.08 seconds. The other root is negative, which falls outside the time the ball is in the air, so it is discarded. Only the part of the parabola with t≥0t \ge 0 describes the throw.

The graph is height against time, not the picture of the ball’s path. The ball moves up and down while the graph curves, and mixing these up is a common source of confusion. The same vertex idea finds the best price in profit models and the largest area in fencing problems, and quadratic word problems practise exactly that translation from a story to a vertex.

Practice problems

0 of 5 solved

  1. Find the vertex of y=x2−6x+5y = x^2 - 6x + 5.

  2. Find the x-intercepts of y=x2−2x−15y = x^2 - 2x - 15.

  3. State the vertex of y=2(x+4)2−5y = 2(x + 4)^2 - 5.

  4. Find the maximum value of f(x)=−2x2+8x+3f(x) = -2x^2 + 8x + 3.

  5. Find the vertex of y=2x2+3x−5y = 2x^2 + 3x - 5.

Common questions

How do you graph a quadratic function without a table of values?

Find the vertex with x=−b2ax = -\frac{b}{2a}, plot the y-intercept (0,c)(0, c) and its mirror image across the axis of symmetry, then add the x-intercepts if they exist. Those points are enough to draw an accurate parabola.

How do you know if a parabola opens up or down?

Look at the sign of aa, the coefficient of x2x^2. If a>0a > 0 the parabola opens up and the vertex is the lowest point. If a<0a < 0 it opens down and the vertex is the highest point.

How many points do you need to graph a parabola?

Five points give a clean sketch: the vertex, two points on one side, and their mirror images. Symmetry means you only calculate points on one side of the axis.

Can a quadratic function have no x-intercepts?

Yes. If the vertex lies above the x-axis and the parabola opens up, or lies below it and opens down, the graph never crosses the axis. The discriminant b2−4acb^2 - 4ac is negative in that case.

What is the difference between graphing in vertex form and standard form?

Vertex form a(x−h)2+ka(x - h)^2 + k shows the vertex (h,k)(h, k) immediately. Standard form ax2+bx+cax^2 + bx + c shows the y-intercept immediately, and you need x=−b2ax = -\frac{b}{2a} to find the vertex.

How do you graph a quadratic on a graphing calculator?

Enter the function in the Y= menu and press GRAPH. Use the table feature to choose a window that includes the vertex and intercepts, then use the minimum or maximum tool to confirm the vertex.

Up next