2
4
4
4
1
2
4
4
4
1
Function transformations are the building blocks of precalculus that allow you to take a simple parent function and reshape it into infinitely many related curves. Every transformation can be described by four parameters packed into a single template: $$y = a \cdot f(x - h) + k$$. Here a controls vertical stretching and reflection, h controls horizontal translation, and k controls vertical translation. Understanding these three operations lets you graph any member of a function family without plotting dozens of points by hand.
Our Function Transformations Calculator accepts five common parent functions — $$x^2$$, $$\sin x$$, $$\cos x$$, $$|x|$$, and $$\sqrt{x}$$ — and instantly shows both the original value and the transformed value at any point you choose. This is invaluable for homework checks, exam preparation, and building graphical intuition about how each parameter reshapes the curve.
In calculus and applied mathematics, transformations appear everywhere: signal processing uses amplitude scaling (a) and phase shifts (h) on sinusoidal waves, physics employs vertical offsets (k) for potential energy baselines, and computer graphics relies on affine transformations to position objects on screen. Mastering the algebra here pays dividends across STEM disciplines.
The general transformation formula is: $$y = a \cdot f(x - h) + k$$
Step 1 — Horizontal Shift: Replace $$x$$ with $$(x - h)$$. If $$h > 0$$ the graph shifts right; if $$h < 0$$ it shifts left.
Step 2 — Vertical Stretch / Reflection: Multiply by $$a$$. When $$|a| > 1$$ the graph stretches vertically; when $$0 < |a| < 1$$ it compresses. A negative $$a$$ reflects the graph across the x-axis.
Step 3 — Vertical Shift: Add $$k$$. Positive $$k$$ shifts up, negative shifts down.
For example, with $$f(x) = x^2$$, $$a = 2$$, $$h = 3$$, $$k = -1$$: $$y = 2(x - 3)^2 - 1$$. At $$x = 5$$: shifted argument = 2, base value = 4, transformed = 2(4) − 1 = 7.
The Base Value f(x) shows what the parent function returns at your chosen x without any modifications. The Transformed Value shows the output after all three operations are applied. Comparing these two numbers reveals exactly how much each parameter altered the result. If the transformed value has the opposite sign from the base value, the vertical reflection (negative a) dominates. If the magnitudes differ dramatically, the stretch factor is the primary driver.
Inputs
Results
y = (x−3)² + 2 at x = 5: shifted argument is 2, so (2)² + 2 = 6, while the original f(5) = 25.
Inputs
Results
y = −3 sin(x − π/2) at x = π: sin(π/2) = 1, so result is −3. The wave is reflected and tripled.
The parameter a scales the function vertically. When $$|a| > 1$$ the graph stretches away from the x-axis, making peaks higher and valleys deeper. When $$0 < |a| < 1$$ the graph compresses toward the x-axis. A negative value of a reflects the entire graph across the x-axis, flipping it upside down. This is equivalent to multiplying every output by a.
The transformation uses $$(x - h)$$, so when $$h = 3$$ the input that produces the vertex is $$x = 3$$ (solving $$x - 3 = 0$$). This makes the graph move right even though the formula shows subtraction. Conversely, $$h = -2$$ means $$x - (-2) = x + 2$$, shifting the graph left by 2 units.
This calculator focuses on the standard $$y = a \cdot f(x - h) + k$$ form which covers vertical stretch, horizontal shift, and vertical shift. Horizontal stretching uses the form $$f(bx)$$ where b compresses or expands along the x-axis. You can simulate a horizontal stretch by adjusting your x-values manually: evaluating at $$x/b$$ is equivalent to applying a horizontal stretch factor of b.
The calculator supports five fundamental parent functions: (1) $$f(x) = x^2$$ (quadratic/parabola), (2) $$f(x) = \sin x$$ (sine wave), (3) $$f(x) = \cos x$$ (cosine wave), (4) $$f(x) = |x|$$ (absolute value / V-shape), and (5) $$f(x) = \sqrt{x}$$ (square root). These cover the most common function families encountered in precalculus courses.
For a transformed function $$y = a \cdot f(x - h) + k$$, the key point (vertex for parabolas, center for trig functions) moves from the origin to $$(h, k)$$. So if your original vertex is at $$(0, 0)$$ and you apply $$h = 4, k = -3$$, the new vertex is at $$(4, -3)$$. The value of a does not affect the vertex location, only the shape around it.
The standard order is: (1) horizontal shift — replace $$x$$ with $$(x - h)$$, (2) apply the parent function, (3) vertical stretch/reflection — multiply by $$a$$, (4) vertical shift — add $$k$$. Following this order ensures correct results. Reversing the stretch and shift steps produces different (incorrect) curves. This order comes directly from the algebraic form $$a \cdot f(x - h) + k$$, evaluated inside-out.
Roboculator Team
The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.
How helpful was this calculator?
Be the first to rate!
Composite Function Calculator
Precalculus & Advanced Math
Piecewise Function Calculator
Precalculus & Advanced Math
Parametric Equation Calculator
Precalculus & Advanced Math
Polar Equation Calculator
Precalculus & Advanced Math
Conic Sections Calculator
Precalculus & Advanced Math
Hyperbola Calculator
Precalculus & Advanced Math