SECTION 1
Historical Context & Motivation
Long before graphing calculators or computers, people needed ways to describe relationships that change at a constant rate. Farmers tracked crop growth, merchants calculated profits, and engineers planned roads — all situations where one quantity depends on another in a straight-line pattern. The idea of capturing these relationships in a single equation is one of the most powerful tools in all of mathematics, and its roots stretch back thousands of years.
~300 BCE • Euclid's Elements
~850 CE • Al-Khwarizmi's Algebra
1637 • Descartes and the Coordinate Plane
1800s • Industrial-Era Applications
The central question driving this lesson is deceptively simple: given some information about a straight-line relationship — whether it's two points, a point and a slope, or a real-world scenario — how do you write the equation that captures that relationship? This skill is foundational for nearly every topic you will encounter in algebra, geometry, statistics, and beyond.
SECTION 2
Core Principles & Definitions
Before writing any equation, you need a solid understanding of the building blocks that define every linear relationship. A linear equation is an equation whose graph is a straight line and can be expressed in several equivalent forms. The two most common are slope-intercept form (y = mx + b) and point-slope form (y − y₁ = m(x − x₁)). Each form highlights different information, and choosing the right one depends on what data you start with.
Slope (m)
Y-Intercept (b)
Point-Slope Form
Slope-Intercept Form
Context Clues
KEY TAKEAWAY
SECTION 3
Visual Explanation — The Three Pathways
There are three main pathways for writing a linear equation, and each starts from different given information. The diagram below maps out these pathways, showing how they all converge on the same final result: a linear equation in slope-intercept form.
Notice that every pathway involves finding or knowing the slope and at least one point on the line. That's all you ever need to write a unique linear equation. Pathway B is the most direct because you already have both pieces. Pathway A requires one extra step — computing the slope from two points. Pathway C demands the most interpretation because you must extract the mathematical components from a word problem before you can begin.
SECTION 4
Mathematical Framework
Let's formalize the three key formulas you will use repeatedly when writing linear equations. Each one plays a specific role, and understanding when to reach for each formula is just as important as knowing the formula itself.
SLOPE FORMULA
Where (x₁, y₁) and (x₂, y₁) are two distinct points on the line. The numerator y₂ − y₁ is the rise (vertical change), and the denominator x₂ − x₁ is the run (horizontal change). Be careful: a negative rise means the line falls from left to right.
POINT-SLOPE FORM
Where m is the slope and (x₁, y₁) is any known point on the line. This form is the workhorse for equation writing because it can be used any time you know the slope and a single point — which is every pathway.
SLOPE-INTERCEPT FORM
Where m is the slope and b is the y-intercept (the y-value when x = 0). This is typically the final form your answer should be in. To convert from point-slope form, distribute the slope, then isolate y.
When to Use Which Form
SECTION 5
Detailed Breakdown — Each Method in Action
Let's examine each of the three methods more closely. The diagram below shows a coordinate plane with a line passing through two labeled points, illustrating how the slope formula connects to the visual rise and run. Then we'll walk through the algebraic steps for each method.
Method A — From Two Points
- Step 1: Label the two points as (x₁, y₁) and (x₂, y₂).
- Step 2: Calculate the slope: m = (y₂ − y₁) / (x₂ − x₁).
- Step 3: Substitute m and either point into point-slope form: y − y₁ = m(x − x₁).
- Step 4: Simplify to slope-intercept form: y = mx + b.
Method B — From a Point and Slope
- Step 1: Identify the given slope m and point (x₁, y₁).
- Step 2: Substitute directly into point-slope form: y − y₁ = m(x − x₁).
- Step 3: Distribute and solve for y to get slope-intercept form.
Method C — From a Context
- Step 1: Identify the independent variable (x) and dependent variable (y).
- Step 2: Find the constant rate of change — this is your slope m.
- Step 3: Identify a known data pair (x₁, y₁) or the initial value (y-intercept b).
- Step 4: Write the equation in slope-intercept form, defining each variable in context.
SECTION 6
Worked Examples
Example 1 — Writing an Equation from Two Points
- 1
Step 1 — Identify the Two Points
A line passes through the points (2, 5) and (6, 13). Label them: (x₁, y₁) = (2, 5) and (x₂, y₂) = (6, 13). - 2
Step 2 — Calculate the Slope
Apply the slope formula: m = (y₂ − y₁) / (x₂ − x₁) = (13 − 5) / (6 − 2) = 8 / 4.m = 2 - 3
Step 3 — Write Point-Slope Form
Substitute m = 2 and the point (2, 5) into point-slope form: y − 5 = 2(x − 2). - 4
Step 4 — Convert to Slope-Intercept Form
Distribute: y − 5 = 2x − 4. Add 5 to both sides: y = 2x − 4 + 5.y = 2x + 1 - 5
Step 5 — Verify
Check with the second point (6, 13): y = 2(6) + 1 = 13 ✓. The equation is correct.
Example 2 — Writing an Equation from a Point and Slope
- 1
Step 1 — Identify Given Information
A line has slope m = −3 and passes through the point (4, 7). - 2
Step 2 — Write Point-Slope Form
Substitute directly: y − 7 = −3(x − 4). - 3
Step 3 — Convert to Slope-Intercept Form
Distribute: y − 7 = −3x + 12. Add 7 to both sides: y = −3x + 12 + 7.y = −3x + 19
Example 3 — Writing an Equation from a Context
- 1
Step 1 — Read and Identify Variables
A plumber charges a $50 service fee plus $35 per hour of labor. Let x = hours worked and y = total cost in dollars. - 2
Step 2 — Identify the Slope
The rate of change is $35 per hour, so m = 35. Each additional hour adds $35 to the total cost.m = 35 - 3
Step 3 — Identify the Y-Intercept
When x = 0 (zero hours of labor), the cost is $50 (the service fee). So b = 50.b = 50 - 4
Step 4 — Write the Equation
Since we know m and b directly, we can write the equation in slope-intercept form immediately.y = 35x + 50
SECTION 7
Comparing the Three Methods — Strengths & Limitations
Each method for writing a linear equation has its own advantages and potential pitfalls. Understanding these differences will help you choose the most efficient approach in any situation and avoid common mistakes.
| Method | Strengths | Limitations / Watch-Outs |
|---|---|---|
| Two Points | Works whenever you can identify two coordinates on the line. Useful for tables of data, graphs, or paired observations. | Requires computing the slope first — easy to make sign errors or accidentally swap x and y values. |
| Point & Slope | Fastest method: plug in and simplify. Ideal when slope is given directly or calculated from a parallel/perpendicular line. | If the slope is a fraction, distribution can lead to arithmetic errors. Watch sign changes carefully. |
| Context / Word Problem | Builds real-world modeling skills. Forces you to interpret meaning — great preparation for more advanced math. | Requires careful reading to correctly identify independent and dependent variables. Units matter! |
Comparison of the three equation-writing methods
KEY TAKEAWAY
SECTION 8
Connection to Advanced Topics
Writing linear equations is not an isolated skill — it is a gateway to a wide range of more advanced mathematical ideas. The table below connects what you've learned in this lesson to topics you will encounter in future courses.
| This Lesson | Advanced Extension |
|---|---|
| Writing equations from two points | Linear regression — finding the best-fit line through many data points using statistics (Algebra 2, Statistics) |
| Slope as rate of change | The derivative in calculus — instantaneous rate of change at a point on any curve, not just a line |
| Point-slope form | Tangent lines in calculus — writing the equation of a line tangent to a curve at a specific point using the derivative as the slope |
| Systems of two linear equations | Linear algebra and matrix equations — solving systems with many variables and equations simultaneously |
| Modeling with linear equations | Piecewise and nonlinear modeling — using quadratic, exponential, and logistic functions for more complex real-world scenarios |
Connections from linear equations to advanced mathematics
The ability to write a linear equation is like learning to walk before you run. Every advanced modeling technique builds on the same fundamental idea: identify the relationship between variables and express it symbolically. Mastering this lesson prepares you to handle far more complex scenarios with confidence.
SECTION 9
Practice Problems
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 comes down to finding two essential pieces of information: the slope (rate of change) and a point on the line. When given two points, use the slope formula m = (y₂ − y₁) / (x₂ − x₁) first, then plug into point-slope form. When given a point and slope, substitute directly into point-slope form y − y₁ = m(x − x₁). For context problems, identify the constant rate of change as the slope and a known data pair as a point, then build the equation.
All three pathways lead to slope-intercept form y = mx + b, where m describes how fast y changes per unit of x and b is the starting value when x = 0. Remember to verify your equation by substituting a known point back in. This foundational skill connects directly to systems of equations, linear regression, and eventually calculus, making it one of the most important tools in your algebra toolkit.