Function Transformation Grapher
Explore translations, stretches and reflections by editing a base function.
About the Function Transformation Grapher
Explore translations, stretches and reflections by editing a base function.
How to use this calculator
- Choose a base function, such as \(f(x)=x^2\) or \(f(x)=|x|\).
- Edit the transformation settings to move the graph left, right, up, or down.
- Add stretches, compressions, or reflections to change the graph’s shape and orientation.
- Compare the original and transformed graphs, and use the displayed formula to check your result.
The formula explained
A transformed function often has the form \(g(x)=a\,f(b(x-h))+k\). This formula tells you how the base graph changes: horizontal shifts, horizontal stretches or shrinks, vertical stretches or shrinks, and reflections.
- x = the input value on the horizontal axis
- f(x) = the original base function
- g(x) = the transformed function
- a = vertical stretch or shrink factor, and reflection across the x-axis if negative
- b = horizontal stretch or shrink factor, and reflection across the y-axis if negative
- h = horizontal shift, right if positive and left if negative
- k = vertical shift, up if positive and down if negative
Step by step method
- Start with the base graph, for example \(f(x)=x^2\).
- Apply shifts first, then stretches or reflections, using the transformation parameters you chose.
- Write the new rule in the form \(g(x)=a\,f(b(x-h))+k\), then check a few points to confirm the graph matches.
Worked example
Problem. Transform the base function \(f(x)=x^2\) by shifting it right 2 units, up 3 units, and reflecting it across the x-axis.
- Right 2 units means replace \(x\) with \(x-2\), so the graph becomes \((x-2)^2\).
- Up 3 units means add 3, and reflecting across the x-axis means multiply by \(-1\), so the rule becomes \(g(x)=-(x-2)^2+3\).
- The transformed function is \(g(x)=-(x-2)^2+3\).
Answer. \(g(x)=-(x-2)^2+3\)
Tips and common mistakes
- Inside changes, like \(x-h\) or \(b(x-h)\), affect the graph horizontally, and outside changes, like \(a\) and \(+k\), affect it vertically.
- A common mistake is mixing up left and right, remember \(x-2\) shifts right 2, while \(x+2\) shifts left 2.
Frequently asked questions
What does f(x − h) do?+
Shifts the graph right by h.
What does −f(x) do?+
Reflects the graph across the x-axis.
More Mathematics Tools
Explore related calculators in this category
Absolute Value Grapher
Plot y = |f(x)| and see the characteristic V-shape and reflections.
Cosine Function Grapher
Plot y = A·cos(Bx + C) + D and compare it with the sine wave.
Cubic Function Grapher
Plot cubic functions y = ax³ + bx² + cx + d, including their inflection and turning points.
Derivative Grapher
Plot a function together with its numerical derivative f'(x) to see slope behavior.
You Might Also Like
Popular tools from other categories
.htaccess Generator
Generate common .htaccess rules, force HTTPS, www redirect, and caching, with checkboxes.
1031 Exchange Calculator - Free Online
Free Calculate tax deferral in a 1031 exchange. Step-by-step solutions and formulas included. Fast, accurate, and free, with formula and example.
4% Rule Calculator
Find the retirement nest egg you need using the 4% safe-withdrawal rule.
70% Rule Calculator
Calculate max offer using the 70% rule for flips.
Can't Find the Right Calculator?
Try our AI Math Solver, type any problem in plain English and get instant step-by-step solutions.