The Laminars Book a demo
  1. Home
  2. Graph examples
  3. Transformations of graphs
JEE · Graph examples

Transformations of graphs

Knowing how a graph moves when the equation changes lets you sketch hard graphs from easy ones.

Tap a curve to read a point. Use Open in Graph plotter to change an example, print it on graph paper or share it.

1f(x + a): left and right

(x + 3)² is x² moved 3 to the left; (x − 2)² is moved 2 to the right.

Type: y = x^2 y = (x + 3)^2 y = (x - 2)^2

2f(x) + a: up and down

Adding a constant moves the whole graph up (or down).

Type: y = x^2 y = x^2 + 2 y = x^2 - 3

3k·f(x): vertical stretch

3x² is stretched upwards, 0.3x² is squashed.

Type: y = x^2 y = 3x^2 y = 0.3x^2

4f(kx): horizontal squeeze

sin 2x is sin x squeezed towards the y-axis by a factor of 2.

Type: y = sin x y = sin 2x

5−f(x) and f(−x): reflections

−eˣ is eˣ reflected in the x-axis; e⁻ˣ is eˣ reflected in the y-axis.

Type: y = e^x y = -e^x y = e^-x

6|f(x)|

The parts of x² − 4x + 3 below the x-axis are flipped up.

Type: y = x^2 - 4x + 3 y = |x^2 - 4x + 3|

7f(|x|)

Keep the graph for x ≥ 0 and reflect it into x < 0.

Type: y = x^2 - 4x + 3 y = |x|^2 - 4|x| + 3

8A function and its inverse

2ˣ and log₂x are reflections of each other in y = x.

Type: y = 2^x y = log_2(x) y = x