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.

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?

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.

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.

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.

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 − 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 = (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 + 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.

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.

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.
Summary of the three pathways for writing linear equations
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

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
Step 1 — Identify the Given PointsWe 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
Step 2 — Calculate the SlopeUsing 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
Step 3 — Plug into Point-Slope FormChoose either point. Using (2, 5): y − 5 = 2(x − 2).
4
Step 4 — Simplify to Slope-Intercept FormDistribute: y − 5 = 2x − 4. Add 5 to both sides: y = 2x − 4 + 5 = 2x + 1.
y = 2x + 1
5
Step 5 — VerifyCheck 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
Step 1 — Identify the VariablesLet h = the number of hours worked (independent variable) and C = the total cost in dollars (dependent variable).
2
Step 2 — Identify Slope and Y-InterceptThe 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
Step 3 — Write the EquationSubstitute directly into slope-intercept form: C = 35h + 50.
C = 35h + 50
4
Step 4 — Verify with a Test CaseIf the plumber works 3 hours: C = 35(3) + 50 = 105 + 50 = $155. This makes sense — $50 service fee plus $105 for labor.

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.

Comparison of slope-intercept and point-slope forms
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
✦ 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.

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.

How writing linear equations connects to future math courses
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

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.

Practice Problems

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

PROBLEM 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.
PROBLEM 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.
PROBLEM 3 — INTERMEDIATE
Find the equation of the line passing through (−1, 4) and (5, −8). Give your answer in slope-intercept form.
PROBLEM 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.
PROBLEM 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?

Lesson 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