A table is a set of answers that has not yet shown its shape. When you place each input-output pair on a coordinate plane, a numerical pattern becomes something you can inspect, extend, and test.
You are beginning the fourth of five lessons in Linear Graphs, Slope, and Intercepts. In the first three lessons, you recognized linear relationships, described their constant change with slope, and interpreted intercepts; now you will use those ideas to construct a graph from the data itself.
By the end of this lesson, you will be able to:
Convert each table row into an ordered pair.
Plot points using the correct horizontal and vertical coordinates.
Construct a visible line through two distinct points.
Check that a line represents every pair in a table.
Begin by connecting three views of the same relationship: a table, a collection of points, and a straight graph.
Connect Tables, Points, and Graphs
Each row of a value table records one input-output result. Writing that row as an ordered pair places the result at a specific location on the coordinate plane.
Representation
What it shows
Value table
Separate input-output results
Ordered pair (x,y)
One result as a point
Linear graph
All the points and the straight path they share
For a linear relationship, the output changes at one constant rate as the input changes. If m is the slope, then the changes are connected by
Δy=mΔx
Here, Δx means a change in the input and Δy means the corresponding change in the output. Even when table rows use different input intervals, the same rate keeps the points on one straight line.
Translate Table Rows into Ordered Pairs
With that connection in mind, read each table row from left to right. The first value is the horizontal coordinate, and the second value is the vertical coordinate.
Input x
Output y
Ordered pair
−2
−3
(−2,−3)
0
1
(0,1)
1
3
(1,3)
3
7
(3,7)
The values in a row belong together. For example, the input −2 is paired with the output −3, so the point is (−2,−3), not (−3,−2). In a matching activity, compare both coordinates and preserve this input-output order.
Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal
Plot Points on the Coordinate Plane
Draw a Line Through Two Points
Show the Relevant Visible Segment
Build a Graph from a Value Table
Verify a Line in Context
Avoid Common Graphing Errors
Conclusion and Next Steps
To construct a linear graph, keep each table row together as an ordered pair, place the input on the horizontal axis and the output on the vertical axis, and draw one straight segment through the required points. Two distinct points determine the path, while additional rows provide a check that the graph represents the whole table. The segment must cover the visible graphing interval or the model's allowed domain.
In the practice section, you will begin by matching table rows to their points. You will then construct a visible line from two points, build one from a table, and check a travel or earnings graph one pair at a time. Keep the coordinate order and the relevant interval in view as you work.
After creating the ordered pairs, place each point using the same coordinate-reading routine:
Start at the origin, (0,0).
Move horizontally to the x-coordinate: right for a positive value and left for a negative value.
From that location, move vertically to the y-coordinate: up for a positive value and down for a negative value.
Mark the final location.
For example, plotting (−2,3) means moving 2 units left and then 3 units up. Plotting (4,−1) means moving 4 units right and then 1 unit down. The table point (−2,−3) is 2 units left and 3 units down.
Always inspect the scale before moving. If one grid square represents 2 units, then a coordinate of 4 is two squares from the origin, not four squares. When the variables have units, label the axes so that the graph shows both the locations and what they represent.
Once the points are in place, construct the single straight path they determine. Any two distinct points determine one geometric line.
Suppose the points are (1,2) and (4,8). Use the following process:
Plot both points on the same coordinate plane.
Place a straightedge or line tool so that it passes through both points.
Draw one straight path through the points without bending or changing direction.
You can use slope as a check, even though you do not need to calculate it before drawing:
m=ΔxΔy​=4−18−2​=36​=2
The value m=2 confirms that the line rises 2 units for every 1 unit it moves to the right. A curved path or a path with a corner would not represent a linear function.
For a graph written as y=f(x), the two points should have different x-coordinates. Two distinct points with the same x-coordinate form a vertical line, which is a geometric line but not a function of x.
A mathematical line continues forever, but a graphing canvas shows only a finite portion. The visible segment is the part of the line that lies inside the displayed graphing window or the allowed domain.
Given information
How far to draw
No restricted domain
Extend the line through both points until it reaches the visible window's boundaries.
A domain such as a≤x≤b
Draw only the portion whose inputs are in that interval.
A real-world starting and ending time
Stop at the meaningful endpoints, even if the mathematical line could continue farther.
The visible segment can be longer than the distance between the two provided points. Do not stop immediately after connecting those points if the task asks for the line across the visible interval.
Now combine the earlier skills using the four pairs created from the table. A reliable construction follows this sequence:
Read across every row and write each ordered pair.
Plot every point using the axis labels and scale.
Check that the points align along one straight path.
Draw one straight line through the points.
Extend the line across the required visible interval or stop at the allowed domain.
Verify that each table point still lies on the line.
The points in this example follow the rule y=2x+1. For instance, the row with x=3 gives
y=2(3)+1=7
so the point (3,7) is on the graph. The row with x=0 gives (0,1), which also provides a quick check on where the line meets the y-axis.
If one point appears to miss the line, do not bend the line to include it. First recheck the table row, the order of the coordinates, the axis scale, and the plotted location.
A graph can point upward and still be incorrect. To verify a seeded line, compare its output with the table for every listed input.
Suppose a worker's earnings include a starting amount and hourly pay. Let t represent hours worked and E represent earnings in dollars.
Time t (hours)
Recorded earnings E (dollars)
Value from E=12t+4
Match?
0
4
12(0)+4=4
Yes
1
16
12(1)+4=16
Yes
3
40
12(3)+4=40
Yes
5
64
12(5)+4=64
Yes
Every listed pair matches the line E=12t+4, so the graph represents the complete table over the domain 0≤t≤5. A different line, such as E=10t+4, would also rise, but it predicts 14 dollars when t=1 instead of the listed 16 dollars. Its direction is reasonable, but it does not represent every pair.
Use this table as a final review before constructing a graph.
Common error
Better approach
Reversing (x,y) as (y,x)
Put the input first and the output second.
Pairing values from different rows
Read across one row at a time.
Ignoring negative signs or axis scales
Check the labels before placing each point.
Moving to the vertical coordinate before locating x
Move horizontally first, then vertically.
Drawing a curve or a bent path
Use one straight line for a linear function.
Stopping at the two given points
Extend through the required visible interval.
Assuming any upward line is correct
Check the output for every listed input.
Extending a contextual graph outside its domain
Follow the allowed input values and meaningful endpoints.