Graph is a visual representation of the function. Graphical transformations are used to alter the position and size of a graph. The primary types of transformations are Vertical stretches, horizontal stretches, reflections, etc. It is used for variety of reasons like geometry, graphical designing and data visualization.
This article is about the graphical transformations which falls under the category of Functions and graphs. This is an important topic for both board exams and competitive exams.
Graphical Transformation
Graphs are the visual representations of functions. Graphical transformations are used to change the shape, size and position of the graphs. Graphical transformations can be done by altering the functions which changes the coordinates of the graph leading to graphical transformation. Hence, graphical transformations are basically the transformation of functions.
The transformation of the graphs can be classified into Dilation transformation, Rotation transformation, Reflection transformation and Translation transformtion.
Dilation Transformation
Dilation transformaton is when the function is transformed such that the graph of the function is either stretched or shrinked.
$f(x) → af(x) , a>1$
Stretching of a graph along the y-axis occurs if we multiply all outputs y of a function by the same positive constant (here '$a$' ).
$\mathrm{f}(\mathrm{x}) \rightarrow \frac{1}{\mathrm{a}} \mathrm{f}(\mathrm{x})$ $(a > 1)$
Shrinking of a graph along the y-axis occurs if we multiply all outputs y of a function by the same positive constant (here '$\frac{1}{a}$' ).
For Example :
The graph of the function $f(x)=3 x^2$ is the graph of $y=x^2$ stretched vertically by a factor of $3$ , whereas the graph of $f(x)=\frac{1}{3} x^2$ is the graph of $y=x^2$ compressed vertically by a factor of $3$ .

$f(x)$ transforms to $f(ax), (a>1)$
Shrink the graph of f(x) ‘a’ times along the x-axis after drawing the graph of f(x),
$f(x)$ transforms to $f(x/a), (a>1)$
Stretch the graph of f(x) ‘a’ times along the x-axis after drawing the graph of f(x),
For Example: The graph of f(x)=sin x, f(x)=sin(2x), and f(x) = sin(x/2) .

Rotation Transformation
Rotation transformaton is when the function is transformed such that the graph of the function is rotated $90^o, 180^o$ or $270^o$.
To rotate a graph, change the coordinates $(x,y)$,
$90^o$: $(x,y) \rightarrow (-y,x)$
$180^o$: $(x,y) \rightarrow (-x,-y)$
$270^o$: $(x,y) \rightarrow (y,-x)$
Reflection Transformation
Reflection transformation is when the function is transformed such that the graph of the function is flipped to the opposite side without any change in the shape of size.
Transformation $f(x) → f(-x),$
When we multiply all inputs by $−1$, we get a reflection about the y-axis
So, to draw $y = f(-x)$, take the image of the curve $y=f(x)$ in the $y$-axis as a plane mirror
For example,
The graph of $y=e^x,$ $y= e^(-x) $
$f(x) → -f(x) :$
When multiplying all the outputs by $−1$, we get a reflection about the $x$-axis.
To draw $y = -f(x)$ take an image of $f(x)$ in the x-axis as a plane mirror
For example
The graph of $y=e^x,$ $y=-e^x $ (Transformation $f(x) \rightarrow-f(x)$ )

Translation Transformation
Translation transformaton is when the function is transformed such that the graph of the function is shifted.
To translate a graph,
- Horizontally to the left, $f(x) → f(x+a)$
- Horizontally to the right, $f(x) → f(x-a)$
- Vertically upwards, $f(x) → f(x)+a$
- Vertically downwards,$f(x) → f(x)-a$
Other Transformations
$f(x) →|f(x)|$
When $y = f(x)$ given
OR
Take the mirror image in the x-axis of the portion of the graph of $f(x)$ which lies below the $x$-axis
For Example:

$y=x^3$ $y=|x3|$ $y=|x3|$ and $y=x^3$
Transformation $f(x) →f(|x|) $
When $y = f(x)$ given
For Example:

$y = f(x)$ $ y = f(x) and y = f(|x|) $ $y = f(|x|) $
Transformation $f(x) → |f(|x|)|$
Or
(i) $f(x) \rightarrow|f(x)|$
(ii) $f(x) \rightarrow f(|x|)$
For Example:
$y = f(x)$ $ y = |f(x)| $

$y = f(|x|)$

$ y = |f(|x|)|$
=
$y=f(x) → |y| = f(x)$
$y = f(x)$ is given
Solved Examples Based on Graphical Transformation
Example 1: Which of the following is the graph of $|y| = cos x$?
1)![]() |
2)![]() |
3)![]() |
4)![]() |
Solution:
$
y=f(x) \rightarrow|y|=f(x)
$
$y=f(x)$ is given
1. Remove the part of the graph which lies below $x$-axis
2. Plot the remaining part
3. take the mirror image of the portion that lies above x -axis about the x -axis.
First draw $y=\cos x$
Then,
1. Remove the part of the graph which lies below $x$-axis
2. Plot the remaining part
3. take the mirror image of the portion that lies above $x$-axis about the $x$-axis

Example 2: The area bounded by the lines $y=|| x-1|-2|$ and $y=2$ is
1) $8$
2) $10$
3) $12$
4) $6$
Solution
Given the equation of curve are
$y = ||x-1|-2|$
and, $y = 2$
Plot the curve on the graph

$\begin{aligned}
& \text { Area }=\frac{1}{2} \times 2 \times C D+\frac{1}{2} \times 2 \times D E \\
& \text { Area }=C D+D E=8
\end{aligned}$
Example 3: The number of elements in the set $\{x \in \mathbb{R}:(|x|-3)|x+4|=6\}$ is equal to :
1) $3$
2) $4$
3) $1$
4) $2$
Solution
$\begin{aligned} & x \neq-4 \\ & (|x|-3)(|x+4|)=6 \\ & \Rightarrow \quad|x|-3=\frac{6}{|x+4|}\end{aligned}$

No. of solutions = $2$
Frequently Asked Questions (FAQs)
2cos(x/2) stretches the cosine graph horizontally by a factor of 2 (doubling its period) and vertically by a factor of 2 (doubling its amplitude). The resulting graph oscillates between y = -2 and y = 2, completing one full cycle every 4π units.
tan(x) + 1 shifts the entire graph of tan(x) up by 1 unit. This includes shifting the horizontal asymptotes up by 1 unit. The vertical asymptotes remain in the same x-positions.
max(0, f(x)) replaces all negative y-values with 0. This transformation effectively "cuts off" any part of the graph below the x-axis, making it coincide with the x-axis in those regions.
e^(f(x)) exponentiates all y-values of the original function. This transformation always results in positive y-values, stretches parts of the graph where y > 1, compresses parts where 0 < y < 1, and brings negative y-values close to, but never reaching, y = 0.
Most basic transformations (shifts, stretches, reflections) preserve continuity. However, some transformations like |f(x)| can introduce points of non-differentiability, and others like 1/f(x) can introduce discontinuities where f(x) = 0.
For a quadratic function, f(x+2) - 3 shifts the parabola 2 units to the left and 3 units down. The vertex of the parabola moves accordingly, but the shape (width and direction of opening) remains unchanged.
For even functions (symmetric about y-axis), f(|x|) doesn't change the graph. For odd functions, it reflects the negative x portion of the graph over the y-axis, making the resulting function even.
log(f(x)) compresses the graph vertically for y > 1, stretches it for 0 < y < 1, and is undefined for y ≤ 0. This can dramatically change the shape of the graph and often introduces a vertical asymptote at x-values where f(x) approaches 0 from the positive side.
Vertical transformations can change the y-values approached in the end behavior, while horizontal transformations can change which x-values are associated with the end behavior. However, the general trend (increasing, decreasing, or oscillating) usually remains the same unless a reflection is involved.
sin(f(x)) compresses all y-values to the range [-1, 1]. This can create a highly oscillatory graph, especially where the original function had large positive or negative values. The resulting graph will cross y = 0 wherever the original function crossed y = nπ (where n is any integer).