A linear equation represents a straight line when graphed on a coordinate plane. Understanding how to write a linear equation is a foundational skill in algebra that unlocks the ability to model real-world relationships, from calculating costs to predicting trends. Whether you are given a graph, a table of values, a slope and a point, or two distinct points, the process relies on identifying two critical components: the slope (rate of change) and the y-intercept (starting value).
Understanding the Standard Forms
Before diving into the methods, Make sure you recognize the three primary forms a linear equation can take. Think about it: it matters. Each serves a specific purpose, and fluency in converting between them is a hallmark of algebraic proficiency.
Slope-Intercept Form: $y = mx + b$
This is the most common and intuitive form.
- $m$ represents the slope (steepness and direction).
- $b$ represents the y-intercept (where the line crosses the y-axis).
- Best used when: You know the slope and the y-intercept, or when you need to graph the line quickly.
Point-Slope Form: $y - y_1 = m(x - x_1)$
This form is derived directly from the slope formula Which is the point..
- $m$ is the slope.
- $(x_1, y_1)$ are the coordinates of any specific point on the line.
- Best used when: You know the slope and one point on the line (that is not the y-intercept).
Standard Form: $Ax + By = C$
- $A$, $B$, and $C$ are integers (usually).
- $A$ is typically non-negative.
- Best used for: Finding x and y-intercepts algebraically, solving systems of equations using elimination, and representing vertical lines (which have undefined slopes and cannot be written in slope-intercept form).
Scenario 1: Writing an Equation from Slope and Y-Intercept
This is the most direct scenario. If a problem explicitly states the slope ($m$) and the y-intercept ($b$), you simply substitute these values into the slope-intercept formula $y = mx + b$ That's the whole idea..
Example:
- Slope ($m$) = $-2$
- Y-intercept ($b$) = $5$
Equation: $y = -2x + 5$
Key Tip: Watch your signs. A negative intercept becomes subtraction (e.g., $b = -3 \rightarrow y = mx - 3$) Worth keeping that in mind..
Scenario 2: Writing an Equation from a Graph
When presented with a graph, you must extract the slope and y-intercept visually.
Step 1: Identify the Y-Intercept ($b$)
Look at where the line crosses the vertical y-axis. The coordinate will always be $(0, b)$. Read the value directly.
Step 2: Determine the Slope ($m$)
Select two exact points on the line where the coordinates are integers (lattice points). Avoid estimating. Use the formula: $m = \frac{\text{rise}}{\text{run}} = \frac{y_2 - y_1}{x_2 - x_1}$ Count the vertical change (rise) and horizontal change (run) between the two points. Remember: up is positive, down is negative; right is positive, left is negative Small thing, real impact..
Step 3: Write the Equation
Plug $m$ and $b$ into $y = mx + b$.
Example:
- Line crosses y-axis at $(0, 4) \rightarrow b = 4$.
- Points $(0, 4)$ and $(2, 0)$ are on the line.
- $m = \frac{0 - 4}{2 - 0} = \frac{-4}{2} = -2$.
- Equation: $y = -2x + 4$.
Scenario 3: Writing an Equation from Two Points
This is a very common exam question. You are given two coordinate pairs, $(x_1, y_1)$ and $(x_2, y_2)$, but neither is the y-intercept Took long enough..
Step 1: Calculate the Slope ($m$)
Use the slope formula: $m = \frac{y_2 - y_1}{x_2 - x_1}$ Consistency is key: Subtract the coordinates in the same order for numerator and denominator.
Step 2: Choose a Form to Find the Equation
You have two efficient paths here Simple, but easy to overlook..
Method A: Point-Slope Form (Fastest) Plug the calculated slope ($m$) and one of the given points $(x_1, y_1)$ into $y - y_1 = m(x - x_1)$. You can stop here if the instructions accept point-slope form, or distribute and solve for $y$ to get slope-intercept form.
Method B: Slope-Intercept Form (Substitution) Plug the slope ($m$) and the coordinates of one point ($x, y$) into $y = mx + b$. Solve for $b$. Once you have $b$, write the final equation $y = mx + b$ And it works..
Example: Points: $(3, 5)$ and $(-1, 1)$ Easy to understand, harder to ignore..
- Find Slope: $m = \frac{1 - 5}{-1 - 3} = \frac{-4}{-4} = 1$.
- Method A (Point-Slope): Using point $(3, 5)$: $y - 5 = 1(x - 3)$ $y - 5 = x - 3$ $y = x + 2$
- Method B (Substitution): Using $m=1$ and point $(3, 5)$ in $y = mx + b$: $5 = 1(3) + b$ $5 = 3 + b \rightarrow b = 2$ Equation: $y = x + 2$.
Scenario 4: Writing an Equation from a Table of Values
A table provides a set of $(x, y)$ pairs. The strategy depends on whether the x-values change by a constant amount (usually 1).
Case A: Constant Difference in X (e.g., x increases by 1)
If $x$ increases by 1 each row, the slope is simply the difference in the y-values.
- Check if $\Delta y$ is constant. If yes, the relationship is linear.
- $m = \Delta y$.
- Find $b$: Look for the row where $x = 0$. The corresponding $y$ is the y-intercept.
- If $x=0$ is not in the table, pick any row $(x, y)$ and solve $y = mx + b$ for $b$.
Case B: Non-Constant Difference in X
Treat the rows as coordinate points. Pick any two rows and use the Two Points method (Scenario 3) to find the slope and equation Not complicated — just consistent..
Example Table:
| x | y |
|---|---|
| 0 | -1 |
| 2 | 3 |
| 4 | 7 |
- $\Delta x = 2$, $\Delta y = 4$.
- $m = \frac{4}{2} = 2$.
- Table contains $(0, -1)$, so $b = -1$.
- Equation: $y = 2x - 1$.
Scenario 5: Writing Equations for Parallel and Perpendicular Lines
Word problems often ask for the equation
of a line that is parallel or perpendicular to a given line, passing through a specific point. The key lies entirely in determining the correct slope ($m$) before using the point-slope or substitution methods covered in Scenario 3.
Parallel Lines
Parallel lines have identical slopes. If the given line has slope $m$, the new line also has slope $m$.
Example: Write the equation of the line parallel to $y = 3x - 2$ passing through $(4, 5)$.
- Identify slope: The given line has $m = 3$. The parallel line has $m = 3$.
- Use Point-Slope Form with $(4, 5)$: $y - 5 = 3(x - 4)$
- Convert to Slope-Intercept: $y - 5 = 3x - 12$ Equation: $y = 3x - 7$.
Perpendicular Lines
Perpendicular lines have slopes that are negative reciprocals. If the given line has slope $m$, the perpendicular line has slope $m_{\perp} = -\frac{1}{m}$ That alone is useful..
- Flip the fraction.
- Change the sign.
Special Cases:
- Horizontal line ($m = 0$) $\rightarrow$ Perpendicular is Vertical (Undefined slope, equation $x = c$).
- Vertical line (Undefined slope) $\rightarrow$ Perpendicular is Horizontal ($m = 0$, equation $y = c$).
Example: Write the equation of the line perpendicular to $y = -\frac{1}{2}x + 4$ passing through $(-2, 3)$.
- Identify perpendicular slope: Given $m = -\frac{1}{2}$. Flip to $-2$, change sign to $2$. New $m = 2$.
- Use Substitution Method ($y = mx + b$) with $(-2, 3)$: $3 = 2(-2) + b$ $3 = -4 + b \rightarrow b = 7$
- Final Equation: $y = 2x + 7$.
Quick-Reference Decision Tree
When facing a problem, identify your starting information to pick the fastest route:
| Given Information | Immediate Action | Target Form |
|---|---|---|
| Slope ($m$) & y-intercept ($b$) | Plug directly into $y = mx + b$. Think about it: | Slope-Intercept |
| Slope ($m$) & a Point $(x, y)$ | Point-Slope $y - y_1 = m(x - x_1)$ $\rightarrow$ Solve for $y$. | Slope-Intercept (usually) |
| Two Points $(x_1,y_1), (x_2,y_2)$ | 1. On the flip side, calc $m = \frac{y_2-y_1}{x_2-x_1}$. <br> 2. On the flip side, use Point-Slope with either point. | Slope-Intercept |
| Table of Values | 1. Think about it: check $\Delta x$. Consider this: if constant, $m = \frac{\Delta y}{\Delta x}$. <br> 2. Find $b$ (look for $x=0$ or substitute). Think about it: | Slope-Intercept |
| "Parallel to... " + Point | New $m$ = Given $m$. Use Point-Slope. That said, | Slope-Intercept |
| "Perpendicular to... " + Point | New $m = -\frac{1}{\text{Given } m}$. Use Point-Slope. |
Common Pitfalls to Avoid
- Sign Errors in Slope Formula: Always write the formula first: $m = \frac{y_2 - y_1}{x_2 - x_1}$. Subtracting in different orders (e.g., $\frac{y_2 - y_1}{x_1 - x_2}$) flips the sign of the slope.
- Distributing the Negative in Point-Slope: In $y - y_1 = m(x - x_1)$, if $x_1$ is negative (e.g., $-3$), the expression becomes $x - (-3) = x + 3$. Missing this double-negative is the #1 algebra error here.
- Confusing Reciprocals: For perpendicular lines, remember both steps: flip and switch the sign. A slope of $2$ becomes $-\frac{1}{2}$, not $\frac{1}{2}$ or $-2$.
- Forcing Slope-Intercept Unnecessarily: If a question asks for "an equation of the line," Point-Slope form ($y - y_1 = m(x - x_1)$) is mathematically complete and often faster. Only convert to $y = mx + b$ if explicitly asked or if it aids graphing.
Conclusion
Writing linear equations is not about memorizing four different formulas—it is about recognizing that every linear relationship is defined by exactly two pieces of information: a rate of change (slope) and an anchor point (intercept or coordinate).
Whether you are reading a graph, decoding