Quarry School

Graphs of linear functions: crash course

about 32 min to listen10 lessons16 questions to tryUnit 9 of 17

Short view. Each lesson's rule, its steps and its trap. Switch to Full for a worked example and a question to try in every lesson.Full view. Each lesson's rule, its steps, one worked example with Watch it solved, the trap, and one question to try.

You need first

1 Draw a line by plotting points

about 4 minOpen the full lessonOnly this lesson

The rule

Graph a linear function by plotting at least two distinct coordinate pairs (x, f(x)) and drawing the entire straight line through them.

A third point checks the arithmetic.

How

  1. Choose input values. If the slope contains a fraction, try multiples of its denominator. Multiples are results of multiplying by whole numbers: for a denominator of 3, use 0 × 3 = 0, 1 × 3 = 3 and 2 × 3 = 6.
  2. Substitute each input into the function to find its output.
  3. Record the pairs in a values picture, then plot each input across and output up.
  4. Draw a straight line through the points and extend it both ways.
  5. If a third point misses the line, recalculate before drawing.

Worked example

Worked example

Plot points to graph f(x) = −35x + 5

Graph the linear function f(x) = −35x + 5 by plotting points. Choose three inputs, find their outputs, record the coordinate pairs in a values picture, plot them, and draw the line. Use the third point to check the arithmetic before drawing.

Show the steps and the answer
input xoutput f(x)055210−1↓ evaluate: input given, read the output below it
Values picture for f(x) = −35x + 5.
  1. Choose the inputs 0×5=0,1×5=5 and 2×5=10.The slope −35 has denominator 5. Multiplying it by a multiple of 5 cancels the denominator, so every output is a whole number. An input such as x = 1 would give f(1) = −35 + 5 = 225 = 4.4, which is hard to plot accurately.
  2. Substitute x = 0: f(0)=−35×0+5=0+5=5.Replacing x with an input and evaluating gives that input's output. At x = 0 the slope term is 0, so the output is the constant term 5.
  3. Substitute x = 5: f(5)=−35×5+5=−3+5=2.35 × 5 = 155 = 3, so the fraction clears and the output is a whole number.
  4. Substitute x = 10: f(10)=−35×10+5=−6+5=−1.35 × 10 = 305 = 6. Two points are enough to fix the line. This third pair is there to check the arithmetic.
  5. Record the pairs in a values picture: the inputs 0, 5 and 10 have the outputs 5, 2 and −1. This gives the points (0, 5), (5, 2) and (10,−1).Writing each output beside its input keeps the pairs together, and each point is written (input, output).
  6. Draw axes from −6 to 12 across and from −3 to 9 up. Plot each point by going across by the input and up by the output: (0, 5) is 5 up on the y-axis, (5, 2) is 5 across and 2 up, and (10,−1) is 10 across and 1 down.The input is the horizontal coordinate and the output is the vertical one, so a negative output means moving down. The axes leave room to extend the line past the points on both sides.
  7. Lay a ruler through (0, 5) and (5, 2) and look at (10,−1). It sits on the ruler's edge: each move from one point to the next is 5 across and 3 down.Equal steps in input along a line give equal steps in output, and 3 down for every 5 across is the slope −35. If the third point had missed the ruler, the outputs would be recalculated before drawing.
  8. Draw the straight line through the three points. Extend it to the edges of the grid in both directions and put an arrow at each end.The graph of a linear function is a straight line. Also, f has an output for every input, not just 0, 5 and 10, so the line continues both ways.
Answer
The graph is the straight line through (0, 5), (5, 2) and (10, −1), extended in both directions. It crosses the y-axis at (0, 5) and falls 3 units for every 5 units to the right.
Double-check Follow the drawn line one more step to the left of (0, 5): 5 across to the left and 3 up reaches (−5, 8). The formula agrees: f(−5) = −35 × (−5) + 5 = 3 + 5 = 8. The line also crosses the x-axis just past 8, which matches solving −35x + 5 = 0 to get x = 253 ≈ 8.3.

Work to write

  1. Inputs are multiples of 5: x = 0, 5, 10
  2. f(0)=−35×0+5=5
  3. f(5)=−35×5+5=−3+5=2
  4. f(10)=−35×10+5=−6+5=−1
  5. Values picture: x = 0, 5, 10; f(x) = 5, 2, −1
  6. Points (0, 5), (5, 2), (10, −1) plotted; (10, −1) lies on the line through the other two
  7. Straight line drawn through the points and extended both ways

The trap

Plotting (3, 3) as output first can hide the mistake because both numbers match. Practice with (0, 5): across 0, then up 5. The input always comes first.

2 Start at the y-intercept and walk the slope

about 4 minOpen the full lessonOnly this lesson

The rule

In y= mx +b, the y-intercept is (0, b) and m=riserun=y2−y1x2−x1, with x2≠x1.

How

  1. Read b, then substitute 0 to verify the point (0, b).
  2. Read m. Write a whole-number slope over 1.
  3. Choose signed rise and run whose quotient is m.
  4. Start at (0, b), move by that run and rise, and repeat.
  5. Draw the line through the points. Check one point by substitution.

Worked example

Worked example

Walk a negative fraction slope from the y-intercept

Graph the line y = −32x + 6 by starting at its y-intercept and walking the slope. State the y-intercept, give a signed rise and run that match the slope, find two more points to the right of the y-axis and one point to the left of it, then draw the line and check one of your points by substitution.

Show the steps and the answer
(−2, 9)(0, 6)(2, 3)(4, 0)−44848
The finished graph: the line through the walked points (−2, 9), (0, 6), (2, 3) and (4, 0).
  1. Read b: in y=−32x+6 the constant term is 6, so b=6. Substitute x=0 to verify: y=−32(0)+6=0+6=6. Plot the y-intercept (0, 6).The y-intercept is the point where x = 0. There the term mx is zero, so y = b. Substituting 0 confirms that (0, 6) is on the line before every later step is built on it.
  2. Read m: the coefficient of x is −32, so m=−32. It is already a fraction, so it needs no rewriting. (Only a whole-number slope needs rewriting: for example, 5 would become 51.)The slope is riserun, so it has to be seen as a top number over a bottom number before it can be walked. The minus sign in front belongs to m and must not be dropped.
  3. Put the minus sign on the top number: −32=−32, so rise =−3 and run =2. On the grid that is 2 units right and 3 units down. The same slope can be written 3−2: 2 units left and 3 units up.The rise is the vertical change and the run is the horizontal change, and their quotient must be m. A negative quotient needs exactly one negative part: −32 and 3−2 both equal −32, but −3−2 = 32, which would make the line climb.
  4. Start at (0, 6) and add the run to x and the rise to y: (0+2,6−3)=(2,3). Repeat from (2, 3): (2+2,3−3)=(4,0). For a point on the left, return to (0, 6) and use run −2, rise 3: (0−2,6+3)=(−2,9).For any two points on the line, y2−y1x2−x1 = m. Each step changes x by the run and y by the rise, so that ratio stays −32 and every landing point is on the line. A second step gives a third point, which makes the line easier to draw accurately.
  5. Draw one straight line through (−2,9), (0, 6), (2, 3) and (4, 0) and extend it past both end points. Check (4, 0) by substitution: −32(4)+6=−6+6=0, which is its y-coordinate.Two points fix a line, so the other points test the walk: if they were not in one straight row, a step went wrong. Substitution tests a point against the equation itself, not against the walk that produced it.
Answer
  • The y-intercept is (0, 6). With rise −3 and run 2, the walk lands on (2, 3) and (4, 0)
  • with rise 3 and run −2 it lands on (−2, 9). The graph is the straight line through these points. It falls 3 units for every 2 units to the right and crosses the x-axis at (4, 0).
Double-check Substitute the other walked points into y = −32x + 6. At x = 2: −32(2) + 6 = −3 + 6 = 3, so (2, 3) is on the line. At x = −2: −32(−2) + 6 = 3 + 6 = 9, so (−2, 9) is on the line. The slope from (0, 6) to (4, 0) is 0−64−0 = −64 = −32, which equals m.

Work to write

  1. y = −32(0) + 6 = 6, so the y-intercept is (0, 6)
  2. m = −32 = −32, so rise = −3 and run = 2
  3. (0 + 2, 6 − 3) = (2, 3) and (2 + 2, 3 − 3) = (4, 0)
  4. (0−2,6+3)=(−2,9)
  5. Line drawn through (−2, 9), (0, 6), (2, 3) and (4, 0)
  6. Check: −32(4) + 6 = −6 + 6 = 0, so (4, 0) is on the line

The trap

Reading −23 as down 3 and right 2. The top is rise, the bottom is run. Write the two movements beside the fraction before plotting.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

A positive fractional slope

You need to draw y = 12x − 1 using whole-number movements.

Show the steps and the answer
(0, −1)(2, 0)startfirstsecondrun 2rise 1−2246−22
y = 0.5x − 1, for x from −3 to 6.
  1. At input 0, y=−1, so plot (0,−1).The product with 0 vanishes.
  2. Use rise 1 and run 2. Move to (2, 0), then (4, 1).The fraction measures the two-unit run, so no fractional coordinate is needed.
Answer
The line through (0, −1), (2, 0) and (4, 1).
Double-check At x = 4, 12 × 4 − 1 = 2 − 1 = 1.

3 Build a line by changing the identity function

Open the full lessonOnly this lesson

The rule

To transform y=x into y= mx +b, multiply outputs by m, including a reflection if m < 0, then shift outputs by b.

Stretch if |m| > 1; compress if 0 < |m| < 1.

How

  1. Sketch the identity function y = x using (0, 0) and (1, 1).
  2. Read |m|, the size of m without its sign, to decide whether heights stretch or compress.
  3. If m < 0, reflect the heights across the x-axis as part of that multiplication.
  4. Add b to every new height. Positive b moves up; negative b moves down.
  5. Verify a point in the final formula. Multiplication must occur before this stated shift.

Worked example

Worked example

Stretch, reflect, then shift: building y = −4x + 7 from y = x

The graph shows the line y = −4x + 7, which passes through (0, 7) and (2, −1). Build this line from the identity function y = x, whose graph passes through (0, 0) and (1, 1). List the changes in the order they must be made: say whether the heights stretch or compress and by what factor, whether there is a reflection, and how far and in which direction the line shifts. Follow the points (0, 0) and (1, 1) through every change, and finish by verifying one of the final points in the formula.

(0, 7)(2, −1)−4−2246−448
The finished line y = −4x + 7, falling steeply from left to right through (0, 7) and (2, −1).
Show the steps and the answer
  1. Sketch the identity function y=x through (0, 0) and (1, 1). From y=−4x+7, read m=−4 and b=7.On y = x every height equals its input, so it is the plain line that every other line is built from. Matching y = −4x + 7 to y = mx + b shows what to multiply the heights by (m) and what to add to them (b).
  2. Drop the sign of m to get its size: |−4|=4. Because 4 > 1, the heights stretch by a factor of 4. (0, 0) stays at (0, 0) and (1, 1) rises to (1, 4), so the line is now y=4x.Stretch or compress depends on |m|, not on m. As a number −4 is less than 1, but its size is 4, so the heights get 4 times as far from the x-axis rather than closer to it. A height of 0 times 4 is still 0, which is why the origin does not move.
  3. Since m=−4 is negative, reflect the stretched heights across the x-axis: (1, 4) flips to (1,−4) and (0, 0) stays where it is. The line is now y=−4x.Multiplying by −4 is the same as multiplying by 4 and then changing each height to its opposite, so the reflection is part of the multiplication, not an extra move. Heights that were above the x-axis are now the same distance below it, so the line falls from left to right.
  4. Add b=7 to every height: (0, 0) moves up to (0, 7) and (1,−4) moves up to (1, 3). The line is now y=−4x+7.b is positive, so every point moves up, and all by the same 7 units. Sliding the whole line does not change how steep it is; it only moves where the line crosses the y-axis, from 0 to 7.
  5. Verify a final point in the formula. At x=1: y=−4(1)+7=−4+7=3, which matches (1, 3). At x=0: y=−4(0)+7=7, which matches (0, 7).The formula multiplies by −4 first and adds 7 second, the same order as the changes on the graph, so the tracked points must satisfy it. The order cannot be swapped: adding 7 first and then multiplying gives −4(1 + 7) = −32 at x = 1, which belongs to the line y = −4x − 28, not y = −4x + 7.
Answer
  • Three changes, in this order: (1) stretch the heights of y = x by a factor of 4, because |−4| = 4 > 1
  • (2) reflect them across the x-axis, because m = −4 is negative
  • (3) shift every point up 7, because b = 7 is positive. The point (0, 0) stays at (0, 0) through the stretch and the reflection, then moves up to (0, 7). The point (1, 1) goes to (1, 4), then (1, −4), then (1, 3). The result is the line y = −4x + 7.
Double-check Use (2, −1), the other point stated for the graph, which was not used in the build. On y = x the height at x = 2 is 2. Stretch: 4 × 2 = 8. Reflect: −8. Shift up 7: −8 + 7 = −1, so the point lands at (2, −1), and the formula agrees: −4(2) + 7 = −1. The slope also checks: from (0, 7) to (2, −1) the line drops 8 while moving right 2, and −8 ÷ 2 = −4 = m.

Work to write

  1. m = −4 and b = 7
  2. |m| = |−4| = 4 > 1, so the heights stretch by a factor of 4: y = x becomes y = 4x
  3. m < 0, so reflect across the x-axis: y = 4x becomes y = −4x
  4. b = 7 > 0, so shift up 7: y = −4x becomes y = −4x + 7
  5. (0, 0) ends at (0, 7); (1, 1) goes to (1, 4), then (1, −4), then (1, 3)
  6. Check: −4(1) + 7 = 3, so (1, 3) is on y = −4x + 7

The trap

Doing the stated downward shift first and then halving the heights. That produces 12(x − 3) = 12x − 32, a different line.

Quick check

Try it before you open its steps. It is question 2 of 3 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 3

Compress only

You need to make y = 13x from y = x.

Show the steps and the answer
(0, 0)(−0, 0)−4−2246−448
y = 0.3333x, solid, beside y = x, dashed.
  1. Multiply each height by 13; (3, 3) becomes (3, 1).A factor between 0 and 1 pulls each height toward the x-axis.
  2. Draw through (0, 0) and (3, 1).The horizontal input positions stay unchanged.
Answer
Compress vertically by 13.
Double-check The rise is 1 for a run of 3, agreeing with the coefficient.

4 Read a graph and write its equation

about 4 minOpen the full lessonOnly this lesson

The rule

Read b at (0, b), calculate m=y2−y1x2−x1, then write f(x)= mx +b.

If b is hidden, use b=y1−mx1.

How

  1. Read the y-intercept if it is shown. Confirm that the first coordinate is 0.
  2. Choose two clearly marked points. Keep their order the same in both subtractions.
  3. Compute rise divided by run and reduce the fraction.
  4. Write the slope and intercept in f(x) = mx + b.
  5. Substitute both points to verify the recovered equation.

Worked example

Worked example

Writing the equation of a line from its graph

The graph shows a straight line. It crosses the y-axis at the marked point (0, −2) and passes through the marked points (−4, −5) and (4, 1). Write the equation of the line in the form f(x) = mx + b. Read the y-intercept, find the slope from the two marked points (−4, −5) and (4, 1) and reduce it, write the function, and substitute both points to verify it.

(−4, −5)(0, −2)(4, 1)−6−4−2246−6−4−2246
A straight line crossing the y-axis at the marked point (0, −2) and passing through the marked points…
Show the steps and the answer
  1. Read the y-intercept at the marked point (0,−2), where the line crosses the y-axis. Its first coordinate is 0, so b=−2.b is the output when the input is 0, since f(0) = m · 0 + b = b. Confirming that the first coordinate is 0 makes sure the point lies on the y-axis and not merely near it.
  2. Choose the two marked points (−4,−5) and (4, 1) and name them in a fixed order: (x1,y1)=(−4,−5) and (x2,y2)=(4,1).Both points have exact labels, so nothing has to be estimated from the grid. Naming them before subtracting keeps the same order on the top and the bottom of the slope fraction. Mixing the order would flip the sign of the slope.
  3. Compute rise over run: m=y2−y1x2−x1=1−(−5)4−(−4)=68=34.The slope is the change in output divided by the change in input. Subtracting a negative is the same as adding its opposite, so the rise is 1 + 5 = 6 and the run is 4 + 4 = 8. Dividing top and bottom by their common factor 2 reduces 68 to 34. A positive slope fits the graph, which rises from left to right.
  4. Put m=34 and b=−2 into f(x)= mx +b: f(x)=34x+(−2), which is written f(x)=34x−2.In slope-intercept form the coefficient of x is the slope and the constant term is the y-intercept. Adding −2 is the same as subtracting 2.
  5. Substitute both points. f(−4)=34(−4)−2=−3−2=−5, which matches (−4,−5). f(4)=34(4)−2=3−2=1, which matches (4, 1).The slope came from these two points, but b came from a separate reading at (0, −2). Only one line passes through both points, so if both outputs match, the equation is that line. A misread intercept or a slip in the slope would make at least one output miss.
Answer
f(x) = 34x − 2, with slope 34 and y-intercept (0, −2).
Double-check Reversing the order of the points gives the same slope: −5−1−4−4 = −6−8 = 34. The formula for a hidden intercept agrees with the reading: b = y1 − mx1 = −5 − 34(−4) = −5 + 3 = −2. Walking the slope from (0, −2), 4 right and 3 up reaches (4, 1), and 4 left and 3 down reaches (−4, −5). Both points are marked on the graph.

Work to write

  1. b = −2, read from the point (0, −2)
  2. m=1−(−5)4−(−4)=68=34
  3. f(x)=34x−2
  4. f(−4)=34(−4)−2=−3−2=−5
  5. f(4)=34(4)−2=3−2=1

The trap

Subtracting the output coordinates in one direction and the input coordinates in the opposite direction. Write arrows between the two points, then use that same direction for both differences.

Quick check

Try it before you open its steps. It is question 2 of 3 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 3

A visible nonzero intercept

You need the equation through (0, 2) and (2, 6).

Show the steps and the answer
(0, 2)(−1, 0)startsecond−224−22468
y = 2x + 2.
  1. b=2 and m=6−22−0=42=2.Read the starting value and calculate the common rate.
  2. Write y=2x+2.These are the slope and intercept.
  3. At input 2, 2×2+2=6.Plugging the recovered values back in verifies the second point.
Answer
y = 2x + 2.
Double-check A run of 2 with slope 2 gives a rise of 4, taking output 2 to 6.

5 Find where the line reaches the x-axis

about 5 minOpen the full lessonOnly this lesson

The rule

Set f(x)=0 to find x-intercepts.

For f(x)= mx +b with m≠0,x=−bm and the point is (−bm,0).

How

  1. Replace the output f(x) or y with 0. This selects points lying on the x-axis.
  2. Solve the resulting equation for the input.
  3. Substitute that found input into the original function. Its output must be 0.
  4. State the input value and the coordinate point (x, 0).
  5. If m = 0, inspect the constant output instead of dividing by zero.

Worked example

Worked example

Where f(x) = 5x + 8 reaches the x-axis

The graph shows the line f(x) = 5x + 8, which passes through the marked points (−2, −2), (−1, 3) and (0, 8). (a) Use the graph and the marked points to estimate where the line reaches the x-axis. Then find the x-intercept exactly by setting f(x) = 0, check it by substitution, and state it both as an x-value and as a point. (b) Keep the y-intercept 8 but change the slope to 0, giving g(x) = 0x + 8. Decide whether the graph of g reaches the x-axis, and explain why the rule x = −bm cannot be used for g.

(−2, −2)(−1, 3)(0, 8)−4−22−448
The line f(x) = 5x + 8, rising from left to right through the marked points (−2, −2), (−1, 3) and (0, 8).
Show the steps and the answer
  1. (a) Estimate from the graph. The marked point (−2,−2) is below the x-axis and (−1,3) is above it, so the line crosses the x-axis between x=−2 and x=−1, nearer to x=−2.The outputs −2 and 3 have opposite signs, so the line must pass through output 0 between those inputs. A line's output changes at a steady rate, so the crossing is nearer the input whose output is closer to 0, and −2 is closer to 0 than 3 is. Knowing the rough size and sign of the answer in advance makes a slip in the algebra easy to spot.
  2. Read the slope and y-intercept from f(x)=5x+8: m=5 and b=8. Since m=5≠0, the line is not horizontal.A line that is not horizontal crosses the x-axis exactly once. The solving below ends with a division by m, which is allowed only when m ≠ 0. A slope of 0 needs the different approach shown in part (b).
  3. Replace the output f(x) with 0: 5x+8=0.Every point on the x-axis has output (height) 0, so the x-intercept is the input that makes the output 0.
  4. Subtract 8 from both sides: 5x=−8.This undoes the + 8 and leaves the x-term by itself. Doing the same thing to both sides keeps the equation true.
  5. Divide both sides by 5: x=−85, which is −1.6 as a decimal.Dividing by 5 undoes the multiplication by 5. The result matches the rule x = −bm with b = 8 and m = 5. It is negative because b and m have the same sign.
  6. Substitute x=−85 into the original function: f(−85)=5(−85)+8=−8+8=0.A point lies on the x-axis only when its output is 0. Getting exactly 0 confirms that no sign or arithmetic slip happened while solving.
  7. Compare with the estimate: −1.6 lies between −2 and −1, and it is nearer to −2.The exact value agrees with the graph. An answer of +1.6 would signal a sign error. For every positive x the output 5x + 8 is greater than 8, so the line is well above the x-axis to the right of the y-axis.
  8. State the result: the x-intercept is x=−85, and the line reaches the x-axis at the point (−85,0).An x-intercept is a point on the x-axis, so its y-coordinate is 0 and its x-coordinate is the input just found. The question asks for both the value and the point.
  9. (b) Inspect g instead of dividing. Its slope is m=0, and g(x)=0x+8 simplifies to g(x)=8, the same output for every input.The rule would give x = −80, a division by zero, which has no value. When m = 0, the constant output alone decides whether the line touches the x-axis.
  10. Replace the output with 0: 8=0. This is false, and it contains no x that could be changed to make it true.Since g(x) equals 8 for every input, no input can make the output 0.
  11. Conclude: g has no x-intercept. Its graph is the horizontal line y=8, which stays 8 units above the x-axis and never meets it.A horizontal line y = k reaches the x-axis only when k = 0. In that case it is the x-axis itself, so every point is on it. Here k = 8, which is not 0.
Answer
(a) x = −85 (that is, −1.6). The line reaches the x-axis at the point (−85, 0). (b) g(x) = 8 is never 0, so the horizontal line y = 8 has no x-intercept. The rule −bm fails for g because m = 0 would mean dividing by zero.
Double-check Substitution: f(−85) = 5(−85) + 8 = −8 + 8 = 0, so (−85, 0) is on the line and on the x-axis. Slope check: from (−85, 0) to (0, 8) the rise is 8 and the run is 85, and 8 ÷ 85 = 8 · 58 = 5, which is the slope of f. Graph check: −1.6 lies between x = −2 and x = −1, where the outputs change sign from f(−2) = −2 to f(−1) = 3. Part (b): g(x) = 8 for every x, and 8 ≠ 0, so no input gives output 0.

Work to write

  1. Estimate: between x = −2 and x = −1, since f(−2) = −2 and f(−1) = 3
  2. m = 5 ≠ 0
  3. 5x + 8 = 0
  4. 5x=−8
  5. x=−85=−1.6
  6. f(−85)=5(−85)+8=−8+8=0
  7. x-intercept: (−85, 0)
  8. g(x) = 0x + 8 = 8 for every x
  9. 8 = 0 is false, so g has no x-intercept

The trap

Setting x = 0 to find the x-intercept. The axis name tells you which coordinate is allowed to vary: on the x-axis, x varies while y stays 0.

Quick check

Try it before you open its steps. It is question 1 of 2 in the full lesson, where they run from easy to exam-hard.

Try it · level 1 of 2

The intercept is the origin

You need the x-intercept of y = x.

Show the steps and the answer
(0, 0)(−0, 0)origin−22−2−112
y = x.
  1. Set y=0: 0=x, so x=0.The identity output equals its input, so only input 0 gives output 0.
  2. Check the found input: y=0.Substitution verifies the point's zero height.
Answer
(0, 0)
Double-check The identity graph visibly passes through the origin.

6 Horizontal and vertical lines

about 2 minOpen the full lessonOnly this lesson

The rule

A horizontal line has equation y=c and slope 0.

A vertical line has equation x=c, undefined slope, and is not a function of x.

How

  1. Compare the coordinates of two distinct points.
  2. If their y-values match, keep that output fixed: y = c.
  3. If their x-values match, keep that input fixed: x = c.
  4. Check both given points in the equation.
  5. Do not force a vertical line into y = mx + b.

Worked example

Worked example

Keep the correct coordinate fixed

You need equations for the horizontal line through (−3, −4) and (5, −4), and the vertical line through (7, 0) and (7, 5).

Show the steps and the answer

Horizontal: y = −4

Vertical: x = 7

  1. For the horizontal pair, both outputs are −4: y=−4.The second coordinate stays fixed, as on a shelf.
  2. Its slope is −4−(−4)5−(−3)=08=0.Zero rise over a nonzero run is zero.
  3. For the vertical pair, both inputs are 7: x=7.The first coordinate stays fixed, as on a flagpole.
  4. Its slope would be 5−07−7=50, so it is undefined.A zero denominator has no division value.
  5. Check the pairs in their equations: the first pair has y=−4, and the second pair has x=7.Each equation must include both given points.
Answer
  • Horizontal equation: y = −4.
  • Horizontal slope: 0.
  • Vertical equation: x = 7.
  • Vertical slope: undefined.
  • The vertical line is not a function of x.
Double-check The horizontal pair has two different inputs with one output each; the vertical pair gives two outputs to input 7. That checks the function distinction.

The trap

Writing y = 7 for the vertical line. Say what stays fixed before choosing the letter. Fixed across position means x; fixed height means y.

7 Compare parallel and perpendicular lines

Open the full lessonOnly this lesson

The rule

Nonvertical lines are parallel when m1=m2 and b1≠b2; coincident when both match.

Lines with finite nonzero slopes are perpendicular when m1m2=−1. Horizontal and vertical lines are perpendicular.

How

  1. Rewrite each nonvertical equation with y alone so its slope is visible.
  2. Equal slopes and different intercepts mean parallel lines.
  3. Equal slopes and equal intercepts mean coincident lines.
  4. Otherwise multiply the slopes. A product of −1 means perpendicular lines.
  5. Handle a vertical line separately: it is perpendicular to a horizontal line, and parallel to another distinct vertical line.

Worked example

Worked example

Sort four lines into the pair that never meets and the pair that meets squarely

Four lines are given by a(x) = 3x − 2, b(x) = −3x + 7, c(x) = 13x + 1 and d(x) = 3x + 4. Which two never meet, and which two cross at a right angle?

Show the steps and the answer
(0, −2)(0.667, 0)−4−224−8816
a and d: the same slope, a constant gap of 6.
(0, 7)(2.33, 0)−4−224−8816
b and c: slopes −3 and one third, a product of −1.
  1. Read each slope from the coefficient of x: a has 3, b has −3, c has 13, d has 3.In slope-intercept form the slope is the number multiplying x, and slope is what decides parallel and perpendicular.
  2. a and d share the slope 3 and have different intercepts, −2 and 4.Two lines with the same slope rise at the same rate, so they never meet unless they are the same line; different intercepts rule that out.
  3. Multiply the slopes of b and c: (−3)×13=−1.Two nonvertical lines are perpendicular exactly when their slopes multiply to −1.
  4. Try the other pairs: 3×13=1 and 3×(−3)=−9, neither is −1, and no other pair shares a slope.Checking every pair, not only the likely ones, is what makes the answer complete.
Answer
  • Parallel: a and d.
  • Perpendicular: b and c.
Double-check a(x) − d(x) = −6 for every x, a constant gap, so a and d never meet. The negative reciprocal of −3 is 13, which is c's slope, so b and c meet at a right angle.

The trap

Changing only the sign or only flipping the fraction for a perpendicular slope. Both moves are needed, and the product must be −1.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

Different-looking equations of one line

You need to compare y = −47x + 6 with 7y = −4x + 42.

Show the steps and the answer
(0, 6)(10.5, 0)sample shared point−224682468
The dashed and solid graphs overlap because the rewritten equations match.
  1. Divide every term of the second equation by 7: y=−47x+427.Equal division preserves the same line points and isolates y.
  2. 427=6, so the second equation becomes y=−47x+6.Seven groups of 6 total 42, so the constants match too.
  3. The slopes and intercepts both match. These equations are coincident.Matching direction and placement describe the same line, rather than separated parallel lines.
Answer
Coincident: the equations describe the same line.
Double-check At x = 7, the first gives y = −4 + 6 = 2. The original second equation gives 7 × 2 = −4 × 7 + 42 = 14. Multiplying the first formula by 7 reproduces the entire second equation.

8 Write a parallel or perpendicular line through a point

about 4 minOpen the full lessonOnly this lesson

The rule

Choose m equal to the given slope for a parallel line, or m=−1mgiven for a perpendicular line with nonzero finite given slope.

Through (x1,y1), use y−y1=m(x−x1).

How

  1. Find the original slope from its equation or from two points.
  2. Choose the new slope: same for parallel, negative reciprocal for perpendicular.
  3. Insert the new slope and the required point in point-slope form, or use b = y1 − mx1.
  4. Expand and isolate y if slope-intercept form is wanted.
  5. Plug the supplied point into the final equation and check the slope relationship.

Worked example

Worked example

Lines through P(−4, −1) parallel and perpendicular to x + 2y = 6

The graph shows the line x + 2y = 6, which crosses the axes at (0, 3) and (6, 0), and the point P(−4, −1), which is not on the line. (a) Write, in slope-intercept form, an equation of the line through P that is parallel to x + 2y = 6. (b) Write, in slope-intercept form, an equation of the line through P that is perpendicular to x + 2y = 6. Check each answer by substituting P and by comparing slopes.

(0, 3)(6, 0)P(−4, −1)−8−448−448
The given line x + 2y = 6, which is y = −12x + 3, crossing the axes at (0, 3) and (6, 0).
Show the steps and the answer
  1. Find the given slope. Solve x+2y=6 for y. Subtract x from both sides to get 2y=−x+6. Divide every term by 2 to get y=−12x+3. So mgiven=−12. The marked points (0, 3) and (6, 0) agree: 0−36−0=−36=−12.In y = mx + b the coefficient of x is the slope, so the equation has to be solved for y first. Rise over run between any two points on the same line gives that same slope.
  2. Choose the new slopes. (a) Parallel: keep the same slope, so m=−12. (b) Perpendicular: m=−1mgiven=−1÷(−12)=2. The reciprocal of −12 is −2, and changing its sign gives 2. Test: (−12)(2)=−1.Parallel lines rise at the same rate, so they share a slope. Two lines with nonzero, finite slopes are perpendicular exactly when the product of their slopes is −1, and the negative reciprocal is the slope that makes that product −1.
  3. Insert each slope and P(−4,−1) into y−y1=m(x−x1). (a) y−(−1)=−12(x−(−4)), which is y+1=−12(x+4). (b) y−(−1)=2(x−(−4)), which is y+1=2(x+4).Point-slope form gives the line with slope m through (x1, y1) directly. Subtracting a negative coordinate is the same as adding, so y − (−1) becomes y + 1 and x − (−4) becomes x + 4.
  4. Expand and isolate y. (a) −12·x=−12x and −12·4=−2, so y+1=−12x−2. Subtract 1 to get y=−12x−3. (b) 2·x=2x and 2·4=8, so y+1=2x+8. Subtract 1 to get y=2x+7.Slope-intercept form is wanted. Distribute the slope over (x + 4), then subtract 1 from both sides so that y stands alone.
  5. Check with P and with the slopes. (a) −12(−4)−3=2−3=−1. The slope −12 matches the given line, and the y-intercept −3 differs from 3. (b) 2(−4)+7=−8+7=−1, and (−12)(2)=−1.Each new line must contain P, so x = −4 has to return y = −1. A parallel answer must keep the slope without being the same line. A perpendicular answer must give a slope product of −1.
Answer
(a) Parallel: y = −12x − 3. (b) Perpendicular: y = 2x + 7.
Double-check Substitute P(−4, −1). For (a), −12(−4) − 3 = 2 − 3 = −1. For (b), 2(−4) + 7 = −8 + 7 = −1. So both lines pass through P. Line (a) has slope −12, the same as the given slope, and its y-intercept is −3 rather than 3, so it is parallel and is not the same line. Line (b) has slope 2, and (−12)(2) = −1, so it is perpendicular. The shortcut b = y1 − mx1 gives the same intercepts: (a) b = −1 − (−12)(−4) = −1 − 2 = −3, and (b) b = −1 − 2(−4) = −1 + 8 = 7. In standard form the answers are x + 2y = −6 and 2x − y = −7. P fits both: −4 + 2(−1) = −6 and 2(−4) − (−1) = −7.

Work to write

  1. 2y = −x + 6, so y = −12x + 3 and mgiven = −12
  2. Parallel: m = −12
  3. Perpendicular: m = −1 ÷ (−12) = 2, since (−12)(2) = −1
  4. (a) y + 1 = −12(x + 4), so y = −12x − 3
  5. (b) y + 1 = 2(x + 4), so y = 2x + 7
  6. Check: −12(−4) − 3 = −1 and 2(−4) + 7 = −1

The trap

Using the old slope in a perpendicular problem, or using the old intercept after changing the slope. Choose the direction first, then use the new point to find the new intercept.

Quick check

Try it before you open its steps. It is question 2 of 3 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 3

Perpendicular to a negative slope

You need the perpendicular line to y = −25x + 4 through (2, −1).

Show the steps and the answer
(0, −6)(2.4, 0)point−4−2246−448
y = 2.5x − 6, solid, beside y = −0.4x + 4, dashed.
  1. The negative reciprocal is 52. Substitute −1=52×2+b=5+b.A negative original slope gives a positive perpendicular slope.
  2. Subtract 5 to obtain b = −6. Plug back in: 5−6=−1.The required point selects and verifies the intercept.
  3. Write y=52x−6.The chosen direction is now positioned correctly.
Answer
y=52x−6.
Double-check The slope product (−25) × 52 = −1, and point-slope form y + 1 = 52(x − 2) expands to the same result.

9 Find the point shared by two lines

about 4 minOpen the full lessonOnly this lesson

The rule

A solution to a system satisfies every equation.

For y=f(x) and y=g(x), solve f(x)=g(x), find y, and check both. Two lines have one, no, or infinitely many shared points.

How

  1. Graph the two lines to locate or estimate their shared point.
  2. If both outputs are formulas in the same input, set those formulas equal.
  3. Solve for the shared input. Watch for a contradiction or an equality true for every input.
  4. Substitute a found input into one original formula to obtain the output.
  5. Substitute the point into both original equations, then report both coordinates.

Worked example

Worked example

Two lines that cross between grid lines

The graph shows the line y = −2x + 1, which passes through (0, 1) and (2, −3). A second line is y = 23x − 3. Sketch the second line on the same axes and estimate where the two lines cross. Then find their shared point exactly, check it in both equations, and explain how you know the lines share no other point.

Show the steps and the answer
(0, 1)(2, −3)−6−4−2246−6−4−2246
The line y = −2x + 1 on axes from −6 to 6, with the points (0, 1) and (2, −3) marked.
  1. Add the second line to the graph. Start at its y-intercept (0,−3) and use slope 23 (up 2 for every 3 to the right) to reach (3,−1), then draw the line. The drawn line y=−2x+1 is above the new line at x=1 and below it at x=2. So they cross between x=1 and x=2, at a height of about −2. Estimate: about (1.5,−2).A shared point lies on both lines, so it is where the two graphs meet. This crossing falls between grid lines, so the graph gives only an estimate. Algebra will find the exact point, and the estimate tells us roughly what to expect.
  2. Both equations are solved for y, so set the right-hand sides equal: −2x+1=23x−3.At the shared point both lines have the same input x and the same output y. So the two formulas for y must give the same value there.
  3. Multiply both sides by 3: −6x+3=2x−9. Add 6x to both sides: 3=8x−9. Add 9 to both sides: 12=8x. Divide both sides by 8: x=128=32.Multiplying by 3 clears the fraction, and doing the same thing to both sides keeps them equal. The x-terms did not cancel, because the slopes −2 and 23 are different. Had they cancelled, a false statement such as 3 = −9 would mean no shared point, and a true one such as 3 = 3 would mean the same line. Here exactly one input works.
  4. Substitute x=32 into the first equation: y=−2(32)+1=−3+1=−2.The shared point lies on both lines, so either original formula gives its y-value. The first has a whole-number slope, which keeps the arithmetic simple.
  5. Check (32,−2) in both original equations. First: −2(32)+1=−3+1=−2✓. Second: 23(32)−3=1−3=−2✓. Report both coordinates: the shared point is (32,−2).A solution of a system must satisfy every equation. The second equation was not used to find y, so it is a real test that catches slips. The point also agrees with the graph estimate of about (1.5, −2).
Answer
The lines share exactly one point, (32, −2), where x = 32 and y = −2. They share no other point because their slopes, −2 and 23, are different, so the equation −2x + 1 = 23x − 3 has only one solution.
Double-check Walk along each line from its y-intercept to x = 32. From (0, 1) with slope −2, the height drops 2(32) = 3, from 1 to −2. From (0, −3) with slope 23, the height rises 23(32) = 1, from −3 to −2. Both lines reach (32, −2), which matches the graph estimate of about (1.5, −2).

Work to write

  1. Graph estimate: the lines cross near (1.5, −2)
  2. −2x+1=23x−3
  3. −6x+3=2x−9
  4. 12 = 8x, so x = 32
  5. y=−2(32)+1=−2
  6. Check: −2(32) + 1 = −2 ✓ and 23(32) − 3 = −2 ✓
  7. Shared point: (32, −2); exactly one, because the slopes −2 and 23 differ

The trap

Finding the shared input and stopping. A point needs its output too. Also check both original equations; a point that fits only one is not a system solution.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

Every point on one line

You need the shared points of y = 2x + 1 and 2y = 4x + 2.

Show the steps and the answer
(0, 1)(−0.5, 0)sample solution−22−4−2246
y = 2x + 1, solid, beside y = 2x + 1, dashed.
  1. Divide the second equation by 2: y=2x+1.This reveals it is the first equation again.
  2. Equate outputs and subtract both terms: 2x+1=2x+1 gives 0=0.Every input makes this equality true.
  3. State points (x,2x+1) for every real x. For x=1,y=3 and both originals give 3=3 and 6=6.All answers lie on the shared line; the sample substitution checks the description.
Answer
Infinitely many solutions: (x, 2x + 1) for every real x.
Double-check Same slope 2 and intercept 1 confirm that the graph is one line drawn twice.

10 Use an intersection to find break-even

about 6 minOpen the full lessonOnly this lesson

The rule

C(x)=F+ vx, R(x)= px, and profit P(x)=R(x)−C(x).

Break-even satisfies C(x)=R(x). For F > 0 and p > v, x=Fp−v.

How

  1. Define the input quantity and its units; count sold items as nonnegative whole numbers.
  2. Put fixed expense at the cost intercept and per-item expense at the cost slope.
  3. Put selling price at the revenue slope, with revenue 0 before any sales.
  4. Set cost equal to revenue and solve for the quantity.
  5. Plug the quantity into both functions, then report quantity and dollars together.
  6. Compare revenue with cost to tell profit from loss.
  7. If the calculated quantity is between whole items, the model has no exact whole-item break-even. When each sale contributes a positive amount, use the next whole count to reach nonnegative profit.

Worked example

Worked example

Break-even for a craft-fair bracelet table

A school art club rents a table at a one-day craft fair to sell friendship bracelets. The table rental is a flat $22, the materials for each bracelet cost $2, and the club sells each bracelet for $6. Let x be the number of bracelets sold. The graph shows the club's cost line, which meets the vertical axis at (0, 22) and passes through (8, 38). (a) Write the cost function C(x) and the revenue function R(x), and confirm that C(x) fits both marked points. (b) Sketch the revenue line on the same axes and estimate where the two lines cross. (c) Find the break-even point exactly by setting C(x) = R(x). Check it in both functions, and give both the quantity and the dollar amount. (d) Compare revenue with cost on each side of the break-even point. Bracelets are sold only in whole numbers, so decide whether the club can break even exactly. Then find the fewest bracelets it must sell so that its profit is not negative.

Show the steps and the answer
(0, 22)(8, 38)246810618304254
The cost line C(x) = 22 + 2x for the bracelet table.
  1. Let x= the number of bracelets sold during the fair. Since x counts bracelets, the real sales are whole numbers x=0, 1, 2, 3, …, and both C(x) and R(x) are measured in dollars.Cost and revenue must use the same input and the same money unit before they can be compared, and a club cannot sell a negative or fractional bracelet.
  2. The $22 table fee is owed even if nothing sells, so the cost intercept is F=22. Each bracelet adds $2 of materials, so the cost slope is v=2. This gives C(x)=22+2x. Check it against the graph: C(0)=22 and C(8)=22+2(8)=38. The slope between the marked points is 38−228−0=168=2.A fixed expense is the cost at x = 0, which is where a line meets the vertical axis. A per-item expense is how much the cost rises for each extra item, which is the slope.
  3. Each bracelet brings in $6, and no sales bring in $0, so R(x)=6x. Sketch this line on the same axes through (0, 0), (5, 30) and (10, 60).Revenue is price times quantity, so its line starts at the origin and its slope is the selling price p = 6.
  4. Read the sketch. At x=0 the revenue line sits $22 below the cost line. At x=5 the revenue line is at 30 and the cost line is at 32, so revenue is still lower. At x=6 they are at 36 and 34, so revenue is now higher. The lines cross between 5 and 6 bracelets, at a height a little above $30.Break-even is where the two lines meet, and a graph estimate gives a target that the exact answer must agree with. The $22 gap shrinks by 6 − 2 = $4 for each bracelet, so it takes a little more than 5 bracelets to close it.
  5. Set cost equal to revenue: 22+2x=6x. Subtract 2x from both sides: 22=4x. Divide both sides by 4: x=224=112=5.5.Where the lines intersect they have the same height, so the two expressions are equal there. The result matches the rule x = Fp−v = 226−2 = 5.5, because each bracelet earns $4 toward the $22 fee.
  6. Put x=5.5 into both functions: C(5.5)=22+2(5.5)=22+11=33 and R(5.5)=6(5.5)=33. The lines meet at (5.5, 33). That is 5.5 bracelets, with $33 of cost and $33 of revenue.Equal outputs confirm that 5.5 solves the equation, and the shared output is the dollar coordinate. A break-even point is reported as a quantity together with its dollars.
  7. Profit is P(x)=R(x)−C(x)=6x−(22+2x)=4x−22. For x < 5.5, P(x) < 0, so R(x) < C(x) and the club has a loss. For x > 5.5, P(x) > 0, so R(x) > C(x) and the club has a profit. On the graph, the revenue line lies below the cost line to the left of the crossing and above it to the right.The sign of R(x) − C(x) tells profit from loss, and which line is on top shows the same thing on the graph.
  8. 5.5 lies between the whole counts 5 and 6, so no whole number of bracelets breaks even exactly. At x=5,R(5)=30 and C(5)=32, a $2 loss. At x=6,R(6)=36 and C(6)=34, a $2 profit. Each bracelet adds 6−2= $4 to profit, so every count from 6 upward is profitable. The club must sell at least 6 bracelets.Only whole bracelets can be sold. When each sale contributes a positive amount, profit increases with x, so the next whole count above the break-even quantity is the fewest sales with nonnegative profit.
Answer
C(x) = 22 + 2x and R(x) = 6x meet at (5.5, 33), so the break-even point is 5.5 bracelets, where cost and revenue are both $33. Bracelets are sold whole, so the club cannot break even exactly. Selling 5 bracelets gives a $2 loss ($30 revenue against $32 cost), and selling 6 gives a $2 profit ($36 against $34). The club must sell at least 6 bracelets to avoid a loss.
Double-check Rule: x = Fp−v = 226−2 = 224 = 5.5, the same quantity. Both functions give 33 at x = 5.5, so the dollar coordinate is consistent. Profit: P(x) = 4x − 22 gives P(5.5) = 22 − 22 = 0, P(5) = 20 − 22 = −2 and P(6) = 24 − 22 = 2. These match the $2 loss at 5 bracelets and the $2 profit at 6. The graph estimate, a crossing between 5 and 6 bracelets a little above $30, agrees with (5.5, 33).

Work to write

  1. x = number of bracelets sold; x = 0, 1, 2, …
  2. C(x) = 22 + 2x
  3. R(x) = 6x
  4. 22 + 2x = 6x
  5. 22 = 4x, so x = 224 = 5.5
  6. C(5.5) = 22 + 2(5.5) = 33 and R(5.5) = 6(5.5) = 33
  7. Break-even point (5.5, 33): 5.5 bracelets and $33
  8. x = 5: R(5) = 30 < C(5) = 32, a $2 loss
  9. x = 6: R(6) = 36 > C(6) = 34, a $2 profit
  10. No exact whole-bracelet break-even; sell at least 6 bracelets

The trap

Confusing the shared revenue with profit. At break-even both cost and revenue can be large, but profit is their difference, which is 0.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

Prices with decimals

You need the break-even quantity with an $84 setup fee, production cost $1.50 per item, and sale price $3.25 per item. Assume every item produced is sold.

Show the steps and the answer
(0, 84)(−56, 0)48 items, $1567213549632472120168216
The cost begins at $84; the revenue catches it at 48 items.
  1. Write C(x)=84+1.50x and R(x)=3.25x. Set 84+1.50x=3.25x.A common input must give equal costs and revenue at break-even.
  2. Multiply every term by 100: 8,400+150x=325x.This clears the two-place decimal coefficients and scales the fixed fee too.
  3. Subtract 150x: 8,400=175x.The remaining coefficient corresponds to each sale's $1.75 contribution, measured in cents.
  4. Divide by 175: x=48, because 175×48=8,400.This finds the quantity paying the setup bill.
  5. Check C(48)=84+1.50×48=84+72=156.The original cost formula verifies the total expense.
  6. Check R(48)=3.25×48=156.The original revenue formula gives the same total, so the solved count works.
Answer
  • 48 items.
  • Cost = revenue = $156.
  • Break-even point: (48, 156).
Double-check The contribution route gives 48 × $1.75 = $84, exactly the starting bill. All decimals here are exact prices.

11 Quick checks for the whole unit

8 questions

Quick check 1 of 8

Find the input giving output 0 for f(x) = 4x − 8, and name its x-intercept point.

Show the steps and the answer
Answer
  • x = 2.
  • Intercept point: (2, 0).
  • Reason: 0 = 4x − 8 gives 4x = 8, and f(2) = 8 − 8 = 0.

Quick check 2 of 8

What slope makes a right angle with y = 25x + 1?

Show the steps and the answer
Answer
−52, because 25 × (−52) = −1.

Quick check 3 of 8

Are y = 3x − 1 and 6x − 2y = 8 parallel?

Show the steps and the answer
Answer
Yes. Isolating y in the second gives y = 3x − 4: both slopes are 3 and their intercepts differ.

Quick check 4 of 8

Find the shared point of y = 2x + 1 and y = −x + 7.

Show the steps and the answer
Answer
(2, 5), because equal outputs give 3x = 6, and both formulas return 5 at input 2.

Quick check 5 of 8

What is the vertical line through (−4, 9)?

Show the steps and the answer
Answer
x = −4, because the across coordinate stays fixed while the height can vary.

Quick check 6 of 8

Is y = −34x + 7 increasing or decreasing?

Show the steps and the answer
Answer
Decreasing, because each move right 4 lowers the output by 3.

Quick check 7 of 8

At the small-item break-even point, cost and revenue are both $25. What is the profit?

Show the steps and the answer
Answer
$0, because profit = revenue − cost = $25 − $25.

Quick check 8 of 8

A two-line system simplifies to 0 = 0. Do all points in the plane solve it?

Show the steps and the answer
Answer
  • No. The coincident lines have infinitely many solutions on their common line
  • points away from that line fail the original equations.