← Math & statistics

Function Transformation Calculator

Graph transformations from the parent graph by changing a, b, h, and v. Compare shifts, stretches, compressions, and reflections side by side.

No sign-in. Calculations run in your browser.

Other languages 日本語 | English | 简体中文 | 繁體中文 | 繁體中文(香港) | Español | Español (México) | Português (Brasil) | Português (Portugal) | Bahasa Indonesia | Tiếng Việt | 한국어 | Français | Deutsch | Italiano | Русский | हिन्दी | العربية | বাংলা | اردو | Türkçe | ไทย | Polski | Filipino | Bahasa Melayu | فارسی | Nederlands | Українська | עברית | Čeština
Parameters

Graph

Gray shows the base f(x); blue shows the transformed y. Dashed lines mark asymptotes and the dot marks the chosen x*.

Results

f(x) = x
f(x) = x
y = x
y = x
Horizontal scale 1/|b|Vertical scale |a|Reflect over x-axis?Reflect over y-axis?Shift (h, v)RangePeriod
11NoNo(0, 0)

x ∈ [-10, 10] · y ∈ [-12.4, 12.4]

How it's calculated

  1. Model: y = a·f(b(x−h)) + v, f = linear
  2. Horizontal: x→(x−h)→b(x−h); shift none, scale 1/|b|=1, reflect y-axis? No
  3. Vertical: y→a·y+v; scale |a|=1, reflect x-axis? No, shift none
  4. Evaluate x*=0 ⇒ u=b(x*−h)=0, y=a·f(u)+v=0

How to read a, b, h, and v

Quick examples

Common mistakes

If (t, f(t)) is on the parent graph, it becomes (t/b + h, a·f(t) + v) on the transformed graph when b ≠ 0. Use that point mapping to sanity-check the graph against the algebra.

FAQ

How do I read transformations of functions from the parent graph?

Start with the parent graph, then change one parameter at a time. h and v shift the graph, while a and b control scaling and reflections.

What does positive h mean in a function transformation?

In y = a·f(b(x−h)) + v, positive h shifts the graph to the right. Negative h shifts it to the left.

How do a and b cause reflections?

If a is negative, the graph reflects across the x-axis. If b is negative, the graph reflects across the y-axis.

Why does |b| > 1 compress horizontally?

Because b multiplies the x-input before f. A feature at x=t on f appears at x=t/b after transformation (plus h), so distances in x become smaller when |b| is larger than 1.

What does the share URL store?

The link stores the family, a, b, h, v, domain preset, x*, and whether teacher mode is on, so the same graph and settings open right away.