Skip to content
ihateDesmos

The graph of a function

6 min read · Updated 6 November 2026

The graph of a function is the picture of every point (x, y) where y = f(x). It shows at a glance what a formula hides: where the function is positive, where it rises and falls, and where it reaches a peak.

What is the graph of a function?

A function takes an input x and gives exactly one output, f(x). Plot each pair (x, f(x)), and the points form a curve. So the height of the graph above any x is the function’s value there: if f(3) = 7, the graph passes through (3, 7).

−3−2−1123−2240
Open in calculator
The graph of
y=x3−3x+1
, with its intercepts and turning points marked.

The vertical line test

A curve is the graph of a function only if every vertical line crosses it at most once. If a vertical line hits it twice, one x would have two outputs, which a function isn’t allowed. A parabola opening upward passes this test. A circle fails it, which is why a circle is written as an equation, not as y = f(x).

−4−224−2240
Open in calculator
The dashed line crosses the parabola once (a function), and the circle twice (not a function).

How to read a graph

FeatureOn the graphWhat it means
y-interceptWhere it crosses the y-axisf(0)
x-intercepts (roots)Where it crosses the x-axisSolutions of f(x) = 0
IncreasingRising from left to rightA positive derivative
DecreasingFalling from left to rightA negative derivative
Local maximum or minimumThe top of a hill or bottom of a valleyA turning point, where the derivative is 0
Domain and rangeThe x and y values it coversSee domain and range
AsymptoteA line the curve approachesSee asymptotes

How to graph a function

  1. Make a table of values. Choose some x values, including negatives and zero, and work out y for each.
  2. Plot the points on a set of axes.
  3. Join them with a smooth curve, unless the function has a jump or an asymptote.
  4. Check the features. Find the intercepts, and look for anything the formula makes undefined.

Even and odd functions

Even functions are symmetric about the y-axis: f(−x) = f(x). Fold the graph along the y-axis, and the halves match. Examples are x², |x| and cos x.

Odd functions have rotational symmetry about the origin: f(−x) = −f(x). Rotate the graph by 180° about the origin, and it looks the same. Examples are x³, 1/x and sin x.

Most functions are neither. The names come from the powers: x² and x⁴ are even, while x and x³ are odd.

−2−112−220
Open in calculator
An even function,
y=x2
, in blue, and an odd function,
y=x3
, in red.

Families of graphs

Most graphs are variations on a few parent functions. Know the basic shapes, and you can sketch many functions at sight, using transformations to shift and stretch them. Our graph reference covers the common ones in detail.

Frequently asked questions

What is the graph of a function?
The set of all points (x, y) with y = f(x), drawn on a coordinate plane.
How do you tell if a graph is a function?
Use the vertical line test. If any vertical line crosses the graph more than once, it isn’t a function.
What is an even function?
A function with f(−x) = f(x), so its graph is symmetric about the y-axis.
How do you find where a function is increasing?
Read the graph from left to right: it is increasing wherever it rises. With calculus, that is where the derivative is positive.
What is the difference between a function and an equation?
A function gives exactly one output for each input. An equation like x² + y² = 4 relates x and y, but may not define y as a function of x.

Keep going

Try it in the calculator

Every figure on this page opens in ihateDesmos, where you can drag sliders and watch the graph respond.

Open the calculator