Chalk−1

Math · College algebra · Concept

Quadratic functions: vertex form and graphs

A quadratic function f⁡(x)=ax2+b⁢x+c graphs as a parabola that opens upward when a>0 and downward when a<0. Its turning point, the vertex, lies on the axis of symmetry x=−b⁢/⁢(2⁢a), and the vertex form f⁡(x)=a⁢(x−h)2+k shows the vertex (h,k) directly. The vertex gives the function’s minimum or maximum value, which is why quadratics answer questions about the greatest height or the largest revenue.

Try one — Chalk checks each line

A concrete case

The most area from 20 meters of fence

A gardener has 20 m of fencing for a rectangular bed and wants as much area inside as possible. A bed 1 m wide uses 2 m of fence on its two short sides. The other 18 m makes two long sides of 9 m, and the area is 9 m2.

The table tries every whole-number width. The areas climb, 9, 16, 21, 24 and 25, then fall back through 24, 21, 16 and 9 in the same order. They mirror each other around the width 5 m, where the bed is a square with area 25 m2.

That rise, turn and mirrored fall is the signature of a quadratic function. The length is 10−w for a width w, the area is w⁢(10−w)=10⁢w−w2, and its graph is a parabola whose highest point answers the question.

A⁢(w)=w⁢(10−w)=−w2+10⁢w
Rectangles with a perimeter of 20 m
Width (m)Length (m)Area (m2)
199
2816
3721
4624
5525
6424
7321
8216
919

The rule

Standard form, vertex form and the vertex

A quadratic function has the standard form f⁡(x)=ax2+b⁢x+c, where a, b and c are numbers and a≠0. Its graph is a parabola. It opens upward when a>0 and downward when a<0. The turning point is the vertex, and the vertical line through it is the axis of symmetry.

The vertex sits at x=−b⁢/⁢(2⁢a), and its height is the output there. Call them h and k, so k=f⁡(h). When a>0, k is the least value of f, its minimum. When a<0, k is the greatest value, its maximum.

The same function in vertex form is f⁡(x)=a⁢(x−h)2+k, with the same a as in standard form. The constant c is the y-intercept, because f⁡(0)=c.

In the garden, the area −w2+10⁢w has a=−1 and b=10. Its vertex is at w=−10⁢/⁢(2⁢(−1))=5, the width the table found, and the maximum area is 25 m2.

f⁡(x)=ax2+b⁢x+c=a⁢(x−h)2+k,h=−b2⁢a,k=f⁡(h)
f⁡(x)=ax2+b⁢x+c=a⁢(x−h)2+kh=−b2⁢a,k=f⁡(h)
What each number in a quadratic shows
NumberWhat it shows
Sign of aOpens upward (a>0) or downward (a<0)
Size of aNarrower when ∣⁢a⁢∣ is large, wider when ∣⁢a⁢∣ is small
h =−b⁢/⁢(2⁢a)Where the minimum or maximum happens, and the axis x=h
k=f⁡(h)The minimum or maximum value itself
cThe y-intercept, f⁡(0)

Why it works

Why the vertex is at −b⁢/⁢(2⁢a)

Completing the square shows it. Factor a out of the two x terms, then add and subtract the square of half the new x coefficient. The quadratic becomes a times a perfect square, plus a constant.

The square is never negative, and it is 0 only when x=−b⁢/⁢(2⁢a). With a>0, every other input adds a positive amount to the constant. The constant is then the least value, reached at exactly one point. With a<0, every other input subtracts, and the constant is the greatest value.

The symmetry comes from the same square. Moving a distance t either way from h turns (x−h)2 into t2 both times, which gives f⁡(h+t)=f⁡(h−t). That is why the garden’s areas came in pairs, 24 at widths 4 and 6 and 21 at widths 3 and 7.

ax2+b⁢x+c=a(x+b2⁢a)2+c−b24⁢a
Why does a change the width?

Each output of a⁢(x−h)2 is a times the matching output of (x−h)2. With a=2 the heights above the vertex double, the curve climbs twice as fast, and it looks narrower. With a=1⁢/2 they halve and it looks wider.

The method

Read a quadratic in seven steps

The table works through f⁡(x)=x2−6⁢x+5. Steps 3 and 4 use the vertex formula. Completing the square, as in the ball example, reaches the same vertex form by another road.

The two x-intercepts, 1 and 5, are each 2 units from the axis x=3. That balance is a free check on the arithmetic.

x2−6⁢x+5=(x−3)2−4
Reading f⁡(x) =x2 −6⁢x+5
StepWhat to doFor x2−6⁢x+5
1Read a, b and c with their signsa=1, b=−6, c=5
2Read the direction from the sign of aa>0, so it opens upward and has a minimum
3Find the axis, h =−b⁢/⁢(2⁢a)h =6⁢/2 =3
4Find the vertex height, k=f⁡(h)f⁡(3) =9−18+5 =−4
5Write the vertex formf⁡(x) =(x−3)2−4
6Find the interceptsy-intercept 5; (x−3)2 =4 gives x=1 or x=5
7Sketch, mirroring points across x=3(0,5) mirrors to (6,5)

Greatest and least values in a problem

When a problem asks for the greatest or least value of a quantity that is a quadratic function of one variable, the answer is at the vertex. Four steps handle it.

1. Name the variable and its units, and write the quantity as a function of it.

2. Read the sign of a. It says whether the vertex is a maximum or a minimum.

3. Find the vertex. Its first coordinate is where the extreme value happens, and its second is the value itself.

4. Answer in the problem’s words and units. Check that the vertex lies among the inputs the problem allows.

Where it breaks

Where it breaks

The formulas need a≠0. With a=0, f⁡(x)=3⁢x+1 is a line, and −b⁢/⁢(2⁢a) would divide by 0. A line has no vertex and no greatest or least value.

The vertex is a point, and the question decides which coordinate to give. For f⁡(x)=2⁢(x−2)2−5 the minimum happens at x=2, and the minimum value is −5.

The sign inside vertex form is the opposite of the coordinate. f⁡(x)=3⁢(x+1)2−12 is 3⁢(x−(−1))2−12, so h=−1, not 1, and the vertex is (−1,−12).

A real problem can rule out the vertex. If the garden bed may be at most 3 m wide, the area 10⁢w−w2 keeps rising all the way to w=3. The best bed is then 3 m wide, with 21 m2, not the square.

Not every U-shaped graph is a parabola. y=∣⁢x⁢∣ has a sharp corner at its lowest point, and y=x4 is flatter near 0 than any parabola. The vertex formula belongs to quadratics only.

Check your answer

Check your answer

A parabola is symmetric about its axis, and that symmetry is the first test of a vertex.

Test the symmetry. Inputs the same distance either side of the vertex give equal outputs. For f⁡(x)=2x2−8⁢x+3, with vertex (2,−5), f⁡(1)=−3 and f⁡(3)=−3.

Expand the vertex form. 2⁢(x−2)2−5 =2x2−8⁢x+8−5 =2x2−8⁢x+3, the function you started with.

Compare with the x-intercepts. When the graph crosses the x-axis, the vertex is halfway between the crossings. For x2−6⁢x+5 the crossings 1 and 5 average to 3, the vertex’s first coordinate.

To have Chalk check the work, define the function on the first row of a Math box, f⁡(x)=2x2−8⁢x+3, and write the vertex’s height below it as f⁡(2)=−5. The Checker answers “Follows from row 1: the value of f(2).” For vertex form, put the standard form on one row and 2⁢(x−2)2−5 under it, and the row reads ✓ “Equivalent.” A slip shows up at once. Writing (x−2)2+7 under x2−4⁢x+7 reads ✗ “The two sides differ at a point Chalk checked.”

For f⁡(x)=−2x2+8⁢x+1, which is larger, f⁡(−1) or f⁡(4), without working out either?

f⁡(4). The axis is x=−b⁢/⁢(2⁢a)=−8⁢/⁢(−4)=2. 4 is 2 units from it and −1 is 3 units away. The parabola opens down, since a<0, so heights fall with distance from the axis, and the nearer input wins. Indeed f⁡(4)=1 and f⁡(−1)=−9. Picking the larger input ignores the turn at the vertex.

The midpoint of the roots, the focus and one shape

The vertex formula also falls out of the quadratic formula. The two solutions of ax2+b⁢x+c=0 are −b⁢/⁢(2⁢a) plus and minus the same amount, b2−4⁢a⁢c/⁢(2⁢a). Their midpoint is −b⁢/⁢(2⁢a), which is why the axis sits halfway between the x-intercepts.

A parabola is also the set of points equally far from a fixed point, the focus, and a fixed line, the directrix. For y=ax2 with a>0 the focus is 1⁢/⁢(4⁢a) above the vertex. Rays parallel to the axis reflect off the curve through the focus, which is why a satellite dish is a parabola.

Every parabola has the same shape. y=ax2 is y=x2 scaled by the factor 1⁢/⁢∣⁢a⁢∣ in both directions, and turned over when a<0. Two parabolas differ only in size and position, the way two circles do.

Common mistakes

  • Dropping the minus sign in x=−b⁢/⁢(2⁢a). For 2x2−8⁢x+3 the axis is −(−8)⁢/⁢(2⋅2)=2, not −2, and the check f⁡(1)=f⁡(3) catches the slip.
  • Reading the vertex of a⁢(x−h)2+k as (−h,k). f⁡(x)=2⁢(x−2)2−5 has vertex (2,−5), because x−2 is 0 when x=2.
  • Giving where the maximum happens as the maximum. For h⁢(t) =−4.9t2+19.6⁢t+1.5 the greatest height is h⁢(2)=21.1 m. The 2 is the time it happens, in seconds.
  • Completing the square without factoring a out of the x terms first. −4.9t2+19.6⁢t is −4.9⁢(t2−4⁢t), and adding 4 inside the bracket takes away 4.9×4=19.6, so 19.6 is added back, not 4.
  • Assuming every parabola crosses the x-axis. y=x2−4⁢x+7 =(x−2)2+3 has its least value 3 above the axis, so it has no x-intercepts.

Key terms

Quadratic function
A function f⁡(x)=ax2+b⁢x+c with a≠0. Its graph is a parabola that opens upward when a>0 and downward when a<0.
Vertex of a parabola
The point where a parabola turns, on its axis of symmetry. For f⁡(x)=ax2+b⁢x+c it lies at x=−b⁢/⁢(2⁢a), and its y-coordinate is the function’s minimum or maximum value.
Axis of symmetry
The vertical line x=−b⁢/⁢(2⁢a) through the vertex of the parabola y=ax2+b⁢x+c. Points of the parabola at equal distances on either side of it have equal heights.
Vertex form
The form f⁡(x)=a⁢(x−h)2+k of a quadratic function, which shows its vertex (h,k) directly. Completing the square turns standard form into vertex form.
Parabola
The set of points equally far from a fixed point, the focus, and a fixed line, the directrix. With its vertex at the origin, x2=4⁢p⁢y opens upward if p>0, with focus (0,p) and directrix y=−p. The graph of every quadratic function is a parabola.
Extremum
A maximum or minimum value. A local extremum is highest or lowest among nearby values. An absolute extremum is highest or lowest over the whole domain, and it can sit at an endpoint of the domain, where the graph stops rather than turns.
x-intercept
A point where a graph crosses or touches the x-axis, so its y-value is 0. For y=f⁡(x), its x-value is a zero (root) of f.
y-intercept
The point where a graph crosses the y-axis, found by setting x=0: (0,f⁡(0)) when 0 is in the domain.

Work through an example

For f⁡(x)=2x2−8⁢x+3, find the axis of symmetry, the vertex, the minimum value, the vertex form and the intercepts.

Find the vertex and axis of a parabola →

Find the maximum of a quadratic function →

Write a quadratic from its vertex →

Sources and scope

Authored study material. Tool results depend on the stated inputs and model assumptions.

After reading

Try it, then study it

Open the example in its tool to check steps or change values, then review the key terms as flashcards.

Graph the parabola Check the vertex form in Math Study the 8 key terms Open worked example on a board Vertex formula in Math Reference

Your existing work stays on this device. Examples open as editable copies.