Graphs and quadratic functions

6 visual steps · 3 worked examples · 5 exercises with solutions

First, let’s see the idea.

How do squares reveal symmetry, the vertex and zeros?

Move forward one step at a time. Change the values and observe what happens.

Build a parabolaxy-5-2,502,55-41,336,6712f(x) = 1(x − (0))² + (-1)Vertex(0; -1)
Drawing description

The vertex (0; -1) is marked.

Step 1 of 6

Start with x equal to h

Locate the amber point and read the pair of coordinates of the vertex.

The rule says to subtract h, multiply the result by itself, multiply by a and add k. If x = h, we get 0² = 0 and the output is k: this point is (h, k).

f(x) = 1(x − (0))² + (-1)
Vertex
(0; -1)

What if you change this?

0,52
-22
-32

Before moving on

For a = 1, h = 0 and k = −1, what are the vertex and zeros?

Compare with the explanation

The vertex is (0, −1). Solving x² − 1 = 0 gives x = −1 or x = 1.

You decide when to mark this lesson as studied.

Build a parabola

Slide the drawing to see the details.

Explore the full explanationThe foundations, principles, worked examples and all the exercises, at your own pace.

What you will understand

  • Read coordinates, construct a table and relate it to a graph.
  • Determine the zeros, vertex, axis of symmetry and concavity of a quadratic function.
  • Justify the quadratic formula by completing the square and interpret solutions in context.

Before you start

You do not need to know everything by heart. The explanation revisits the necessary ideas and shows how they connect. If a foundation is still unclear, you can return to these lessons:

Foundations: points, axes and reading values

A Cartesian coordinate system has two perpendicular axes intersecting at the origin O = (0, 0). The x coordinate indicates horizontal displacement and the y coordinate vertical displacement. The pair (−2, 3) means two units left and three up. Order matters: (3, −2) is another point. Each axis must have a uniform scale and, when representing a quantity, a stated unit.

A rule y = f(x) assigns a unique output y to every permitted input x. The notation f(2) asks for the result when the input is 2; it does not mean f multiplied by 2. If f(x) = x² − 4x + 3, then f(2) = 4 − 8 + 3 = −1. On the graph, this calculation produces the point (2, −1).

To read f(1) from a drawing, start at 1 on the horizontal axis, find the graph point with that x coordinate and read its y coordinate. To solve f(x) = 1, take a different route: find every graph point at height 1 and read the x coordinates. One input has one output, but one output may correspond to several inputs.

What makes a function quadratic

A quadratic function has expression f(x) = ax² + bx + c, where a, b and c are real constants and a ≠ 0. If a were zero, the quadratic term would disappear. Over the full real domain, its graph is a parabola. The term x² means the rate of change is not constant: increasing x by one unit does not always increase f(x) by the same amount.

Start with the simplest rule, f(x) = x². Inputs −2, −1, 0, 1 and 2 give outputs 4, 1, 0, 1 and 4. Opposite inputs have equal outputs because (−x)² = x². The table suggests symmetry, and this identity proves it for all real numbers, not just the five calculated points.

Multiplying x² by a positive a preserves upward opening; a negative a reflects the curve and gives downward opening. Increasing |a| stretches values vertically relative to the reference parabola. The coefficient c is f(0), the vertical intercept. The coefficient b influences the axis position, but is not by itself the vertex's x coordinate or a constant slope.

Three forms for observing the same curve

The expanded form ax² + bx + c shows the coefficients and f(0). The factored form a(x − r₁)(x − r₂), when real roots exist, reveals the zeros r₁ and r₂. The vertex form a(x − h)² + k reveals the vertex (h, k) and axis x = h. These are not three different functions when the expressions transform into one another through identities.

For example, x² − 4x + 3 = (x − 1)(x − 3) = (x − 2)² − 1. Expanding each product confirms equality. The first form gives f(0) = 3; the second shows zeros 1 and 3; the third shows vertex (2, −1). Using the appropriate form reduces work and makes the reason for the answer visible.

In vertex form, swapping x = h − t for x = h + t does not change the square: both give at² + k. This proves symmetry. Since a square is never negative, for a > 0 the smallest value is k, obtained at x = h. For a < 0, the greatest value is k. These conclusions are exact and do not depend on drawing quality.

Complete the square and construct the quadratic formula

To complete x² + px, we add and subtract (p/2)². The reason is that (x + p/2)² = x² + px + p²/4. For example, x² + 6x + 2 = (x + 3)² − 9 + 2 = (x + 3)² − 7. The compensation −9 preserves the original expression; adding 9 without removing it would change the function.

In the general case, factor a out of the first two terms and complete the square. The result is:

ax² + bx + c = a[x + b/(2a)]² − (b² − 4ac)/(4a).

To solve the equality to zero, we obtain [x + b/(2a)]² = (b² − 4ac)/(4a²). Define Δ = b² − 4ac, the discriminant. If Δ ≥ 0, taking both sign possibilities and isolating x leads to x = (−b ± √Δ)/(2a). The notation ± represents two expressions, not a mysterious extra operation.

If Δ > 0 there are two distinct real roots; if Δ = 0 there is one repeated real root; if Δ < 0 there is no real root, since a real square cannot be negative. The vertex's x coordinate comes from making the square zero: h = −b/(2a), and its y coordinate is k = f(h).

Construct and check a sketch

To sketch a parabola, first identify its concavity, vertex and axis. Calculate the vertical intercept and roots, if any. Then use pairs of symmetric points to check. A table with a few values does not justify joining points by line segments: a quadratic graph is a smooth curve, defined by every domain value.

For f(x) = x² − 4x + 3, the table for x = 0, 1, 2, 3, 4 is 3, 0, −1, 0, 3. The function decreases until x = 2 and increases afterwards. It is positive for x < 1 or x > 3, zero at the boundaries 1 and 3 and negative between the roots. “Negative” describes the output; it does not mean the input must be negative.

A graphing window that is too small may hide a root or the vertex. Always check the drawing against the expression. The point where the parabola crosses the vertical axis is (0, c), whereas horizontal-axis points have vertical coordinate zero. A root is an x coordinate; the corresponding intersection point has two coordinates.

Maxima and minima with real constraints

A quadratic model needs variables and conditions. If a rectangle has perimeter 24 m and one side measures x metres, the other measures 12 − x. Its area, in m², is A(x) = x(12 − x) = −x² + 12x = −(x − 6)² + 36. Since sides must be positive, the geometric domain is 0 < x < 12.

The square shows A(x) ≤ 36, with equality at x = 6. The rectangle of greatest area is therefore a square of side 6 m. We do not need to test infinitely many rectangles: the identity and nonnegativity of the square justify the maximum. A value such as x = 15 is permitted in the algebraic expression, but does not represent this rectangle.

If the domain is restricted to an interval that does not contain the vertex's x coordinate, the problem's extremum may occur at a boundary. The final interpretation must identify the quantity sought: 6 m is a side length, whereas 36 m² is an area. The graph helps us think, and algebra supports the conclusion.

Worked examples, without skipping steps

Follow the reasoning first. Then cover the solution and try to reconstruct it in your own words.

Example 1

A parabola in three forms

Study f(x) = x² − 8x + 12: zeros, vertex and sign.
  1. Factor: x² − 8x + 12 = (x − 2)(x − 6), since −2 − 6 = −8 and (−2)(−6) = 12.
  2. Complete the square: f(x) = (x − 4)² − 4. The vertex is (4, −4), and the concavity is upward.
  3. The zeros are 2 and 6. Between them the factors have opposite signs, so f is negative; outside them it is positive.
Result
Zeros 2 and 6; vertex (4, −4); minimum −4.
Check the result
f(2) = 4 − 16 + 12 = 0; f(6) = 36 − 48 + 12 = 0; f(4) = 16 − 32 + 12 = −4.

Example 2

Use the discriminant

Solve 2x² + 4x − 6 = 0 over the real numbers.
  1. Identify a = 2, b = 4 and c = −6; calculate Δ = 4² − 4 × 2 × (−6) = 16 + 48 = 64.
  2. Apply the formula: x = (−4 ± 8)/4.
  3. With the positive sign we obtain x = 1; with the negative sign, x = −3.
Result
The solution set is {−3, 1}.
Check the result
For 1: 2 + 4 − 6 = 0. For −3: 18 − 12 − 6 = 0. The roots are symmetric about x = −1.

Example 3

Area with a fixed perimeter

A rectangle has perimeter 40 m. What is the greatest possible area?
  1. If one side is x, the other is 20 − x; require 0 < x < 20.
  2. The area is A(x) = x(20 − x) = −(x − 10)² + 100.
  3. Since the square is nonnegative, the area does not exceed 100; at x = 10 that value is attained within the domain.
Result
The greatest area is 100 m², with sides of 10 m.
Check the result
2(10 + 10) = 40 m and 10 × 10 = 100 m². For sides 8 and 12, the area would be 96 m², which is smaller.

Now try it yourself

There is no timer. Write what you know, choose a relationship and justify each step. Hints and solutions are available whenever you need them.

Exercise 1

Can a function have two inputs with the same output? Use x² to justify.
A hint
Compare the inputs 2 and −2.
See the worked solution
Yes: 2² = (−2)² = 4. The function condition requires a unique output per input; it does not require different inputs to have different outputs.

Exercise 2

Does the function x² + 4 have real roots?
A hint
Can a real square equal −4?
See the worked solution
No. The equation x² + 4 = 0 would require x² = −4, impossible in ℝ. The vertex is (0, 4) and the entire parabola lies above the horizontal axis.

Exercise 3

Solve x² − 6x + 5 = 0 by factoring and check.
A hint
Seek two numbers whose sum is −6 and product is 5.
See the worked solution
(x − 1)(x − 5) = 0 gives x = 1 or 5. Check: 1 − 6 + 5 = 0 and 25 − 30 + 5 = 0. The axis lies halfway, at x = 3.

Exercise 4

Find the vertex and range of g(x) = 3(x + 1)² + 2 on domain ℝ.
A hint
The square reaches zero when x + 1 = 0.
See the worked solution
The vertex is (−1, 2). Since 3(x + 1)² ≥ 0, g(x) ≥ 2; all values from 2 upwards are attained. The range is [2, +∞[.

Exercise 5

A rectangular garden bed has perimeter 28 m and needs area 40 m². Determine the sides.
A hint
Write the area as x(14 − x).
See the worked solution
The equation x(14 − x) = 40 is equivalent to x² − 14x + 40 = 0 = (x − 4)(x − 10). Thus, the sides measure 4 m and 10 m, in either order. The perimeter is 2(4 + 10) = 28 m and the area is 40 m².

Mistakes worth avoiding

The root is the complete point on the graph.
The root is the input x that gives zero output; the corresponding point is (x, 0).
The coefficient b is the parabola's slope.
A parabola has no constant slope; b contributes to the axis location.
Completing the square allows a constant to be added without compensation.
The same constant must be added and subtracted to preserve the expression.
The vertex is always the solution to an applied problem.
You must check whether it belongs to the admissible domain and which quantity is sought.

The essentials to take with you

  • Every point on the graph is an input–output pair.
  • Expanded, factored and vertex forms highlight different properties.
  • Completing the square explains the vertex and quadratic formula.
  • The discriminant counts the real roots of the quadratic equation.
  • Modelling includes choosing the domain and preserving units.

If you still cannot explain one of these ideas, return to the corresponding section and work through an example again. Recognising the difficulty is part of studying.

See the idea in motion

Now you can change the values, observe the graph and compare the experiment with the results you calculated.

Try it in the lab

References for further study

Text and examples prepared for this learning path. These sources help check the principles and continue studying:

The organisation by school year is a study proposal. Pedagogical review by teachers remains a stage of the project.