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
1637 • Descartes & the Coordinate Plane
1700s • Slope-Intercept Form Emerges
1800s • Linear Models in Science
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.
Slope (m)
Y-Intercept (b)
Slope-Intercept Form
Point-Slope Form
Two Points Determine a Line
KEY TAKEAWAY
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.
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
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
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
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
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.
| Given Information | First Step | Form to Use | Final Goal |
|---|---|---|---|
| Two points (x₁, y₁) and (x₂, y₂) | Calculate slope m = (y₂ − y₁) ÷ (x₂ − x₁) | Point-slope form | y = mx + b |
| One point (x₁, y₁) and slope m | Plug into y − y₁ = m(x − x₁) | Point-slope form | y = mx + b |
| Context / word problem | Identify rate of change and starting value | Slope-intercept form directly | y = 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
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
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
Step 3 — Plug into Point-Slope Form
Choose either point. Using (2, 5): y − 5 = 2(x − 2). - 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
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
Step 1 — Identify the Variables
Let h = the number of hours worked (independent variable) and C = the total cost in dollars (dependent variable). - 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
Step 3 — Write the Equation
Substitute directly into slope-intercept form: C = 35h + 50.C = 35h + 50 - 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.
| Feature | Slope-Intercept (y = mx + b) | Point-Slope (y − y₁ = m(x − x₁)) |
|---|---|---|
| Best when you know... | Slope and y-intercept directly | Slope and any point (not necessarily the y-intercept) |
| Strengths | Easy to read slope and starting value; ideal for graphing quickly | Flexible — works with any point; great for two-point problems |
| Limitations | Requires you to already know b, which may need extra calculation | Needs an extra simplification step to reach slope-intercept form |
| Common mistakes | Confusing slope with y-intercept; sign errors with negative b | Forgetting to distribute m; sign errors with negative coordinates |
Comparison of slope-intercept and point-slope forms
KEY TAKEAWAY
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 Lesson | Where It Leads |
|---|---|
| Writing one linear equation | Systems of linear equations — finding where two lines intersect |
| Slope as a rate of change | Rate of change in calculus — the derivative is the slope of a tangent line |
| Writing equations from data points | Linear 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
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
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.