← Blog
October 1, 2024Β·Pengi AI Team

How to Graph and Solve a Linear Function Step by Step

A clear Algebra 1 guide explaining what linear functions are, how to identify slope and intercepts from the equation y = mx + b, and how to graph them step by step. Includes worked examples for finding slope from two points, and calculating x- and y-intercepts.

algebralinear functionsgraphingslopeAlgebra 1

Pengi Editor's Note: This article was originally published by Think Academy. We're sharing it here for educational value. Think Academy is a leading K-12 math education provider.

How to Graph and Solve a Linear Function Step by Step

Understanding how to graph linear functions is a key Algebra 1 skill. In this guide, we'll explain what linear functions are, how to graph them, and how slope and intercepts workβ€”complete with examples.

What Is a Linear Function?

A linear function is a function whose graph is a straight line. Its general form is:

𝑦 = π‘šπ‘₯ + 𝑏

where:

  • π‘š is the slope (rate of change)
  • 𝑏 is the y-intercept (where the line crosses the y-axis)

Key Features of a Linear Function Graph

1. Slope

The slope tells us how steep the line is:

[ \text{Slope} = \frac{\Delta y}{\Delta x} ]

  • If a line is horizontal, the slope is 0
  • If a line is vertical, the slope is undefined

2. Increasing or Decreasing

  • Increasing if π‘š > 0 (line goes up)
  • Constant if π‘š = 0 (line is flat)
  • Decreasing if π‘š < 0 (line goes down)

3. X-Intercept

The x-intercept is where the line crosses the x-axis (when 𝑦 = 0).

Example: in 𝑦 = 2π‘₯ + 3, set 𝑦 = 0:

0 = 2x + 3 β†’ x = βˆ’3/2

4. Y-Intercept

The y-intercept is the constant 𝑏 in 𝑦 = π‘šπ‘₯ + 𝑏. Set π‘₯ = 0 to find it.

Example: in 𝑦 = 2π‘₯ + 3, the y-intercept is (0, 3).

Example Problems

Example 1

Problem: A line passes through (2, 7) and (8, 4). What is the slope?

Solution:

[ \text{Slope} = \frac{4 - 7}{8 - 2} = \frac{-3}{6} = -\frac{1}{2} ]

Example 2

Problem: What are the x-intercept and y-intercept of 𝑦 = 4π‘₯ – 5?

Solution:

  • y-intercept: set π‘₯ = 0 β†’ 𝑦 = βˆ’5, so (0, βˆ’5)
  • x-intercept: set 𝑦 = 0 β†’ 4π‘₯ = 5 β†’ π‘₯ = 5/4, so (5/4, 0)

Summary

  • A linear function has the form 𝑦 = π‘šπ‘₯ + 𝑏
  • Slope (m) tells us the steepness and direction
  • Y-intercept (b) is where the line crosses the y-axis (set π‘₯ = 0)
  • X-intercept is where the line crosses the x-axis (set 𝑦 = 0)

Try Pengi AI β€” Smarter Math Practice for Students

Pengi AI supports K–12 learners with personalized math practice, guided explanations, and feedback designed to help them build confidence and improve steadily.

Start for free at pengi.ai β†’

Related Pengi Guides

If you're reading about this topic, these Pengi pages are the most relevant next steps.