Finding the equation of a line is a fundamental skill in algebra that appears in everything from basic homework to advanced calculus and real‑world modeling. Worth adding: whether you are given two points, a slope and a point, or a graph, the process follows a few clear steps that rely on understanding slope, intercepts, and the different forms a linear equation can take. This guide walks you through the concepts, methods, and practice needed to confidently derive any line’s equation.
Understanding the Basics of a Line
A straight line on a coordinate plane is completely described by two pieces of information: its slope and its y‑intercept (or any point it passes through). The slope measures how steep the line is and is calculated as the change in y divided by the change in x (often called “rise over run”).
- Slope (m): ( m = \dfrac{y_2 - y_1}{x_2 - x_1} )
- Y‑intercept (b): the point where the line crosses the y‑axis, written as ((0, b)).
If you know the slope and the y‑intercept, you can write the line in slope‑intercept form immediately. If you only have a point and the slope, the point‑slope form is more convenient. When you need to work with integer coefficients, the standard form (Ax + By = C) is often preferred Which is the point..
This is where a lot of people lose the thread.
Forms of Linear Equations
| Form | Equation | When to Use |
|---|---|---|
| Slope‑intercept | ( y = mx + b ) | You know the slope and y‑intercept, or you can easily find them. |
| Point‑slope | ( y - y_1 = m(x - x_1) ) | You know the slope and a single point ((x_1, y_1)) on the line. Day to day, |
| Standard | ( Ax + By = C ) | You need integer coefficients, or you are solving systems of equations. |
| Two‑point | ( y - y_1 = \dfrac{y_2 - y_1}{x_2 - x_1}(x - x_1) ) | You are given two points ((x_1, y_1)) and ((x_2, y_2)). |
It sounds simple, but the gap is usually here.
Each form is algebraically equivalent; you can convert from one to another by simple rearrangement.
Step‑by‑Step Methods to Get an Equation
1. From Two Points
- Label the points ((x_1, y_1)) and ((x_2, y_2)).
- Calculate the slope: ( m = \dfrac{y_2 - y_1}{x_2 - x_1} ).
- Choose one point and plug into point‑slope form: ( y - y_1 = m(x - x_1) ).
- Simplify to slope‑intercept form if desired: solve for y.
- (Optional) Convert to standard form by moving terms and clearing fractions.
2. From a Slope and a Point
- Write down the given slope (m) and point ((x_1, y_1)).
- Insert into point‑slope: ( y - y_1 = m(x - x_1) ).
- Solve for y to obtain slope‑intercept, or rearrange to standard form.
3. From a Graph
- Identify two clear points where the line crosses grid lines (preferably where both coordinates are integers).
- Follow the two‑point method above.
- Check the y‑intercept directly if the line crosses the y‑axis at a visible point; that gives you b instantly.
4. From a Verbal Description
- “A line passes through (3, 5) and has a slope of –2.” → Use point‑slope.
- “The line crosses the y‑axis at 4 and rises 3 units for every 1 unit it runs to the right.” → Slope = 3, intercept = 4 → ( y = 3x + 4 ).
Worked Examples
Example 1: Two Points
Find the equation of the line through ((-2, 7)) and ((4, -5)).
- Slope: ( m = \dfrac{-5 - 7}{4 - (-2)} = \dfrac{-12}{6} = -2 ).
- Point‑slope using ((-2, 7)): ( y - 7 = -2(x + 2) ).
- Distribute: ( y - 7 = -2x - 4 ).
- Add 7: ( y = -2x + 3 ).
Slope‑intercept form: ( y = -2x + 3 ).
Standard form: ( 2x + y = 3 ).
Example 2: Slope and Point
A line has slope ( \dfrac{3}{4} ) and passes through ((8, -1)) It's one of those things that adds up. Nothing fancy..
- Point‑slope: ( y + 1 = \dfrac{3}{4}(x - 8) ).
- Multiply by 4 to clear fraction: ( 4(y + 1) = 3(x - 8) ).
- Expand: ( 4y + 4 = 3x - 24 ).
- Rearrange: ( 3x - 4y = 28 ).
Standard form: ( 3x - 4y = 28 ).
Slope‑intercept: solve for y: ( y = \dfrac{3}{4}x - 7 ).
Example 3: From a Graph
Suppose the line passes through ((0, -2)) and ((3, 4)) Not complicated — just consistent..
- Slope: ( m = \dfrac{4 - (-2)}{3 - 0} = \dfrac{6}{3} = 2 ).
- Y‑intercept is already visible: