Grade 9 Math • Algebra & Functions

Writing Linear Equations — I can write a linear equation from two points, a point and slope, or a context.

Master the skill of translating real-world relationships into the language of linear equations.

Grade 9 Math emblem with a calculator, geometric shapes, and line graph
Inside this lesson 10 sections 5 questions 8 figures

SECTION 1

Historical Context & Motivation

Long before anyone typed an equation into a graphing calculator, mathematicians were grappling with one of the most fundamental questions in all of science: how do you describe a straight-line relationship between two quantities? Ancient civilizations from Babylon to Egypt used tables of values to track trade, predict floods, and survey land. These early thinkers noticed that when one quantity changed at a constant rate relative to another, the pattern was always a straight line. Formalizing that observation into a concise equation took centuries of mathematical development.

~300 BCE • Euclid's Elements

Euclid formalized geometry, including the properties of lines and their slopes, laying the groundwork for analytic descriptions of linear relationships.

1637 • Descartes & the Coordinate Plane

René Descartes published his coordinate system, merging algebra and geometry. For the first time, equations could represent geometric shapes like lines on a grid.

1700s • Slope-Intercept Form Emerges

Mathematicians standardized the notation y = mx + b, giving students and scientists a compact way to express any linear relationship using slope and y-intercept.

1800s • Linear Models in Science

Physicists and engineers began using linear equations extensively to model motion, electrical resistance (Ohm's Law), and economic trends, proving the equation's real-world power.

Today, the ability to write a linear equation from data — whether it comes from two points, a single point with a known slope, or a word problem — is one of the most versatile skills in algebra. It connects pure math to real-world modeling and prepares you for everything from statistics to calculus. The central question this lesson answers is: given limited information about a linear relationship, how do you write its equation?

SECTION 2

Core Principles & Definitions

Before writing any equation, you need a solid grasp of the building blocks. A linear equation is an equation whose graph is a straight line. Every linear equation in two variables can be written in the form y = mx + b, where m represents the slope and b represents the y-intercept. Understanding what each piece means and where it comes from is the key to writing equations confidently.

1

Slope (m)

The slope measures the rate of change — how much y changes for every one-unit increase in x. It is calculated as rise over run: m = (y₂ − y₁) ÷ (x₂ − x₁).
2

Y-Intercept (b)

The y-intercept is the point where the line crosses the y-axis (where x = 0). In y = mx + b, the value b tells you the starting value of y when x is zero.
3

Slope-Intercept Form

The form y = mx + b is called slope-intercept form because the slope and y-intercept are directly visible. This is the most common target form when writing linear equations.
4

Point-Slope Form

When you know a point (x₁, y₁) and the slope m, use point-slope form: y − y₁ = m(x − x₁). This is your go-to when the y-intercept is not immediately obvious.
5

Two Points Determine a Line

A fundamental geometric fact: exactly one line passes through any two distinct points. So if you have two points, you have enough information to find the slope and then write the full equation.
✦

KEY TAKEAWAY

Think of a linear equation like a recipe for a line. The slope is the angle of the ramp, and the y-intercept is where the ramp starts on the ground floor. If someone tells you the steepness and the starting point, you can build the entire ramp — just like writing y = mx + b builds the entire line.

SECTION 3

Visual Explanation — Anatomy of a Linear Equation

The diagram below shows a coordinate plane with a line passing through two labeled points. Notice how the slope triangle connects the two points, and the y-intercept is clearly marked where the line crosses the vertical axis. This visual breaks down exactly how the pieces of y = mx + b relate to what you see on the graph.

Anatomy of y = 2x + 1xy1234123(0, 1) — y-intercept (b = 1)(1, 3)(2, 5)rise = 2run = 1Equation Breakdowny = 2x + 1m = 2 (slope) b = 1 (y-int)
The line y = 2x + 1 is shown passing through the points (0, 1), (1, 3), and (2, 5). The pink dashed line shows the rise of 2, while the green dashed line shows the run of 1, giving a slope of 2. The yellow point marks the y-intercept at (0, 1).

In the diagram, the slope triangle makes the concept of rise over run tangible. Every time x increases by 1, y increases by 2 — that constant rate of change is the essence of linearity. The y-intercept at (0, 1) is the starting value, the point where the story of the line begins on the y-axis. When you write the equation y = 2x + 1, you are encoding both the steepness and the starting position into a single compact expression.

SECTION 4

Mathematical Framework

There are three main scenarios you will encounter when writing a linear equation. Each uses a slightly different entry point, but all roads lead to the same destination: an equation of the form y = mx + b. Let's formalize each pathway.

Pathway 1: Given a Point and Slope

POINT-SLOPE FORM

y−y1=m(x−x1)y − y₁ = m(x − x₁)

Where m is the slope, and (x₁, y₁) is the given point on the line. Distribute and isolate y to convert to slope-intercept form.

When you are given a point and a slope, plug them directly into point-slope form. Then simplify by distributing m across the parentheses and adding y₁ to both sides to solve for y.

Pathway 2: Given Two Points

SLOPE FORMULA

m=(y2−y1)÷(x2−x1)m = (y₂ − y₁) ÷ (x₂ − x₁)

First, calculate the slope using the two given points (x₁, y₁) and (x₂, y₂). Then choose either point and plug into point-slope form to write the equation.

Pathway 3: Given a Context (Word Problem)

SLOPE-INTERCEPT FORM

y=mx+by = mx + b

In context problems, identify the rate of change (slope m) and the initial value (y-intercept b) from the problem description. Assign x and y to the appropriate quantities.

💡

Strategy Tip

When a word problem says "per" (per hour, per mile, per item), that phrase almost always signals the slope. When it mentions a starting fee, flat charge, or initial amount, that's the y-intercept.

SECTION 5

Comparing the Three Pathways

The flowchart below provides a decision tree you can follow whenever you need to write a linear equation. Start at the top, determine what information you have, and follow the arrows to the appropriate method. After the flowchart, a comparison table summarizes the key differences among the three pathways.

Decision Tree: Writing a Linear EquationWhat info do you have?Two PointsPoint + SlopeContext / Word ProblemStep 1: Find slope usingm = (y₂−y₁)/(x₂−x₁)Step 2: Use either point iny−y₁ = m(x−x₁)Step 1: Plug point & slope intoy−y₁ = m(x−x₁)Step 1: Identify rate (m)and initial value (b)Step 2: Write directly asy = mx + bSimplify to y = mx + bFinal slope-intercept form ✓
This decision tree guides you from your starting information — two points, a point and slope, or a context/word problem — all the way to the final equation in slope-intercept form.
Given InformationFirst StepForm to UseFinal Goal
Two points (x₁, y₁) and (x₂, y₂)Calculate slope m = (y₂ − y₁) ÷ (x₂ − x₁)Point-slope formy = mx + b
One point (x₁, y₁) and slope mPlug into y − y₁ = m(x − x₁)Point-slope formy = mx + b
Context / word problemIdentify rate of change and starting valueSlope-intercept form directlyy = mx + b

Summary of the three pathways for writing linear equations

SECTION 6

Worked Examples

Example A: From Two Points

Write the equation of the line that passes through the points (2, 5) and (6, 13).

Writing an Equation from Two Points

  1. 1

    Step 1 — Identify the Given Points

    We are given two points: (x₁, y₁) = (2, 5) and (x₂, y₂) = (6, 13). Since we have two points, our first task is to calculate the slope.
  2. 2

    Step 2 — Calculate the Slope

    Using the slope formula: m = (y₂ − y₁) ÷ (x₂ − x₁) = (13 − 5) ÷ (6 − 2) = 8 ÷ 4 = 2. The line rises 2 units for every 1 unit it moves to the right.
    m = 2
  3. 3

    Step 3 — Plug into Point-Slope Form

    Choose either point. Using (2, 5): y − 5 = 2(x − 2).
  4. 4

    Step 4 — Simplify to Slope-Intercept Form

    Distribute: y − 5 = 2x − 4. Add 5 to both sides: y = 2x − 4 + 5 = 2x + 1.
    y = 2x + 1
  5. 5

    Step 5 — Verify

    Check with the second point (6, 13): y = 2(6) + 1 = 13 ✓. The equation is correct.

Example B: From a Context

A plumber charges a $50 service fee plus $35 per hour of labor. Write a linear equation for the total cost C in terms of hours h.

Writing an Equation from a Context

  1. 1

    Step 1 — Identify the Variables

    Let h = the number of hours worked (independent variable) and C = the total cost in dollars (dependent variable).
  2. 2

    Step 2 — Identify Slope and Y-Intercept

    The rate of change is $35 per hour, so m = 35. The service fee of $50 is charged regardless of hours worked, making it the initial value: b = 50.
    m = 35, b = 50
  3. 3

    Step 3 — Write the Equation

    Substitute directly into slope-intercept form: C = 35h + 50.
    C = 35h + 50
  4. 4

    Step 4 — Verify with a Test Case

    If the plumber works 3 hours: C = 35(3) + 50 = 105 + 50 = $155. This makes sense — $50 service fee plus $105 for labor.

SECTION 7

Strengths, Limitations & When to Use Each Form

Slope-intercept form and point-slope form are two ways to express the same line. Each has advantages depending on the situation. Understanding when to reach for each form will save you time and reduce errors.

FeatureSlope-Intercept (y = mx + b)Point-Slope (y − y₁ = m(x − x₁))
Best when you know...Slope and y-intercept directlySlope and any point (not necessarily the y-intercept)
StrengthsEasy to read slope and starting value; ideal for graphing quicklyFlexible — works with any point; great for two-point problems
LimitationsRequires you to already know b, which may need extra calculationNeeds an extra simplification step to reach slope-intercept form
Common mistakesConfusing slope with y-intercept; sign errors with negative bForgetting to distribute m; sign errors with negative coordinates

Comparison of slope-intercept and point-slope forms

✦

KEY TAKEAWAY

Think of slope-intercept form as the GPS destination — it tells you exactly where the line is and where it's headed. Point-slope form is like a set of directions from wherever you currently stand. Both get you to the same place; the best choice depends on your starting information.

SECTION 8

Connection to Advanced Topics

Writing linear equations is not just a standalone skill — it is the launchpad for several major topics you will encounter later in mathematics. Understanding how this concept extends will help you appreciate why mastering it now pays dividends.

This LessonWhere It Leads
Writing one linear equationSystems of linear equations — finding where two lines intersect
Slope as a rate of changeRate of change in calculus — the derivative is the slope of a tangent line
Writing equations from data pointsLinear regression in statistics — finding the best-fit line through many data points
y = mx + b (one variable output)Linear functions in multiple variables and matrix algebra

How writing linear equations connects to future math courses

In Algebra 2 and Pre-Calculus, you will extend these ideas to non-linear functions — quadratic, exponential, and logarithmic — where the equation-writing process becomes more complex but follows the same logical pattern: identify the key features of the relationship, then encode them into the correct equation form. The habits you build now — identifying slope, choosing the right form, and checking your work — transfer directly to those more advanced settings.

SECTION 9

Practice Problems

Test your understanding with these five problems, arranged from conceptual to challenging. Try each one on paper before reading the answer.

Question 1: CONCEPTUAL

A line has a slope of 4 and passes through the point (0, −3). Without performing any calculations, what is the equation of the line in slope-intercept form? Explain your reasoning.
Show answer
The equation is y = 4x − 3. Since the point (0, −3) is the y-intercept (x = 0), the value of b is −3. The slope m is given as 4. In slope-intercept form y = mx + b, you simply place these values directly: y = 4x + (−3) = 4x − 3. No calculation is needed because the given point is already the y-intercept.

Question 2: BASIC CALCULATION

Write the equation of the line with slope m = −2 that passes through the point (3, 7). Express your answer in slope-intercept form.
Show answer
Start with point-slope form: y − 7 = −2(x − 3). Distribute: y − 7 = −2x + 6. Add 7 to both sides: y = −2x + 13. To verify, substitute x = 3: y = −2(3) + 13 = −6 + 13 = 7, which matches the given point. The final equation is y = −2x + 13.

Question 3: INTERMEDIATE

Find the equation of the line passing through (−1, 4) and (5, −8). Give your answer in slope-intercept form.
Show answer
First, find the slope: m = (−8 − 4) ÷ (5 − (−1)) = −12 ÷ 6 = −2. Next, use point-slope form with the point (−1, 4): y − 4 = −2(x − (−1)), which simplifies to y − 4 = −2(x + 1). Distribute: y − 4 = −2x − 2. Add 4: y = −2x + 2. Checking with (5, −8): y = −2(5) + 2 = −10 + 2 = −8 ✓. The equation is y = −2x + 2.

Question 4: APPLIED

A gym membership costs $25 per month plus a one-time enrollment fee. After 4 months, a member has paid a total of $150. Write a linear equation for the total cost C in terms of the number of months m, and determine the enrollment fee.
Show answer
The rate of change (slope) is $25/month. The equation has the form C = 25m + b, where b is the enrollment fee. We know that when m = 4, C = 150. Substituting: 150 = 25(4) + b → 150 = 100 + b → b = 50. The enrollment fee is $50, and the equation is C = 25m + 50. You can verify: after 1 month, C = 25(1) + 50 = $75; after 4 months, C = 25(4) + 50 = $150 ✓.

Question 5: CRITICAL THINKING

Two lines pass through the point (2, 6). Line A also passes through (0, 2), and Line B also passes through (4, 6). Write the equation of each line in slope-intercept form. Then explain why these two lines are very different despite sharing a common point. What does Line B's slope tell you geometrically?
Show answer
For Line A: m = (6 − 2) ÷ (2 − 0) = 4 ÷ 2 = 2, and the y-intercept is (0, 2), so the equation is y = 2x + 2. For Line B: m = (6 − 6) ÷ (4 − 2) = 0 ÷ 2 = 0, so the equation is y = 0x + 6, which simplifies to y = 6. Line A is a diagonal line rising at a rate of 2 units per 1 unit, while Line B is a horizontal line. Despite sharing the point (2, 6), they have completely different slopes and therefore completely different behaviors. Line B's slope of 0 means y never changes — it is a constant function. This demonstrates that a single point does not determine a line; you need either a second point or a slope to define the line uniquely.

SUMMARY

Lesson Summary

Summary

Writing a linear equation means translating information about a straight-line relationship into the form y = mx + b. When you are given two points, first calculate the slope using m = (y₂ − y₁) ÷ (x₂ − x₁), then plug one point and the slope into point-slope form and simplify. When you are given a point and a slope, skip straight to point-slope form. When a word problem gives you a context, identify the rate of change as the slope and the initial or fixed value as the y-intercept.

The key to success is recognizing which type of information you have, choosing the right starting form, and always verifying your final equation by substituting a known point. These skills form the foundation for systems of equations, linear regression, and ultimately the concept of rate of change in calculus. Master these three pathways, and you'll have a tool that serves you across all of mathematics.

Varsity Tutors • Grade 9 Math • Writing Linear Equations