Functions & Graphs

How to Graph Quadratic Functions

Short answer: Find the roots by solving f(x) = 0, the y-intercept from f(0), and the turning point halfway between the roots. For y = x² − 4 the roots are −2 and 2, the y-intercept and vertex are both (0, −4), and the axis of symmetry is x = 0.

The parabola y = x² − 4 with its roots at (−2, 0) and (2, 0) and its vertex at (0, −4) highlighted.

A quadratic function has the form y = ax² + bx + c with a ≠ 0. Its graph is a parabola — a symmetric U shape that opens upwards when a is positive and downwards when a is negative. Four features are enough for a confident sketch: roots, y-intercept, turning point and axis of symmetry.

Worked example: y = x² − 4

Here a = 1, b = 0 and c = −4. Because a > 0 the parabola opens upwards and the turning point is a minimum.

1. Roots (x-intercepts)

Set y = 0 and solve:

0 = x² − 4, so x² = 4, so x = −2 or x = 2.

The parabola crosses the x-axis at (−2, 0) and (2, 0). You could also factorise: x² − 4 = (x − 2)(x + 2).

2. y-intercept

Substitute x = 0: y = 0² − 4 = −4, giving (0, −4).

3. Axis of symmetry

A parabola is symmetric about a vertical line through its turning point. For roots −2 and 2 the line is halfway between: x = (−2 + 2) ÷ 2 = 0. In general the axis is x = −b ÷ (2a), which also gives 0 here.

4. Turning point

Substitute the axis value into the rule: y = 0² − 4 = −4. The vertex is (0, −4), which here is also the y-intercept.

The parabola y = x² − 4 with roots at −2 and 2, turning point at (0, −4) and the axis of symmetry x = 0.
Anatomy of y = x² − 4: two roots, a turning point at (0, −4) and a dashed axis of symmetry along x = 0.
Key features of y = x² − 4
FeatureValueHow it was found
Rootsx = −2, x = 2Solve x² − 4 = 0
y-intercept(0, −4)Substitute x = 0
Axis of symmetryx = 0Midpoint of roots, or −b/(2a)
Turning point(0, −4), minimumSubstitute x = 0; a > 0

Sketching the parabola

  1. Draw and label both axes.
  2. Mark the roots (−2, 0) and (2, 0), and the vertex (0, −4).
  3. Add one symmetric pair for shape: x = 3 gives y = 5, and by symmetry x = −3 also gives 5.
  4. Draw a smooth U through the points — no sharp corner at the bottom.
  5. Label the curve with its equation and the key points.

Plot y = x² − 4 in the graphing calculator →

In the calculator, Roots & intersections reports x-intercepts at (−2, 0) and (2, 0) and a y-intercept of (0, −4). The value table from −2 to 2 shows 0, −3, −4, −3, 0 — symmetric, as expected.

A repeated root: y = (x − 1)²

Not every parabola crosses the x-axis twice. Expand y = (x − 1)² and you get x² − 2x + 1. Solving (x − 1)² = 0 gives only x = 1. The parabola touches the axis at (1, 0) and turns back up; its vertex sits on the axis.

Side by side: y = x² − 4 crossing the x-axis at two points, and y = (x − 1)² touching it at x = 1.
Two distinct roots compared with one repeated root. A touching root has no sign change on either side.

This matters for calculators. Many root finders look only for places where y changes from negative to positive. (x − 1)² is never negative, so a sign-change search finds nothing. Our calculator also looks for points where |f(x)| shrinks to zero without a sign change and labels them “touches the axis (repeated root)”.

Plot y = (x − 1)² and find its repeated root →

How many roots can a quadratic have?

The discriminant Δ = b² − 4ac tells you before you graph:

  • Δ > 0: two roots (x² − 4 has Δ = 16).
  • Δ = 0: one repeated root ((x − 1)² has Δ = 4 − 4 = 0).
  • Δ < 0: no real roots — the parabola stays entirely above or below the x-axis (x² + 1 has Δ = −4).

Common mistakes

Watch for these
  • Writing x² = 4 as x = 2 only. There are two square roots: ±2.
  • Drawing a V-shaped point at the vertex. Parabolas are smooth.
  • Typing -x^2 when you mean the negative quadratic y = −x²: that is correct, but (-x)^2 is x², not −x².
  • Missing roots outside the window. If the vertex is far away, widen the window before searching.

Common questions

How do I know if the vertex is a maximum or minimum?

Look at a. If a > 0 the parabola opens up and the vertex is a minimum; if a < 0 it opens down and the vertex is a maximum.

Does the calculator find the vertex automatically?

Not as a separate button. Use the axis of symmetry from −b/(2a), then Evaluate at that x value.

How this guide was made: drafted with AI assistance under the site’s editorial policy. Worked examples and plotted figures are computed by the same maths engine as our calculators and checked by automated tests. Found an error? Report a correction.

The line y = 2x + 1 with its x-intercept (−0.5, 0) marked by a circle and its y-intercept (0, 1) marked by a square.
Functions & Graphs

How to Find X- and Y-Intercepts on a Graph

Two short procedures — set y = 0 for x-intercepts, set x = 0 for the y-intercept — worked for a line and a parabola, plus how to treat calculator estimates.

Updated 3 min read
Five points of y = x² − 4 at x = −2, −1, 0, 1, 2 joined by guide lines to a table of values 0, −3, −4, −3, 0.
Graphing Basics

How to Make and Read a Graph Value Table

Choose a start value, a step and a number of rows. For y = x² − 4 from −2 to 2 the outputs are 0, −3, −4, −3, 0 — and here's what they do and don't tell you.

Updated 3 min read