Plotting and Reading Graphs

Part 14, Chapter 14: Functions and Their Graphs

Learning objectives

  • Use the vertical line test to determine if a curve is a function graph
  • Identify key features of a graph: intercepts, symmetry, extrema
  • Apply basic transformations: shifts, reflections, stretches
  • Sketch graphs of standard functions

A graph is the function's autobiography. Every input and its output appear together as a point in the plane, and the shape of the resulting curve broadcasts every important property: where the function vanishes, where it peaks, whether it is even or odd, what it does far from the origin. Learning to read graphs is the difference between manipulating symbols and actually understanding the function.

The graph as a point set

The graph of a function ff is the set of points

(x,f(x)):xintextdomain(f)subsetmathbbR2.\{(x, f(x)) : x \in \text{domain}(f)\} \subset \mathbb{R}^2.

Plotting that set on coordinate axes produces a curve. The horizontal coordinate tells you the input; the height of the curve above (or below) it tells you the output.

The vertical line test

A curve in the plane is the graph of a function if and only if every vertical line intersects it in at most one point. This is just the definition restated visually: each input xx has at most one output, so the vertical line x=ax = a can hit the curve at most once. The circle x2+y2=4x^2 + y^2 = 4 fails the test (at x=0x = 0 both y=2y = 2 and y=2y = -2 lie on it), so it is not a function graph.

Standard library

Six graphs to memorise, they recur everywhere:

  • y=xy = x, line through origin at 45^\circ.
  • y=x2y = x^2, parabola opening up, vertex at origin.
  • y=x3y = x^3, S-shaped cubic, passing through origin with a flat moment.
  • y=xy = |x|, V opening up.
  • y=sqrtxy = \sqrt{x}, right half of a sideways parabola.
  • y=1/xy = 1/x, hyperbola with two branches, asymptotes at both axes.

Transformations, shift, reflect, stretch

Starting from y=f(x)y = f(x), the transformations follow a simple grammar:

  • y=f(x)+cy = f(x) + c shifts the graph up by cc.
  • y=f(xc)y = f(x - c) shifts the graph right by cc.
  • y=f(x)y = -f(x) reflects across the xx-axis.
  • y=f(x)y = f(-x) reflects across the yy-axis.
  • y=a,f(x)y = a \, f(x) stretches vertically by a|a|.

The shifts look reversed from what you might expect, f(xc)f(x - c) moves the graph to the right, not left, because the formula asks for an xx-value cc units bigger to produce the same output.

Symmetry: even and odd

A function is even if f(x)=f(x)f(-x) = f(x) for every xx; its graph is symmetric about the yy-axis. It is odd if f(x)=f(x)f(-x) = -f(x); its graph is symmetric about the origin (rotate the plane 180^\circ and the curve maps to itself). The polynomial x4x2x^4 - x^2 is even; x3+xx^3 + x is odd. Most functions are neither.

Where this shows up
  • Data Visualisation: Every line chart, bar chart, and scatter plot is a function graph; identifying intercepts (when did sales hit zero?) and extrema (when was the peak?) is the primary language of business analytics.
  • Physics: Phase diagrams and field maps are 2D function graphs; the contour at f=0f = 0 is the zero-energy locus, and extrema correspond to equilibrium states.
  • Image Processing: Histogram-equalisation transformations on an image apply a specific function to each pixel intensity; the function's graph is exactly the lookup-table the photo editor uses to brighten or darken.

(Pick a family and drag the coefficients. Note how every transformation in the list above appears as a slider: hh shifts horizontally, kk shifts vertically, the sign of aa reflects.)

Try it

  • Predict first: for y=axy = a|x| with a=1a = -1, which way should the V open? Pick the absolute-value family and drag aa to 1-1; explain in one sentence why a negative aa flips the V.
  • Before setting: for y=x2+1y = -x^2 + 1, does the parabola open up or down, and where is its axis of symmetry? Set a=1,b=0,c=1a = -1, b = 0, c = 1 and verify it opens downward and is symmetric about the yy-axis.
  • Sketch on paper the transformation from y=x2y = x^2 to y=(x3)2+1y = -(x - 3)^2 + 1. Verify in the widget.

Pause: a function passes the vertical line test. Could its graph still be a closed curve? Why or why not?

A trap to watch for

Beginners read y=f(x3)y = f(x - 3) and shift the graph left by 3 because the formula has a minus sign. This is backwards. The shift goes in the opposite direction from what the sign suggests because f(x3)f(x - 3) is asking the original ff to accept a smaller input than xx, specifically, three less. To get the same output as the old ff produced at, say, x=0x = 0, you now need to feed in x=3x = 3. So the curve shifts to the right. Rule of thumb: solve for what xx makes the inner expression zero, and that is where the old origin lands.

What you now know

You can plot a function as a point set, decide whether a curve is a function graph (vertical line test), recognise the six standard graphs by silhouette alone, apply shifts/reflections/stretches by reading them off the formula, and test for even/odd symmetry both algebraically and visually. The next two sections introduce two profoundly important non-polynomial families, the exponential and the logarithm, whose graphs you will recognise instantly once you have spent five minutes with the widget.

Quick check

Mark section complete →

References

  • Lang, S. (1971). Basic Mathematics. Springer. Chapter 13 §3, graphs of polynomial functions, transformations.
  • Stewart, J. (2015). Calculus: Early Transcendentals, 8th ed. Cengage. Sections 1.2–1.3, the standard library, transformations, and symmetry.
  • Spivak, M. (2008). Calculus, 4th ed. Publish or Perish. Chapter 4: graphs as point sets and the vertical line test.

This page is prerendered for SEO and accessibility. The interactive widgets above hydrate on JavaScript load.