The graph of a function
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).
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).
How to read a graph
| Feature | On the graph | What it means |
|---|---|---|
| y-intercept | Where it crosses the y-axis | f(0) |
| x-intercepts (roots) | Where it crosses the x-axis | Solutions of f(x) = 0 |
| Increasing | Rising from left to right | A positive derivative |
| Decreasing | Falling from left to right | A negative derivative |
| Local maximum or minimum | The top of a hill or bottom of a valley | A turning point, where the derivative is 0 |
| Domain and range | The x and y values it covers | See domain and range |
| Asymptote | A line the curve approaches | See asymptotes |
How to graph a function
- Make a table of values. Choose some x values, including negatives and zero, and work out y for each.
- Plot the points on a set of axes.
- Join them with a smooth curve, unless the function has a jump or an asymptote.
- 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.
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?
How do you tell if a graph is a function?
What is an even function?
How do you find where a function is increasing?
What is the difference between a function and an equation?
Keep going
Every figure on this page opens in ihateDesmos, where you can drag sliders and watch the graph respond.