Precalculus-I · Unit 10 · Video 2 · Interactive Practice

Graphing Lines as Transformations of y = x

IKey Formulas

FormulaMoveEffect on y=xy = x
f(x)=xf(x) = xIdentity functionThe diagonal line through the origin, slope 11
f(x)=mxf(x) = mxVertical stretch, compression or reflectionStretch if ∣m∣>1\lvert m\rvert > 1, compress if 0<∣m∣<10 < \lvert m\rvert < 1, reflect across the x-axis if m<0m < 0
f(x)=mx+bf(x) = mx + bVertical shift by bbUp bb if b>0b > 0, down ∣b∣\lvert b\rvert if b<0b < 0; the slope is unchanged

Key Insight: The moves follow the order of operations: multiply by mm first, then add bb. Shifting first gives a different line.

IITwo Moves from y=xy = x

Any line y=mx+by = mx + b is the identity line, first scaled vertically by mm, then shifted by bb.

IIIWhy the Order Matters

For f(x)=12x−3f(x) = \tfrac{1}{2}x - 3, compressing then shifting reproduces the formula; shifting then compressing does not.

IVQuiz Questions

Problem 1 · Name the Moves

Which sequence of transformations turns the graph of y=xy = x into the graph of g(x)=−3x+2g(x) = -3x + 2?

✅ Correct! m=−3m = -3: the sign reflects and ∣−3∣=3>1\lvert -3\rvert = 3 > 1 stretches; then b=2b = 2 shifts up 22.
❌ Not quite. The negative slope reflects the line, and +2+2 shifts it up.
❌ Not quite. A factor with ∣m∣>1\lvert m\rvert > 1 stretches; compression is for 0<∣m∣<10 < \lvert m\rvert < 1.
❌ Check the order. Shifting first gives −3(x+2)=−3x−6-3(x + 2) = -3x - 6. Multiply first, then add.
Show solution

In g(x)=−3x+2g(x) = -3x + 2, m=−3m = -3 and b=2b = 2.

Multiplying the outputs of y=xy = x by −3-3 reflects the line across the x-axis and stretches it by 33, giving y=−3xy = -3x. Adding 22 then shifts it up 22: y=−3x+2y = -3x + 2.

Problem 2 · Shifted Before Stretching

A student shifts y=xy = x up 44 units and then stretches the result vertically by a factor of 33. Which function is graphed?

✅ Correct! The stretch multiplies the whole output x+4x + 4: 3(x+4)=3x+123(x + 4) = 3x + 12.
❌ Not quite. 3x+43x + 4 is what you get when you stretch first. Here the shift came first, so the stretch acts on x+4x + 4.
❌ Not quite. The stretch multiplies the xx term as well: 3(x+4)3(x + 4).
❌ Not quite. A vertical stretch multiplies the outputs by 33; it does not add 33.
Show solution

Shift up 44: y=x+4y = x + 4. Stretch by 33, which multiplies every output by 33:

y=3(x+4)=3x+12.y = 3(x + 4) = 3x + 12.

This line crosses the y-axis at 1212, not 44. To graph y=3x+4y = 3x + 4, stretch first and then shift.

Problem 3 · Equation from a Graph

A line passes through (−3,0)(-3, 0), (0,−6)(0, -6) and (−4,2)(-4, 2). Write it in the form y=mx+by = mx + b.

✅ Correct! b=−6b = -6 from (0,−6)(0, -6), and from (−3,0)(-3, 0) to (0,−6)(0, -6) the line goes right 33, down 66: m=−2m = -2.
❌ Check the sign. Moving right from (−3,0)(-3, 0) to (0,−6)(0, -6) the output falls, so the slope is negative.
❌ Not quite. That is run over rise. Slope is rise over run: −63=−2\tfrac{-6}{3} = -2.
❌ Not quite. −3-3 is where the line meets the x-axis; bb is the y-axis crossing, −6-6.
Show solution

The y-intercept is (0,−6)(0, -6), so b=−6b = -6. Using (−3,0)(-3, 0) and (0,−6)(0, -6):

m=−6−00−(−3)=−63=−2.m = \frac{-6 - 0}{0 - (-3)} = \frac{-6}{3} = -2.

So y=−2x−6y = -2x - 6. Check the third point: −2(−4)−6=8−6=2-2(-4) - 6 = 8 - 6 = 2 ✓. As transformations: y=xy = x reflected and stretched by 22, then shifted down 66.

Problem 4 · Follow the Instructions

The line y=xy = x is compressed vertically by a factor of 14\tfrac{1}{4}, and then shifted so that it crosses the y-axis at 55. What is its output at x=8x = 8?

✅ Correct! The line is y=14x+5y = \tfrac{1}{4}x + 5, and 14(8)+5=7\tfrac{1}{4}(8) + 5 = 7.
❌ Not quite. Compressing by 14\tfrac{1}{4} multiplies the outputs by 14\tfrac{1}{4}, not by 44.
❌ Check the order. 134=14(8+5)\tfrac{13}{4} = \tfrac{1}{4}(8 + 5) shifts before compressing. The compression acts first.
❌ Not quite. 14(8)=2\tfrac{1}{4}(8) = 2 is the compressed line; the shift then adds 55.
Show solution

Compressing y=xy = x by 14\tfrac{1}{4} gives y=14xy = \tfrac{1}{4}x, which crosses the y-axis at 00. To cross at 55, shift up 55: y=14x+5y = \tfrac{1}{4}x + 5.

y(8)=14(8)+5=2+5=7.y(8) = \tfrac{1}{4}(8) + 5 = 2 + 5 = 7.

Solved: 0 / 4