Skip to content
Tutorials Center
My learning

Topics

Lesson 11 of 37 · Polynomial and Rational Functions

Quadratic Functions and Vertex Form

Master quadratic functions: standard and vertex form, completing the square, the vertex formula, axis of symmetry and optimization, with Python plots.

A quadratic function has the form f(x) = ax² + bx + c with a ≠ 0. Its graph is a parabola. Quadratics are the first polynomials with a turning point, and they model everything from the path of a thrown ball to the area of a field. Mastering them gives you the template for all later polynomial work.

Shape and key features

  • If a > 0 the parabola opens up and has a minimum; if a < 0 it opens down and has a maximum.
  • The turning point is the vertex.
  • The vertical line through the vertex is the axis of symmetry.
  • The y-intercept is c, since f(0) = c.
  • The larger |a| is, the narrower the parabola.

Vertex form

Completing the square rewrites a quadratic as

f(x) = a(x - h)² + k

where the vertex is (h, k) and the axis of symmetry is x = h. This is just the transformation y = a·x² shifted right h and up k.

Completing the square. For f(x) = 2x² - 12x + 7:

  1. Factor a from the x terms: 2(x² - 6x) + 7.
  2. Add and subtract the square of half the coefficient, (6/2)² = 9, inside: 2(x² - 6x + 9 - 9) + 7.
  3. Form the square and pull out the extra: 2(x - 3)² - 18 + 7 = 2(x - 3)² - 11.

The vertex is (3, -11). Because a = 2 > 0, the minimum value of the function is -11.

The vertex formula

Doing the same steps with letters gives a shortcut:

h = -b / (2a), k = f(h)

For f(x) = 2x² - 12x + 7: h = 12/4 = 3 and k = 18 - 36 + 7 = -11. Same answer.

Python Vertex, axis and intercepts of a quadratic

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Three forms, three uses

Form Expression Shows at a glance
Standard ax² + bx + c y-intercept c
Vertex a(x - h)² + k vertex (h, k)
Factored a(x - p)(x - q) x-intercepts p, q

The vertex is always halfway between the x-intercepts, so h = (p + q)/2. Knowing this lets you build a quadratic from its roots and one extra point. A parabola with roots 1 and 5 passing through (3, 8): f(x) = a(x - 1)(x - 5), and 8 = a(2)(-2) = -4a, so a = -2.

Python Build a quadratic from roots and a point

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Optimization

Because the vertex is the extreme point, quadratics solve optimization problems.

A farmer has 60 m of fencing for a rectangular pen against a long wall, so only three sides need fencing. What dimensions maximize the area?

Let the two sides perpendicular to the wall be x metres. The side parallel to the wall is 60 - 2x. The area is

A(x) = x(60 - 2x) = -2x² + 60x.

Since a = -2 < 0, the maximum is at x = -60/(2·(-2)) = 15 m. The parallel side is 60 - 30 = 30 m, and the maximum area is 15 × 30 = 450 m².

Python Plot the fencing problem

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Always state units and check the domain. Here 0 < x < 30, so x = 15 is valid.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. What is the vertex of f(x) = x² - 6x + 5?

    h = 6/2 = 3 and f(3) = 9 - 18 + 5 = -4.
  2. 2. The parabola y = -3(x - 2)² + 7 has which feature?

    a = -3 is negative, so it opens down; the vertex (2, 7) is the highest point.
  3. 3. A parabola has x-intercepts at 1 and 7. What is its axis of symmetry?

    The axis is halfway between the roots: (1 + 7)/2 = 4.
  4. 4. Which form most directly shows the y-intercept?

    In ax² + bx + c, the constant c is f(0), the y-intercept.

Summary

  • A quadratic ax² + bx + c graphs as a parabola; a sets direction and width.
  • Vertex form a(x - h)² + k comes from completing the square; the vertex is (-b/(2a), f(-b/(2a))).
  • The axis of symmetry is halfway between the roots.
  • The vertex gives the maximum or minimum, which solves optimization problems.

Next: Polynomial Graphs and Zeros