Recent chats

How can I sketch a straight-line function from its slope and intercept?

Quick answer

For a function in the form y = mx + b, plot the y-intercept at (0, b). Then use the slope m as rise over run: move vertically by its numerator and horizontally by its denominator to locate another point. Plot a second point and draw a straight line through both. For a negative slope, the vertical move goes down when you move right. [S1]

LET’S WORK THROUGH IT

The question, the details, the next step.

Question

I have a line written as y = mx + b. What should I plot first? I’m not sure how to turn the equation into points.

Geez

Start with b, the y-intercept. It tells you where the line crosses the vertical y-axis, so plot the point (0, b). For example, if b is 5, your first point is (0, 5). Then look at m, the slope: it tells you the rise-and-run step between points. [S1]

A useful order is: identify b, mark (0, b), rewrite m as a fraction if needed, and use that fraction to find another point. You need at least two points to draw the line.

Follow-up question

How do I use the slope if it’s negative or a fraction? I mix up which way to move.

Geez

Read slope as rise over run: the numerator is the vertical change and the denominator is the horizontal change. With a negative slope, you can move down and right, or up and left; those are opposite directions along the same line. [S1]

For instance, in y = −(2/3)x + 5, the intercept is (0, 5). From there, move down 2 and right 3 to reach (3, 3). Repeat the same step to get (6, 1). This uses the negative direction and the fractional size of the slope; the example and plotting method follow OpenStax. [S1]

Follow-up question

Could you walk me through the actual sketch, including what to do after I have the points?

Geez

Using y = −(2/3)x + 5:

  1. Mark the intercept (0, 5) on the graph.
  2. From that point, go down 2 units and right 3 units; mark (3, 3).
  3. Repeat down 2 and right 3; mark (6, 1).
  4. Draw a straight line through the plotted points and extend it in both directions.

That sequence—plot the intercept, use rise over run to find points, then draw the line through them—is the recommended approach in the cited explanation. [S1] As a quick check, the marked points should follow the same step each time. If your paper’s scale is unusual or a point falls off the visible grid, choose another convenient point by stepping up 2 and left 3 from the intercept.

Follow-up question

What if the graph doesn’t show the point I expect, or I want to avoid a sign mistake?

Geez

Check the coordinates and the direction separately. The intercept always has x-coordinate 0. For a negative slope written as −2/3, a move to the right must pair with a move down; moving right 3 and up 2 would show a positive slope instead. [S1]

Here’s a copyable plotting note: Equation: y = −(2/3)x + 5 Start: (0, 5) Step: right 3, down 2 Next points: (3, 3), (6, 1) Finish: draw a straight line through the points

The cited example establishes this intercept-and-step method. It does not specify a particular graph-paper scale or how to handle a graph whose visible range is limited, so adapt the step to your grid or use the opposite direction. The line is a sketch; the plotted points are a way to check it.

A practical checklist

  • Write the equation in the form y = mx + b.

  • Plot the y-intercept at (0, b).

  • Express the slope as rise over run, keeping track of its sign.

  • Use the slope step to plot another point; repeat if useful.

  • Draw a straight line through the points and check the direction.

A few more useful answers

Can I move left instead of right when using the slope?

Yes. Reverse both parts of the step: for a slope of −2/3, move left 3 and up 2 instead of right 3 and down 2. Both moves follow the same line.

What if the slope is a whole number, like 4?

Treat 4 as 4/1: move up 4 and right 1 for a positive slope, or use the corresponding opposite vertical direction for a negative slope.

Do I need to plot more than two points?

Two points determine the line to draw in this plotting method. A third point can help you check that you followed the same rise-and-run step consistently.

Sources

References used for this guide.

  1. [S1] OpenStax Precalculus: Graphing Linear Functions Using Intercept and Slope
    openstax.org · Checked

YOUR QUESTION. YOUR DETAILS.

Let’s work through your situation.

Get a tailored answer or help with your next task. Starts at $1, with a quote before you pay.

Ask your own question
← Back to Geez at Work