How to Transform Linear Functions: Rules and Examples

Transform a linear function by changing its inputs, outputs, or both. For \(f(x)=mx+b\), adding outside the function shifts it vertically; changing the input shifts or scales it horizontally. Write the transformed rule before simplifying so the operation stays clear. Rotation needs a specified center and can produce a vertical line, which is not a function of x.

Quick answer: To transform a linear function, change its rule. Starting from f(x) = x: f(x) + k shifts the line up k, f(x − h) shifts it right h, a·f(x) makes it steeper when |a| > 1 and flatter when 0 < |a| < 1, −f(x) reflects it over the x-axis, and f(bx) squeezes it horizontally by a factor of 1/b. Example: 3f(x) − 2 gives g(x) = 3x − 2.

How to Transform Linear Functions: Rules and Examples
Tutor-style math help

Transform Linear Functions: what to notice and how to work it

Functions skill
Use \(f(x)=2x+1\) as a reference line. Compare each new rule with this original function, then check how a familiar point moves. A changed slope alone does not tell you which transformation was intended.

What to notice first

Locate the change: outside \(f\) changes outputs; inside \(f\) changes inputs. In \(f(x-h)+k\), a positive h shifts right and a positive k shifts up.

Common student mistake

Do not call \(f(2x)\) a horizontal stretch by 2. A point with old input u now has input u/2, so horizontal distances are halved. A stretch by 2 is \(f(x/2)\).

Key formulas and cues

\(g(x)=f(x-h)+k:\ \text{right }h,\ \text{up }k\)
\(g(x)=a f(x):\ \text{multiply every output by }a\)
\(g(x)=f(cx):\ \text{divide horizontal coordinates by }c\ (c\ne0)\)
runrise yx

A reliable path

  1. Identify the operationWrite the transformation using f before expanding. State the reflection axis or rotation center when needed.
  2. Substitute the original ruleReplace f with its complete expression and keep parentheses around changed inputs or outputs.
  3. Check a pointMap a point from the original line and verify that it satisfies the transformed equation.

Worked examples

Shift right 3 units

Start with \(f(x)=2x+1\).

  1. Write \(g(x)=f(x-3)\).
  2. Substitute: \(g(x)=2(x-3)+1\).
  3. Simplify: \(g(x)=2x-5\).

The original point \((0,1)\) moves to \((3,1)\). Check: \(g(3)=1\).

Reflect, then shift up 4

Start with the same function.

  1. Reflect across the x-axis: \(-f(x)=-2x-1\).
  2. Add 4: \(g(x)=-f(x)+4\).
  3. Simplify: \(g(x)=-2x+3\).

The point \((0,1)\) becomes \((0,-1)\), then \((0,3)\). Order matters: \(-(f(x)+4)\) is a different rule.

Try one before moving on
Try: If \(h(x)=2x^2\), find \(h(-3)\).
Answer: \(18\). Use parentheses: \(2(-3)^2=18\).
The existing pop-up is a function-notation warm-up, not a transformation assessment. After reviewing the examples, explain how the same original point moves under each transformation.

Need more practice? Algebra I for Beginners 2026 covers Algebra I step by step, with practice problems and answers. Look inside · $17.99

Related Topics

Step-by-step to Transform Linear Functions

These rules all begin with \(f(x)=2x+1\). Keep the original function visible while comparing them.

Transformations of f(x) = 2x + 1
OperationNew rulePoint check
Up 2\(f(x)+2=2x+3\)\((0,1)\to(0,3)\)
Right 3\(f(x-3)=2x-5\)\((0,1)\to(3,1)\)
Reflect across x-axis\(-f(x)=-2x-1\)\((0,1)\to(0,-1)\)
Reflect across y-axis\(f(-x)=-2x+1\)\((1,3)\to(-1,3)\)
Horizontal stretch by 2\(f(x/2)=x+1\)\((1,3)\to(2,3)\)
Halve horizontal distances\(f(2x)=4x+1\)\((1,3)\to(1/2,3)\)
Vertical stretch by 2\(2f(x)=4x+2\)\((1,3)\to(1,6)\)

Why the rotation center matters

A 90-degree counterclockwise rotation about the origin maps \((x,y)\) to \((-y,x)\). Rotating \(y=2x+1\) this way gives \(y=-\tfrac12x-\tfrac12\): the original point \((0,1)\) becomes \((-1,0)\). The equation \(y=-\tfrac12x+1\) instead describes a 90-degree rotation about the original y-intercept, \((0,1)\).

A negative reciprocal slope identifies a perpendicular direction when the original slope is nonzero; it does not specify a rotation center or intercept. A horizontal line rotated 90 degrees becomes vertical and fails the vertical-line test. Ordinary input/output shifts, nonzero scalings, and axis reflections preserve a nonvertical straight-line graph; arbitrary rotations require this extra check.

Reference: OpenStax: transformations of functions. The rotation equations above are verified by mapping points directly.

Transformations of the parent function y = x

RuleNew functionWhat happens to the line
f(x) + 3y = x + 3Shifts up 3
f(x − 4)y = x − 4Shifts right 4
2f(x)y = 2xVertical stretch by 2 (steeper)
½f(x)y = ½xVertical compression by ½ (flatter)
−f(x)y = −xReflects over the x-axis
f(3x)y = 3xHorizontal compression by a factor of 1/3
f(x/2)y = ½xHorizontal stretch by a factor of 2

In general, f(bx) compresses the graph horizontally when |b| > 1 and stretches it when 0 < |b| < 1. For y = x, several rules give the same line: 3f(x) and f(3x) both give y = 3x, and −f(x) and f(−x) both give y = −x.

Why horizontal and vertical shifts can look the same

A line has the same slope everywhere, so sliding it sideways can land it in the same place as sliding it up or down. For f(x) = mx + b, shifting right h gives f(x − h) = mx − mh + b. That is the original line moved down by mh.

Example: f(x) = 2x + 1. Shifting right 3 gives f(x − 3) = 2(x − 3) + 1 = 2x − 5. Shifting down 6 gives f(x) − 6 = 2x − 5. Same line.

Putting it together: describe g(x) = −2(x − 1) + 3 starting from f(x) = x. Shift right 1, stretch vertically by 2, reflect over the x-axis, then shift up 3. Simplified, g(x) = −2x + 5. Check with a point: (1, 1) on y = x moves right to (2, 1), stretches to (2, 2), reflects to (2, −2), and shifts up to (2, 1). The formula agrees: g(2) = −4 + 5 = 1.

Frequently Asked Questions

How do you transform linear functions?

Start with the original rule, write the change using f, then substitute and simplify. For f(x) = 2x + 1, f(x) + 3 shifts the line up 3 to give 2x + 4, while 2f(x) doubles every output to give 4x + 2. Keeping parentheses around the changed input or output, such as f(x − 3) = 2(x − 3) + 1, prevents sign slips.

How do you describe transformations of linear functions?

Name the type of change, its direction and its size, in the order they happen. For g(x) = −3f(x) + 2 with f(x) = x, say: a vertical stretch by a factor of 3, a reflection over the x-axis, then a shift up 2 units. The result is g(x) = −3x + 2, which is steeper than y = x, falls from left to right and crosses the y-axis at 2.

How do you move a linear function left and right?

Change the input: f(x − h) moves the line right h units and f(x + h) moves it left h units. The sign feels backwards because the new graph needs a larger x to reach the same output. With f(x) = 2x + 1, shifting right 3 gives f(x − 3) = 2x − 5. For a line, that same graph also equals a shift down 6.

What is a reflection of a linear function?

A reflection flips the line over an axis. Over the x-axis, use −f(x), which negates every output; over the y-axis, use f(−x), which negates every input. If f(x) = 3x − 2, then −f(x) = −3x + 2 and f(−x) = −3x − 2. Both reflected lines have slope −3, but they cross the y-axis at different points.

How do you graph transformations of linear functions?

Graph the parent line first, then move two easy points and redraw the line through them. For y = x, use (0, 0) and (1, 1). To graph g(x) = x − 4, drop both points 4 units to (0, −4) and (1, −3). To graph h(x) = ½x, halve each output to get (0, 0) and (1, ½). Checking two points shows the new slope and intercept at once.

Is there a transforming linear functions worksheet PDF?

Yes. A good transforming linear functions worksheet asks students to write the new rule, describe the shift, stretch or reflection in words, and graph it next to the original line. After finishing a page, compare answers by plugging in x = 0 and x = 1, since those two outputs quickly confirm both the slope and the y-intercept.

Related to This Article

What people say about "Transforming Linear Functions: Shifts, Stretches, Flips"?

No one replied yet.

Leave a Reply