MATH 1 • ALGEBRA & FUNCTIONS

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

Master the essential skill of translating real-world situations and geometric data into precise linear equations.

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
The Greek mathematician Euclid formalized the geometry of lines, establishing the concept that a line is uniquely determined by two points. This insight is the geometric foundation for writing linear equations from two points.
~850 CE
Al-Khwarizmi's Algebra
The Persian scholar al-Khwarizmi wrote one of the first systematic treatments of algebra, introducing methods for solving linear and quadratic equations that laid the groundwork for modern equation writing.
1637
Descartes and the Coordinate Plane
René Descartes published his coordinate system, merging algebra and geometry. For the first time, an equation like y = mx + b could be visualized as a line on a plane, connecting numbers to shapes.
1800s
Industrial-Era Applications
As engineering and economics expanded during the Industrial Revolution, linear equations became essential tools for modeling costs, rates of production, and physical quantities like velocity and distance.

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.

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.

1

Slope (m)

The slope measures the steepness and direction of a line. It is calculated as the ratio of the vertical change (rise) to the horizontal change (run) between any two points: m = (y₂ − y₁) ÷ (x₂ − x₁).
2

Y-Intercept (b)

The y-intercept is the point where the line crosses the y-axis. At this point, x = 0, so b is the output value when the input is zero. In context problems, it often represents a starting value or fixed cost.
3

Point-Slope Form

When you know a slope m and one point (x₁, y₁) on the line, point-slope form lets you write the equation directly: y − y₁ = m(x − x₁). This form is especially efficient because it requires minimal computation.
4

Slope-Intercept Form

The form y = mx + b, called slope-intercept form, makes it easy to identify the slope and y-intercept at a glance. It is the most commonly requested final form in algebra courses and is ideal for graphing.
5

Context Clues

Real-world problems rarely hand you coordinates. Instead, you identify a constant rate of change (slope) and a starting or known value (y-intercept or a point). Translating words into mathematical components is a critical first step.
KEY TAKEAWAY
Think of a linear equation like a recipe for a line. The slope is how steeply the line climbs (like a hill's grade), and the y-intercept is where the line starts on the y-axis. If someone tells you the hill's steepness and one point on the road, you can describe the entire road — that's exactly what writing a linear equation does.

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.

All three pathways converge on the same result. Pathway A (two points) requires calculating the slope first. Pathway B (point and slope) goes directly to point-slope form. Pathway C (context) requires translating words into slope and a point before writing the equation.

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.

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
m = (y₂ − y₁) / (x₂ − x₁)
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
y − y₁ = m(x − x₁)
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
y = mx + b
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
If a problem gives you the slope and the y-intercept directly, you can skip point-slope form entirely and write y = mx + b immediately. In every other situation — two points, a point and slope, or a context — point-slope form is your best starting tool, and you then simplify to slope-intercept form.

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.

The coordinate plane shows a line through the points (1, 1) and (4, 3). The dashed segments illustrate the run (3 units right) and the rise (2 units up), giving a slope of 2/3.

Method A — From Two Points

  1. Step 1: Label the two points as (x₁, y₁) and (x₂, y₂).
  2. Step 2: Calculate the slope: m = (y₂ − y₁) / (x₂ − x₁).
  3. Step 3: Substitute m and either point into point-slope form: y − y₁ = m(x − x₁).
  4. Step 4: Simplify to slope-intercept form: y = mx + b.

Method B — From a Point and Slope

  1. Step 1: Identify the given slope m and point (x₁, y₁).
  2. Step 2: Substitute directly into point-slope form: y − y₁ = m(x − x₁).
  3. Step 3: Distribute and solve for y to get slope-intercept form.

Method C — From a Context

  1. Step 1: Identify the independent variable (x) and dependent variable (y).
  2. Step 2: Find the constant rate of change — this is your slope m.
  3. Step 3: Identify a known data pair (x₁, y₁) or the initial value (y-intercept b).
  4. Step 4: Write the equation in slope-intercept form, defining each variable in context.

Worked Examples

Example 1 — Writing an Equation from Two Points
1
Step 1 — Identify the Two PointsA 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 SlopeApply the slope formula: m = (y₂ − y₁) / (x₂ − x₁) = (13 − 5) / (6 − 2) = 8 / 4.
m = 2
3
Step 3 — Write Point-Slope FormSubstitute m = 2 and the point (2, 5) into point-slope form: y − 5 = 2(x − 2).
4
Step 4 — Convert to Slope-Intercept FormDistribute: y − 5 = 2x − 4. Add 5 to both sides: y = 2x − 4 + 5.
y = 2x + 1
5
Step 5 — VerifyCheck 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 InformationA line has slope m = −3 and passes through the point (4, 7).
2
Step 2 — Write Point-Slope FormSubstitute directly: y − 7 = −3(x − 4).
3
Step 3 — Convert to Slope-Intercept FormDistribute: 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 VariablesA 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 SlopeThe 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-InterceptWhen x = 0 (zero hours of labor), the cost is $50 (the service fee). So b = 50.
b = 50
4
Step 4 — Write the EquationSince we know m and b directly, we can write the equation in slope-intercept form immediately.
y = 35x + 50

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.

Comparison of the three equation-writing methods
MethodStrengthsLimitations / Watch-Outs
Two PointsWorks 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 & SlopeFastest 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 ProblemBuilds 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!
KEY TAKEAWAY
Think of these three methods like different on-ramps to the same highway. Whether you start with two GPS coordinates, a direction and a location, or a verbal description of your route, you end up on the same road — a linear equation in slope-intercept form. The skill is picking the fastest on-ramp for the information you've been given.

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.

Connections from linear equations to advanced mathematics
This LessonAdvanced Extension
Writing equations from two pointsLinear regression — finding the best-fit line through many data points using statistics (Algebra 2, Statistics)
Slope as rate of changeThe derivative in calculus — instantaneous rate of change at a point on any curve, not just a line
Point-slope formTangent 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 equationsLinear algebra and matrix equations — solving systems with many variables and equations simultaneously
Modeling with linear equationsPiecewise and nonlinear modeling — using quadratic, exponential, and logistic functions for more complex real-world scenarios

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.

Practice Problems

PROBLEM 1CONCEPTUAL
A student claims that two different lines can pass through the same two points. Is this claim correct? Explain your reasoning using the concept of slope.
PROBLEM 2BASIC CALCULATION
Write the equation of the line that passes through the points (3, −1) and (7, 11) in slope-intercept form.
PROBLEM 3INTERMEDIATE
A line has a slope of 2/5 and passes through the point (−10, 4). Write the equation in slope-intercept form, then determine the x-intercept.
PROBLEM 4APPLIED
A car rental company charges a flat fee plus a per-mile rate. A customer who drove 120 miles was charged $78, and another customer who drove 200 miles was charged $110. Write a linear equation for the total cost y in terms of miles driven x, and determine the flat fee and the per-mile rate.
PROBLEM 5CRITICAL THINKING
Line A passes through (1, 3) and (5, 11). Line B is perpendicular to Line A and passes through the midpoint of the segment connecting Line A's two given points. Write the equation of Line B in slope-intercept form.

Lesson 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.

Varsity Tutors • Math 1 • Writing Linear Equations