How to graph a linear function by hand

A straight-line graph does not require a graphing calculator. Start with the y-intercept, use the slope to place a second point, then draw the line. This lesson works for learners meeting linear functions in secondary mathematics and for tutors explaining them online.

Open MathBoard

What does y = 2x + 1 tell us?

A linear function in slope-intercept form is written as y = mx + b. The number b tells you where the graph crosses the vertical (y) axis; m is the slope, or change in y for each one-unit increase in x. For our example, b = 1 and m = 2.

y=2x+1y = 2x + 1

Put a point at (0, 1). A slope of 2 = 2/1 means move one unit to the right and two units up, landing at (1, 3). Repeat to reach (2, 5). Connect the points with a straight line and extend it in both directions.

Coordinate graph of y = 2x + 1 through (0, 1), (1, 3), and (2, 5), with rise two and run one annotated.
An original teaching diagram with a consistent unit scale. Recreate it manually on MathBoard using the steps below.

View the full-size graph illustration if the labels are too small on your screen.

Check the points before drawing

You can calculate a few coordinates by substituting x into y = 2x + 1. The points must line up because the change in y stays equal to twice the change in x.

xCalculationyPoint
−12(−1) + 1−1(−1, −1)
02(0) + 11(0, 1)
12(1) + 13(1, 3)
22(2) + 15(2, 5)

The table is a check, not a prerequisite: once you understand the intercept and slope, two distinct points determine the line.

Recreate the example on MathBoard

  1. Open the board. Choose Stamps and insert the Cartesian plane kit. It supplies the axes and labels, not a numbered grid or a plotted function.
  2. Set a scale. Use the Pen or Line tool to mark evenly spaced unit ticks on both axes. Label the units with Text. The same physical distance must represent one unit on each axis for the slope triangle to look proportional.
  3. Mark the intercept. Use the Pen or Circle tool to mark (0, 1). From there, count one tick to the right and two ticks upward to mark (1, 3); repeat for (2, 5).
  4. Draw the line. Use the Line tool to connect the points and extend the straight line. You are drawing it manually; MathBoard does not automatically plot an equation.
  5. Add an editable equation. Choose Formula (shortcut F), enter y = 2x + 1, check the preview and insert it beside your graph. Select the formula later to edit it again.
  6. Explain the movement. With the Pen or Line tool, draw a horizontal run of 1 and a vertical rise of 2 between two consecutive points; annotate them with Text.
MathBoard board with the Cartesian plane stamp, a blue line through (0, 1), (1, 3) and (2, 5), red dashed run one and rise two guides, and y = 2x + 1 as an editable formula.
Created in MathBoard with the Cartesian plane stamp, Line, Circle and Text annotation, and an editable Formula object. MathBoard does not plot the equation automatically.

Open the full-size MathBoard capture if the labels are too small on your screen.

Open this finished graph in MathBoard

The link loads the example as a stamp. It replaces the board currently saved in this browser, and the graph arrives as one group you can ungroup and edit.

For help with notation, see the LaTeX whiteboard guide. The same workflow works during a video call using your normal screen-sharing software. MathBoard is a drawing surface, not a built-in live graphing calculator.

Try another line: y = −x + 2

Ask the learner to find the new y-intercept, plot a second point and explain why the line slopes downward. Use exactly the same axes and one-unit spacing. Let them predict where it crosses the x-axis before showing the answer.

Check the worked answer

The intercept is (0, 2). The slope is −1: move one unit right and one unit down to get (1, 1). Another step gives (2, 0), so the x-intercept is 2. The slope is negative because y decreases as x increases.

Two mistakes worth discussing

For additional background on coordinates, see OpenStax's coordinate-system chapter. This worked example and diagram were written for MathBoard rather than copied from that resource.

Explain it on your own board

Build a line, annotate the slope and invite the student to predict the next point. MathBoard is free, open source and works in the browser without an account.

Open MathBoard About the math whiteboard