The Wayback Machine - https://web.archive.org/web/20240605164134/https://www.geeksforgeeks.org/graph-transformations/
Open In App

Graph Transformations

Last Updated : 20 May, 2024
Improve
Improve
Like Article
Like
Save
Share
Report

Graph transformations involve changing the appearance or position of graphs by shifting them horizontally or vertically, stretching or compressing them, reflecting them across axes, or rotating them around a fixed point. These modifications help visualize how functions change under different conditions or transformations.

In this article, we will learn the meaning of graph transformations, the types of graph transformations, and properties of graph translations.

What is Transformations of Graph?

The transformations of a graph are changes made to its appearance or position. These changes can include shifting the graph up, down, left, or right, stretching or compressing it, and flipping it. These transformations help us understand how the graph changes based on different factors, such as adding or subtracting numbers to the function, multiplying or dividing it, or reflecting it across an axis.

By applying these transformations, we can visualize how the original graph is modified to represent different situations or scenarios.

Types of Graph Transformations

  • Translation (Shift): Moving the entire graph horizontally, vertically, or both without changing its shape or orientation.
  • Vertical Shift (Vertical Translation): Moving the entire graph up or down by a certain amount.
  • Horizontal Shift (Horizontal Translation): Moving the entire graph left or right by a certain amount.
  • Vertical Stretch or Compression: Scaling the graph vertically by a factor, making it taller (stretch) or shorter (compression).
  • Horizontal Stretch or Compression: Scaling the graph vertically by a factor, making it taller (stretch) or shorter (compression).
  • Reflection over the x-axis: Scaling the graph vertically by a factor, making it taller (stretch) or shorter (compression).
  • Reflection over the y-axis: Flipping the graph left to right across the y-axis, changing the sign of the x-coordinates.
  • Rotation: Rotating the graph around a point, usually the origin, by a certain angle.
  • Horizontal Shearing: Slanting the graph horizontally by a certain factor.
  • Vertical Shearing: Slanting the graph vertically by a certain factor.

Let’s discuss these in detail as follows:

Translation

A graph can be translated in two ways, horizontally and vertically.

Translation-Graph-Transformation


Horizontal Translation: When a graph is translated horizontally, each point on the graph moves left or right along the x-axis. The equation of the graph remains the same, but a constant value is added or subtracted from the x-coordinate of each point. For example, if we translate the graph of y = f(x) by c units to the right, the new equation becomes y = f(x − c).

Vertical Translation: When a graph is translated vertically, each point on the graph moves up or down along the y-axis. The equation of the graph remains the same, but a constant value is added or subtracted from the y-coordinate of each point. For example, if we translate the graph of y = f(x) by d units upward, the new equation becomes y = f(x) + d.

Reflection

Horizontal Reflection: A horizontal reflection, also known as a reflection across the y-axis, flips the graph of a function over the y-axis. This is achieved by replacing x with −x in the equation of the function. For example, if we reflect the graph of y=f(x) horizontally, the new equation becomes y=f(−x).

Reflection-Graph-Transformation


Vertical Reflection: A vertical reflection, also known as a reflection across the x-axis, flips the graph of a function over the x-axis. This is achieved by replacing y with −y in the equation of the function. For example, if we reflect the graph of y=f(x) vertically, the new equation becomes y=−f(x).

Scaling (Dilation)

Scaling, also known as dilation, is a geometric transformation that involves stretching or compressing an object in one or more directions. In the context of graphs, scaling refers to the process of enlarging or shrinking a graph along the x-axis, y-axis, or both. There are two types of scaling:

Scaling-Graph-Transformation

Horizontal Scaling: Horizontal scaling stretches or compresses the graph of a function horizontally. If the scaling factor is greater than 1, the graph is stretched horizontally, and if the scaling factor is between 0 and 1, the graph is compressed horizontally. This is achieved by multiplying the x-coordinates of each point on the graph by the scaling factor. For example, if we scale the graph of y = f(x) horizontally by a factor of a, the new equation becomes y = f(ax).

Vertical Scaling: Vertical scaling stretches or compresses the graph of a function vertically. This is achieved by multiplying the y-coordinates of each point on the graph by the scaling factor. For example, if we scale the graph of y = f(x) vertically by a factor of b, the new equation becomes y = bf(x).

Rotation

Clockwise Rotation: Clockwise rotation turns the graph of a function clockwise around a fixed point (usually the origin) by a certain angle. This is achieved by applying a rotation matrix to the coordinates of each point on the graph.

Example: If we rotate the graph of y = f(x) clockwise by an angle θ, the new coordinates (x’, y’) are obtained using the transformation:

(x’, y’) = [Tex]\begin{cases} x’ = x \cos(\theta) + y \sin(\theta) \\ y’ = -x \sin(\theta) + y \cos(\theta) \end{cases}[/Tex]

Therefore, the new equation after rotating y = f(x) clockwise by θ is:

[Tex]y = f \left( \frac{x \cos(\theta) + y \sin(\theta)}{\cos(\theta) – \sin(\theta)} \right)[/Tex]

Rotation-Graph-Transformation


Counterclockwise Rotation: Counterclockwise rotation turns the graph of a function counterclockwise around a fixed point (usually the origin) by a certain angle. This is achieved by applying the inverse rotation matrix to the coordinates of each point on the graph.

Example: If we rotate the graph of y = f(x) anti-clockwise by an angle θ, the new coordinates (x’, y’) are obtained using the transformation:

(x’, y’) = [Tex]\begin{cases} x’ = x \cos(\theta) – y \sin(\theta) \\ y’ = -x \sin(\theta) + y \cos(\theta) \end{cases}[/Tex]

Therefore, the new equation after rotating y = f(x) anti-clockwise by θ is:

[Tex]y = f \left( \frac{x \cos(\theta) – y \sin(\theta)}{\cos(\theta) + \sin(\theta)} \right)[/Tex]

Shearing

Shearing is a geometric transformation that involves shifting one part of an object or figure in a fixed direction while keeping the rest of the object stationary. This results in a deformation of the object, where the shape is changed but the size and orientation remain the same.

Shearing-Graph-Transformation


In the context of graphs, shearing involves stretching or compressing a graph in one direction while leaving the other direction unchanged. There are two types of shearing:

Horizontal Shearing

Horizontal shearing stretches or compresses the graph of a function horizontally in one direction while keeping the other direction unchanged. This is achieved by adding a multiple of the y-coordinate to the x-coordinate of each point on the graph.

Example: If we horizontally shear the graph of y = f(x) by a factor of k , the new coordinates (x’, y’) are obtained using the transformation:

[Tex](x’, y’) = \begin{cases} x’ = x + ky \\ y’ = y \end{cases}[/Tex]

Therefore, the new equation after horizontally shearing y = f(x) by a factor of k is:

y = f(x – ky)

Vertical Shearing

Vertical shearing stretches or compresses the graph of a function vertically in one direction while keeping the other direction unchanged. This is achieved by adding a multiple of the x-coordinate to the y-coordinate of each point on the graph.

Example: If we vertically shear the graph of y = f(x) by a factor of k , the new coordinates (x’, y’) are obtained using the transformation:

[Tex](x’, y’) = \begin{cases} x’ = x \\ y’ = y + kx \end{cases}[/Tex]

Therefore, the new equation after vertical shearing y = f(x) by a factor of k is:

y = f(x) – kx

Properties of Graph Transformations

Graph transformations exhibit several properties that are important to understand when manipulating graphs. Here are some key properties:

  • Preservation of Shape: Most graph transformations preserve the basic shape of the original graph. For instance, a translation or rotation does not change the overall shape of the graph, but simply moves or rotates it.
  • Preservation of Slope: Some transformations, such as translations and scalings, preserve the slope of the original graph. For example, if a function has a constant slope, it will maintain that slope after a translation or scaling.
  • Preservation of Length: Certain transformations, like translations and rotations, preserve the lengths of line segments and curves on the graph. This means that distances between points on the original graph remain unchanged.
  • Effect on Intercepts: Transformations can affect the intercepts of a graph. For example, a vertical translation will change the y-intercept of a function, while a horizontal translation will change the x-intercept.
  • Symmetry: Some transformations introduce symmetry into the graph. For example, a reflection across the x-axis or y-axis creates symmetry with respect to that axis.
  • Orientation: Transformations like rotations change the orientation of the graph. For example, a clockwise rotation will change the orientation of the graph compared to a counterclockwise rotation.
  • Effect on Domain and Range: Certain transformations may affect the domain and range of the function represented by the graph. For example, a vertical scaling may stretch or compress the range of the function.

Solved Examples on Graph Transformation

Example 1: Horizontal Translation

Solution:

Original Function: f(x) = x2

Transformed Function: f(x – 3) = (x – 3)2

Result: The graph of f(x) = x2 is shifted 3 units to the right.

Example 2: Vertical Translation

Solution:

Original Function: f(x) = sin(x)

Transformed Function: f(x) + 2 = sin(x) + 2

Result: The graph of f(x) = sin(x) is shifted 2 units up.

Example 3: Reflection over the x-axis

Solution::

Original Function: f(x) = √(x)

Transformed Function: -f(x) = -√(x)

Result: The graph of f(x) = √(x) is reflected over the x-axis.

Example 4: Vertical Stretch

Solution:

Original Function: f(x) = cos(x)

Transformed Function: 2f(x) = 2cos(x)

Result: The graph of f(x) = cos(x) is stretched vertically by a factor of 2.

Example 5: Combination of Transformations

Solution:

Original Function: f(x) = x3

Transformed Function: 2f(3x – 1) + 4 = 2(3x – 1)3 + 4

Result: The graph undergoes a horizontal compression by a factor of 1/3, a horizontal translation by 1/3 units to the right, a vertical stretch by a factor of 2, and a vertical translation by 4 units up.

Conclusion

In conclusion, graph transformations play a crucial role in altering the appearance and position of graphs while preserving certain properties. Understanding the various types of transformations, such as translation, rotation, reflection, scaling, and shearing, enables us to manipulate graphs to visualize and analyze mathematical concepts effectively. By applying transformation rules, we can see how graphs change in response to different factors and scenarios, enhancing our understanding of mathematical relationships and functions.

Read More,

FAQs about Graph Transformations

What are the 4 types of transformation?

The four main types of transformations are translation, rotation, reflection, and scaling (also known as dilation). These transformations are fundamental in mathematics and are used to modify the position, orientation, and size of objects or figures.

What are the transformations on a graph?

Transformations on a graph refer to changes made to the appearance of a graphed function or shape. These transformations include translations (moving the graph horizontally or vertically), rotations (turning the graph around a fixed point), reflections (flipping the graph across a line), and scalings (resizing the graph horizontally, vertically, or both).

What is the transformation method of a graph?

The transformation method of a graph involves applying one or more transformations to change its appearance. This method allows you to modify the position, orientation, and size of the graphed function or shape according to specific rules and techniques.

What are the 5 levels of transformation?

Transformations are often grouped based on complexity and steps involved. These include:

  • Basic transformations like translation and rotation.
  • Composite transformations, combining basics.
  • Higher-level transformations like stretching.
  • Hierarchical transformations, applied in specific orders.
  • Continuous transformations for smooth transitions.

What are the rules of transformation?

The rules of transformation outline how to perform each type of transformation accurately. For example:

  • Translation: Shift the graph horizontally by adding or subtracting a constant from each x-coordinate, and vertically by adding or subtracting a constant from each y-coordinate.
  • Rotation: Rotate the graph around a fixed point by a specified angle, using rotation matrices or trigonometric functions.
  • Reflection: Reflect the graph across a line (e.g., x-axis, y-axis) by negating the appropriate coordinates.
  • Scaling: Resize the graph horizontally or vertically by multiplying the x-coordinates or y-coordinates by a scaling factor.


Previous Article
Next Article

Similar Reads

Forest Transformations in Java
Forest Transformations in Java: Java is one of the famous Sunda Islands in Indonesia; bordered by the Indian Ocean to the South and the Java Sea to the North. The population of Java is 147.7 million people, making it one of the most populous islands with approximately 55% of the Indonesian population. It is known as an Indonesian rice-producing isl
4 min read
Lorentz Transformations
Lorentz factor, often known as the Lorentz term, is a measurement that describes an object's measurements of time, length, and other physical properties, which vary when it moves. The expression occurs in derivations of the Lorentz transformations and is found in a number of special relativity equations. It is named after the Dutch physicist Hendri
10 min read
Bar Graph | Examples & How To Draw a Bar Graph
Bar Graph in Maths: A bar chart displays categorical data using rectangular bars whose heights or lengths correspond to the values they represent. These bars can be arranged vertically or horizontally. When plotted vertically, the bar chart is often referred to as a column chart. A bar graph is a visual representation of data using rectangular bars
12 min read
Find the power function that the graph of f resembles for large values of |x|, given the function f(x) = (x + 6)<sup>2</sup> (x - 2)<sup>2</sup>
Mathematics is not only about numbers but it is about dealing with different calculations involving numbers and variables. This is what basically known as Algebra. Algebra is defined as the representation of calculations involving mathematical expressions that consist of numbers, operators, and variables. Numbers can be from 0 to 9, operators are t
5 min read
How to Plot the number 4 + 2i on a Graph?
A complex number is a part of the number system in mathematics which contains both real and imaginary numbers. Or we can say that complex numbers are formed by combining two parts: one real part and the other part an imaginary one. The standard representation form of complex numbers is given by: x + yi Here, x is called the real part of complex num
4 min read
Graph of Polynomial Functions
Graphs of polynomials provide a visual representation of polynomial functions. The graphs of polynomials play a vital role in some applications like science, finance engineering, etc. In this article, we will cover what a polynomial is, what is a graph of a polynomial, what are the types of polynomial functions, how to make a graph of different typ
11 min read
Circle Graph Formula
Statistics is the branch of mathematics that deals with the collection and summarization of data. Statistics basically is concerned with the collection, analysis, interpretation, and presentation of a particular set of data. Statistics plays a vital role in the field of data collection, especially are used by the government like a census, survey ra
3 min read
Exponential Graph
Exponential Graph is a curve that represents the exponential function. Exponential function graph is a graph with a horizontal asymptote that can have increasing and decreasing slope depending on the case. Graphing exponential function is very important as it represents various aspects of life such as the growth of population in a country, the spre
7 min read
Graph of an Equation Formula
In mathematics, there are different types of graphs studied or plotted according to the collected data provided. These graphs are the pictorial representation of the information. There are several types of graphs studied under mathematics that are listed below: Pie chartBar graphHistogramDot plotScatter plotTime series graphExponential graphLogarit
4 min read
How to Find Slope From a Graph?
Answer: To find the slope from a graph, divide the change in the y-coordinate (rise) by the change in the x-coordinate (run) between two points on the line.The slope of a line on a graph represents how steep the line is, and it's calculated as the ratio of the vertical change (rise) to the horizontal change (run) between two points on the line. The
1 min read
Article Tags :