Reflection of Functions over the x-axis and y-axis

The transformation of functions is the changes that we can apply to a function to modify its graph. One of the important transformations is the reflection of functions. A function can be reflected over the x-axis when we have -f(x) and it can be reflected over the y-axis when we have f(-x).

Here, we will learn how to obtain a reflection of a function, both over the x-axis and over the y-axis. We will use examples to illustrate important ideas.

ALGEBRA
Graph of straight line with reflexion in x and y axes

Relevant for...

Learning about the reflection of functions over the x-axis and y-axis.

See transformations

ALGEBRA
Graph of straight line with reflexion in x and y axes

Relevant for...

Learning about the reflection of functions over the x-axis and y-axis.

See transformations

Reflecting a function over the x-axis and y-axis

The reflections of a function are transformations that make the graph of a function reflected over one of the axes. A reflection is equivalent to "flipping" the graph of the function using the axes as references.

We can understand this concept using the function $latex f(x)=x+1$. When we graph this function, we get the line shown in the following graph:

Graph of straight line 3

Now, we can perform two different transformations on the function $latex f(x)$ to obtain the following functions:

(i) $latex -f(x)=-(x+1)=-x-1$

(ii) $latex f(-x)=(-x)+1=-x+1$

If we plot functions (i) and (ii) together with the original function $latex f(x)$, we have:

Graph of straight line with reflexion in x and y axes

In case (i), the graph of the original function $latex f(x)$ has been reflected over the x-axis.

In case (ii), the graph of the original function $latex f(x)$ has been reflected over the y-axis.

In short, we have:

  • The transformation $latex -f(x)$, results in a reflection of the graph of $latex f(x)$ over the x-axis.
  • The transformation $latex f(-x)$ results in a reflection of the graph of $latex f(x)$ over the y-axis.

Examples of reflection of functions over the axes

In the following examples, we apply what we have learned about reflecting functions over the x-axis and over the y-axis. Each example has a detailed solution.

EXAMPLE 1

Graph the function $latex f(x)=x^2-2$, and then graph the function $latex g(x)=-f(x)$.

Solution

EXAMPLE 2

What is the difference between the graph of $latex f(x)=\cos(2x)$ and the graph of $latex g(x)=\cos(-2x)$?

Solution

EXAMPLE 3

Graph the absolute value function in base form, and then graph $latex g(x)=-|x|$.

Solution

EXAMPLE 4

What is a function that has a reflection over the y-axis of the function $latex f(x)=3x^2+5x+3$?

Solution

Reflection of functions - Practice problems

Solve the following practice problems by using everything you have learned about reflection of functions.

We have the function $latex f(x)=3x^3+4x-5$, what is the transformation of the function $latex g(x)=-3x^3-4x-5$ with respect to f?

Choose an answer





If we have the function $latex f(x)=x^2-x+2$. Which of the following functions has a reflection over the y-axis with respect to the function f?

Choose an answer






Which of the following functions has a reflection over the y-axis when compared to the function $latex f(x)=x^4-x^3-2x-3$?

Choose an answer






Move the sliders and see both reflections at work in the function transformations explorer.

See also

Interested in learning more about function transformations? Take a look at these pages:

Learn mathematics with our additional resources in different topics

LEARN MORE