The equation of the function is f(x) = 11x − 46. The line through (6, 20) and (8, 42) climbs 22 units over a horizontal run of 2, so its slope is 11, and working backward from (6, 20) places the y-intercept at −46. That makes it a steep line crossing the x-axis at roughly x = 4.18. The rest of this article shows where each number comes from, how to verify the answer against both points, and which student mistakes this problem is built to catch.

Reading the Two Points as Ordered Pairs First

Before touching a formula, name what you have. Each point is written (x, y), so (6, 20) means the input 6 produces the output 20, and (8, 42) means the input 8 produces the output 42. In function notation you'd write f(6) = 20 and f(8) = 42. That framing matters because it tells you the y-value depends on the x-value, and the line is the visual record of every input-output pair at once.

Keep the coordinates in the order given by the conventions of the coordinate plane, where x comes first and y second. Swapping them silently is the single most common reason students get a slope like 2/22 instead of 22/2. If you ever catch yourself writing "point (20, 6)," stop and re-read the original problem.

The phrase "the graph of a function is a line" is itself information. A straight-line graph means the relationship is linear, so there's exactly one slope and one y-intercept, and the equation can always be written in the form f(x) = mx + b (equivalently y = mx + b). No exponents on x, no curves, no piecewise breaks.

One boundary worth stating: this method answers the question only when the graph really is a line. If the problem said "curve," two points wouldn't be enough — you'd need more data or a stated model. Two points determine a line and nothing else, which is why this particular question has exactly one correct equation.

Slope as Change in Output Over Change in Input

The slope formula is m = (y₂ − y₁) / (x₂ − x₁). Plug in the second point as point two and the first as point one: m = (42 − 20) / (8 − 6) = 22 / 2 = 11. That's the whole computation. The slope of 11 means that for every one-unit increase in x, the output rises by 11 units.

Subtraction order only matters if you're inconsistent. If you start with (8, 42) on top, you must also start with 8 on the bottom: (20 − 42) / (6 − 8) = −22 / −2 = 11. The two negatives cancel and land on the same answer. Mixing orders — 42 − 20 on top but 6 − 8 on the bottom — flips the sign and produces −11, which fails when you test it against the points.

Notice the slope is positive because both the x-values and y-values increase together. From x = 6 to x = 8, y jumps from 20 to 42, so the line rises from left to right. A slope of 11 is steep: a standard graphing window of, say, −10 to 10 on both axes would show this line rocketing off the top of the screen almost immediately, which is a useful sanity check when you graph it.

Slope also has a units interpretation if the axes carry labels. In a word problem where x is hours and y is dollars, a slope of 11 means $11 per hour. The pure-math version of this question doesn't assign units, but the interpretation habit is what makes linear equations useful outside the worksheet.

Finding the Y-Intercept with Point-Slope Form

Point-slope form is y − y₁ = m(x − x₁), and it's the fastest route from a slope and one point to a finished equation. Using m = 11 and the point (6, 20): y − 20 = 11(x − 6). Distribute the 11 to get y − 20 = 11x − 66, then add 20 to both sides: y = 11x − 46. The y-intercept b is −46.

You can run the same computation from the other point and should get an identical result: y − 42 = 11(x − 8) becomes y − 42 = 11x − 88, and adding 42 gives y = 11x − 46 again. Getting the same b from both points is a built-in correctness check — if the two runs disagree, an arithmetic slip happened somewhere.

Slope-intercept form is the conventional final answer because it displays both key features at a glance: the 11 is the slope and the −46 is where the line crosses the y-axis. Some teachers accept y = 11x − 46, others want f(x) = 11x − 46. They're the same function; f(x) notation just emphasizes that the output depends on the input.

The intercept of −46 has a plain meaning on the graph: at x = 0, the line sits 46 units below the origin. That's far off-screen in a typical classroom window, which is exactly why verifying with the given points beats eyeballing the intercept.

Verifying the Answer Against Both Given Points

Substitute x = 6 into f(x) = 11x − 46: 11 × 6 = 66, and 66 − 46 = 20. That reproduces the first point exactly. Substitute x = 8: 11 × 8 = 88, and 88 − 46 = 42. That reproduces the second point. Both checks pass, so the equation is correct.

This verification step takes about fifteen seconds and catches nearly every algebra error in this problem type. If your slope came out as 2 instead of 11, plugging in x = 6 would give 12 − 46 = −34, not 20, and the mismatch would flag the mistake immediately. Verification isn't busywork; it's the difference between a guessed answer and a checked one.

Test a third point that lies on the line but wasn't given, as an extra layer. At x = 7, f(7) = 77 − 46 = 31, so (7, 31) should sit exactly halfway between the two given points horizontally and vertically. The midpoint formula confirms it: ((6+8)/2, (20+42)/2) = (7, 31). Consistent.

If a verification fails, the failure almost always traces to one of three places: a sign error in the slope subtraction, forgetting to distribute the slope across both terms inside the parentheses, or adding the constant to the wrong side when isolating y. Check those three spots in that order before redoing the entire problem.

A Worked Table from x = 4 to x = 10

A table makes the linear pattern visible and doubles as a second verification layer. Using f(x) = 11x − 46:

x Calculation f(x) Point
4 44 − 46 −2 (4, −2)
5 55 − 46 9 (5, 9)
6 66 − 46 20 (6, 20)
7 77 − 46 31 (7, 31)
8 88 − 46 42 (8, 42)
9 99 − 46 53 (9, 53)
10 110 − 46 64 (10, 64)

Every row increases by exactly 11 as x increases by 1. That constant jump is the signature of a linear function, and any row that breaks the pattern signals an arithmetic error in that row. The two given points appear in the table unchanged, which is the whole point of the exercise.

The table also reveals the x-intercept. Between x = 4 (output −2) and x = 5 (output 9), the output crosses zero, so the line crosses the x-axis between those values. Solving 11x − 46 = 0 gives x = 46/11 ≈ 4.18, consistent with the table. The x-intercept isn't asked for, but finding it from the equation shows the equation describes the entire line, not just the two known points.

Tables like this appear constantly in algebra courses and on standardized tests, where a question might hand you a table of values and ask for the equation. The method is identical: pick any two rows, compute the slope from the differences, then solve for the intercept.

How This Question Appears on Tests and Homework

This exact phrasing — two points, "what is the equation" — shows up in Algebra I curricula, on the SAT's heart-of-algebra section, and in placement exams for college math. The SAT has historically tested linear equations built from two points or from a table, and the mechanics never change: slope first, then intercept.

Multiple-choice versions usually offer four equations that differ in slope, in intercept, or both. A fast elimination trick: compute the slope only. If only one answer choice has slope 11, you're done in under a minute. If two choices share slope 11, plug x = 6 into each and see which produces 20. That two-stage filter solves the problem without ever computing the intercept by hand.

Free-response versions want the work shown. The expected sequence is the slope formula with both points substituted, the point-slope equation, the distribution step, and the final slope-intercept form. Skipping straight to the answer typically loses partial credit even when the answer is right, because the grader is checking the method.

Word-problem wrappers dress the same math in context: a taxi fare that starts at some base charge and rises per mile, a plant's height measured on two days, a savings account balance at two months. Strip the story, extract the two ordered pairs, and run the identical four steps. The context changes; the algebra doesn't.

Four Mistakes That Produce the Wrong Equation

The first mistake is flipping the slope ratio. Slope is rise over run — change in y over change in x — and inverting it to 2/22 gives m = 1/11, a nearly flat line that fails both points. Write the formula with the y-differences on top before substituting any numbers, so the order is locked in before arithmetic begins.

The second mistake is a sign error when the coordinates include negatives. This problem happens to have all positive coordinates, but the same method with points like (−3, 5) and (2, −10) trips up students who subtract y-values as 5 − (−10) = −5 instead of 15. Treat every subtraction of a negative as addition, and write the intermediate step out rather than doing it mentally.

The third mistake is distributing the slope to only the first term inside the parentheses: turning y − 20 = 11(x − 6) into y − 20 = 11x − 6 instead of 11x − 66. That single error shifts the intercept by 60 and breaks both verification checks. Multiply 11 by both the x and the −6.

The fourth mistake is answering with the slope alone. A slope of 11 describes a whole family of parallel lines, and only one of them passes through (6, 20). The intercept is not optional — the equation needs both numbers, and an answer of "11" or "y = 11x" is incomplete.

Checking the Line Graphically and with Slope-Intercept Reasoning

On graph paper, plot (6, 20) and (8, 42), then draw the straight line through them. The line should cross the y-axis far below the origin at −46, which usually sits off the bottom of a standard grid — that's expected, not a mistake. Extend the line with a ruler rather than freehand, because a wobbly line makes it impossible to read the intercept.

A graphing calculator or a free tool like Desmos will confirm the equation instantly: enter the two points as a table, and the regression returns y = 11x − 46. Seeing the steep line shoot upward on screen reinforces what a slope of 11 means visually. According to Desmos's own documentation, its table feature accepts coordinate pairs directly and fits a line through them, which makes it a legitimate self-check tool rather than a shortcut.

Reason from slope-intercept form as a third check. Start at (6, 20), move right 1 and up 11 to reach (7, 31), then right 1 and up 11 again to reach (8, 42). Two steps of the slope land exactly on the second given point. If a candidate equation's slope doesn't reproduce the second point after the correct number of steps, the slope is wrong.

Domain and range are worth a passing thought here. A line's domain is all real numbers unless the context restricts it, and its range is likewise all real numbers because the slope is nonzero. If this were a word problem about, say, hours worked, the domain would start at 0 — but the pure equation has no such restriction.

FAQ

What is the slope of the line through (6, 20) and (8, 42)?

The slope is 11, computed as (42 − 20) / (8 − 6) = 22 / 2. A slope of 11 means the output increases by 11 for every one-unit increase in the input. Because the slope is positive, the line rises from left to right, and its steepness means it leaves a standard −10 to 10 viewing window almost immediately.

Can two points ever produce more than one line?

No — exactly one straight line passes through two distinct points, which is why this question has a single correct equation. The uniqueness fails only if the two points are identical, in which case infinitely many lines pass through that one location. For any two different points, the slope is fixed and the intercept follows, so the answer is unique.

What if the two points had the same x-value?

Then the slope formula would divide by zero, and the "line" would actually be vertical, written x = 6 rather than y = mx + b. A vertical line is not a function because one input maps to infinitely many outputs, so it fails the vertical line test. This problem avoids that case because 6 and 8 differ.

Is y = 11x − 46 the same as f(x) = 11x − 46?

Yes, they describe the same function with different notation. The f(x) form emphasizes that the expression is a rule mapping inputs to outputs, while y = form treats the output as a coordinate. Most textbooks accept either, though some courses require function notation specifically, so check which your teacher expects.

Where does this line cross the x-axis?

Solving 11x − 46 = 0 gives x = 46/11, which is approximately 4.18. That's between the table values x = 4 (output −2) and x = 5 (output 9), which matches the sign change in the table. The x-intercept is not one of the given points and isn't needed for the equation, but it's a useful consistency check.

Does the order of the points change the answer?

No, as long as you're consistent within the slope formula. Using (6, 20) first gives 22/2 = 11; using (8, 42) first gives −22/−2 = 11. The answer changes only if you mix the orders — y-differences in one direction and x-differences in the other — which flips the sign to −11 and fails verification.

How would this change if the points were (6, 20) and (8, 20)?

The slope would be (20 − 20) / (8 − 6) = 0, producing a horizontal line y = 20. That line is still a function — every input gives the same output — and it passes the vertical line test. A slope of zero and an undefined slope (vertical line) are different cases that students often conflate.

Why does the answer need the y-intercept and not just the slope?

The slope fixes the line's steepness but not its position, so every line of the form y = 11x + b is parallel to the others. Only b = −46 passes through (6, 20) and (8, 42). An answer giving only the slope describes an infinite family of lines rather than the one the question asks for.