Mathwords logoMathwords

Graph — Definition, Formula & Examples

A graph is a visual representation of data or a mathematical relationship, drawn on a set of axes. In coordinate geometry, a graph shows all the points (x,y)(x, y) that satisfy an equation or function.

Given a relation or function ff, the graph of ff is the set of all ordered pairs {(x,y)y=f(x)}\{(x, y) \mid y = f(x)\} plotted on the Cartesian coordinate plane. More broadly, a graph is any diagram that displays numerical information using points, lines, bars, or curves relative to reference axes.

How It Works

To graph an equation like y=2x+1y = 2x + 1, you pick several values of xx, calculate the corresponding yy-values, and plot each (x,y)(x, y) pair as a point on the coordinate plane. Then you connect the points to reveal the shape of the relationship. A straight line means the equation is linear; a curve means it is nonlinear. Reading a graph works in reverse — you locate a point on the curve and read its xx- and yy-coordinates from the axes.

Worked Example

Problem: Graph the equation y=2x+1y = 2x + 1 by plotting points for x=1,0,1,2x = -1, 0, 1, 2.
Step 1: Substitute each xx-value into the equation to find yy.
x = -1 \Rightarrow y = 2(-1)+1 = -1$$$$x = 0 \Rightarrow y = 1$$$$x = 1 \Rightarrow y = 3$$$$x = 2 \Rightarrow y = 5
Step 2: Plot the ordered pairs (1,1)(-1, -1), (0,1)(0, 1), (1,3)(1, 3), and (2,5)(2, 5) on the coordinate plane.
Step 3: Draw a straight line through the four points. This line is the graph of y=2x+1y = 2x + 1.
Answer: The graph is a straight line passing through (1,1)(-1, -1), (0,1)(0, 1), (1,3)(1, 3), and (2,5)(2, 5) with slope 2 and yy-intercept 1.

Why It Matters

Graphing turns abstract equations into pictures you can analyze at a glance — spotting where a line crosses zero, where two curves intersect, or whether a quantity is increasing or decreasing. Science classes, economics, and data analysis all rely on reading and creating graphs daily.

Common Mistakes

Mistake: Mixing up the order of coordinates and plotting (y,x)(y, x) instead of (x,y)(x, y).
Correction: Always move horizontally first (the xx-value), then vertically (the yy-value). The first number in an ordered pair is the horizontal position.