A graph shows the points whose coordinates satisfy an equation or describe a set of data. To graph an equation in two variables, identify suitable ordered pairs, plot them on coordinate axes, and use the equation’s structure to understand the shape between them.
Coordinates and axes
In the Cartesian plane, the horizontal axis is the x-axis and the vertical axis is the y-axis. They meet at the origin, \((0,0)\). An ordered pair \((x,y)\) gives the horizontal coordinate first and the vertical coordinate second.
To plot \((3,-2)\), move three units right from the origin and two units down. For \((-1,4)\), move one unit left and four units up. Use a consistent scale on each axis and label the units when the coordinates represent measurements.
A plotted point is not automatically a vertex. A vertex is a special point in a particular setting, such as a corner of a polygon or the turning point of a parabola.
Graphing a straight line
Consider \(y=2x+1\). Choose some x-values and calculate the corresponding y-values:
- If \(x=-1\), then \(y=-1\).
- If \(x=0\), then \(y=1\).
- If \(x=1\), then \(y=3\).
Plot \((-1,-1)\), \((0,1)\), and \((1,3)\). These points lie on a straight line. Two distinct points determine a line; the third helps check the arithmetic.
The coefficient 2 is the slope: y increases by 2 for every increase of 1 in x. The constant 1 is the y-intercept. See how to calculate slope for more examples.
Finding intercepts
An intercept is a point where a graph meets an axis:
- To find a y-intercept, set \(x=0\).
- To find x-intercepts, set \(y=0\) and solve for x.
For \(y=2x+1\), the y-intercept is \((0,1)\). Solving \(0=2x+1\) gives \(x=-\tfrac12\), so the x-intercept is \((-\tfrac12,0)\). Some graphs have several intercepts; others have none on one or both axes.
Graphing a parabola
For \(y=x^2-4\), calculate points on both sides of zero:
\[(-3,5),\ (-2,0),\ (-1,-3),\ (0,-4),\ (1,-3),\ (2,0),\ (3,5).\]
Draw a smooth U-shaped curve through them. Its vertex is \((0,-4)\), its axis of symmetry is \(x=0\), and its x-intercepts are \((-2,0)\) and \((2,0)\).
The quadratic formula can find roots of quadratic equations, which helps locate x-intercepts of parabolas. It is not a general method for finding coordinates on every kind of graph.
Check the domain before joining points
A table gives selected points, not a guarantee that every point between them belongs to the graph. Consider \(y=1/x\). It is undefined at \(x=0\), so its two branches must not be joined across the y-axis.
Likewise, \(y=\sqrt{x}\) has real values only for \(x\ge0\). If x counts whole objects, the meaningful graph may consist of separate points rather than a continuous curve.
Before drawing, ask which input values are allowed and whether the relationship is continuous. Our guide to asymptotes explores another feature that a few plotted points can miss.
Graphs of equations and graphs of data
An equation’s graph represents all coordinate pairs satisfying that equation. A scatterplot instead displays observed pairs of measurements. A bar chart compares categories, while a line chart can show change over time. These diagrams answer different questions and should not be treated as interchangeable.
For any graph, label axes, choose a readable scale, and check whether the picture supports the conclusion you intend to draw. A graphing calculator can help explore a shape, but the viewing window and the equation’s domain still matter.
Further reading
OpenStax introduces coordinate systems, ordered pairs, and intercepts.