Graphing functions in 3D

A blue parabola crossing the x-axis at 1 and 3 with its vertex, y-intercept and dashed axis of symmetry marked.Drag to turn

The graph of a function is the set of all points (x, y) on the coordinate plane where y equals f(x). Graphing a function means plotting enough of these points, and reading its key features, to show its shape.

What a function graph shows

A function assigns to each input x in its domain exactly one output f(x). The graph collects each pair (x, f(x)) as a point on the coordinate plane. Because each x has one output, a vertical line crosses the graph of a function at most once.

The graph shows where the function rises or falls, crosses the axes, and has high or low points.

A step-by-step method

First, find the domain, the set of allowed inputs. Then find the y-intercept by computing f(0), and the x-intercepts by solving f(x) = 0. Next, check for symmetry and for any values where the function is undefined.

Then build a table of values with several x values on both sides of the intercepts. Plot the points and join them with an unbroken curve when the function is continuous, keeping any corners or cusps where the function has them. For straight lines, two points are enough, though a third is a useful check.

Worked example: f(x) = x² − 4x + 3

The y-intercept is f(0) = 0 − 0 + 3 = 3. For x-intercepts, solve x² − 4x + 3 = 0, which factors as (x − 1)(x − 3) = 0, so x = 1 and x = 3.

The vertex of a parabola y = ax² + bx + c has x-coordinate −b/(2a). Here that is 4/2 = 2, and f(2) = 4 − 8 + 3 = −1. The vertex is (2, −1). Since a = 1 is positive, the parabola opens upward.

Check with a table: f(0) = 3, f(1) = 0, f(2) = −1, f(3) = 0, f(4) = 16 − 16 + 3 = 3. The values are symmetric about x = 2, as expected.

Common misconceptions

Students often join points with straight segments. This is correct only for linear and piecewise linear functions (with the breakpoints plotted). Other functions need enough points to show curvature.

Another error is assuming a few points reveal everything. A function can change behaviour between plotted points, so check intercepts, turning points and undefined values directly. A graph of 1/x needs a gap at x = 0.

Where function graphs are used

Graphs show how one quantity depends on another, such as distance against time, and cost or demand curves in economics. In calculus they are the starting point for slope, area and limits.

Key terms

Function
A rule that gives exactly one output for each input in its domain.
Domain
The set of input values for which the function is defined.
Intercept
A point where the graph meets an axis.
Vertex
The turning point of a parabola, its highest or lowest point.
Table of values
A list of inputs with their computed outputs, used to plot points.
Vertical line test
A curve is the graph of a function if no vertical line crosses it more than once.

Common questions

How many points do I need to graph a function?

A straight line needs two points. A parabola usually needs the vertex, the intercepts and a few more. Other functions may need more.

Why does the vertical line test work?

A function gives one output per input. If a vertical line met a curve twice, one x would have two y values.

How do I know whether a parabola opens up or down?

Look at the coefficient a in ax² + bx + c. It opens upward if a is positive and downward if a is negative.

Learn this with a tutor

Sidechair's AI tutor will teach this topic in 3D. Join the waitlist for early access.

We'll only email you about Sidechair. Read our privacy policy.