In this explainer, we will learn how to reflect a graph on the - or -axis, both graphically and algebraically.

One of the fundamental concepts in geometry is that of transforming a shape with the standard actions of translation, rotation, reflection, and dilation. Often, these concepts are illustrated using polygons and other common concepts, usually with familiar and ubiquitous shapes, such as triangles and circles. Once these notions are understood intuitively, it is common to begin treating the subject a little more precisely, with the aim of understanding *exactly* what happens to a shape when it undergoes some combination of transformations. A common way of illustrating this is to refer to the vertices of a shape, which can be expressed using precise coordinates and hence can have these movements tracked as the result of transformations being applied. Approaching the topic in such a way will allow for a visual understanding of transformations to be combined with concepts that are drawn from coordinate geometry.

In many senses, understanding the effects of transformation on a function can be thought of as a generalization of the above approach. If a function is well-defined (either algebraically or with a suitably descriptive graph), then its qualitative behavior can be known at all points, and we might then be interested in how the function behaves when it is subjected to various transformations. Given that a function is ideally written as a formula or an algebraic expression, it is a natural extension to ask how transforming the function can be represented within this framework. Fortunately, many transformations are simple to explain using intuitive algebraic rules, especially for some types of translations, reflections, and dilations.

This explainer will focus on what happens to a graph when it is reflected in the -axis or -axis. It is possible to reflect any function through any straight line, such as the line or any other of the form . These can all be understood algebraically as well as visually, although the simplest case is the reflection in either of the axes. As we will see, these two types of reflections are simple to understand visually, and have a similarly straightforward algebraic interpretation.

### Definition: Reflecting a Function in the Horizontal or Vertical Axis

Consider a function that is plotted on the standard -axis. Then, a reflection in the -axis can be produced using the function , and a reflection in the -axis can be found using the function .

As an aside, we might ask to verify the above definition with a simple check. For example, we would expect that if we were to reflect a function in the -axis and then reflect the new function again in the -axis, then we would recover the original function. The argument would similarly hold for a double reflection in the -axis. We can see that this property is respected by the algebraic rules that were set out in the definition above. Suppose we took some function and reflected in the -axis to obtain . Using the definition would give . If we were then to reflect in the -axis to obtain a new function , then we would find that , thus returning the original function, as expected. Similar working shows that the same result holds when reflecting a function twice in the -axis.

We will demonstrate both of these types of reflections using an example quadratic function. In particular, we will use the function

This function has two roots that can be found by factoring or by the quadratic root formula as and . Plotting this function in the range produces the graph below, which we could verify by creating a table of values or by using any standard graph-plotting software. Note that we have marked the roots with red dots.

We will now seek to reflect this function in the -axis, which will mean reflecting about the horizontal line . Given that the function is fairly simplistic, we can predict that the effect will be as shown in the graph below. Note that the roots are unchanged and we, in essence, have just “flipped” the function about the horizontal axis.

As stated in the definition above, we can understand this transformation in an algebraic sense by creating the function . This amounts to little more than an overall sign change in every term of the function and, given that we defined , when reflected in the -axis, we would simply take

Should we wish to, we could verify that this algebraic expression does indeed produce the graph shown above and that the roots are unchanged. As a way of confirming our result, we can see now that the -intercept term has had a change of sign, which is expected from a reflection in the -axis. We can also see that the shape of the quadratic function has shifted from a “u” shape to an “n” shape, as respected by the change in sign on the -term.

This type of reflection is normally thought of as being the slightly easier of the two. Geometrically speaking, both types of reflections are easy to visualize, although when we reflect in the -axis, we need to be a little more careful. Suppose we took the original function and decided to reflect in the -axis, which would mean that we would be reflecting in the vertical line . Applying this transformation to the original function would return the following graph.

Note that the -intercept is unchanged but that the roots have changed sign. The overall shape of the quadratic is still a “u” shape, which means that the quadratic term must have a positive coefficient. To understand how to express this new function algebraically and explicitly, we can make the substitution in the original function. Doing this results in the following working:

This result is of the form that we expected, with the -intercept being unchanged along with the sign of the quadratic term. The only term that has changed is that of the linear term, although this is enough to cause the change in shape that we have witnessed. We can check that the plot corresponds to the equation above and that the roots are exactly and .

Although we have chosen to use a quadratic function to demonstrate these two reflections, we easily could have chosen any other type of function that could be described explicitly. Often, such concepts are demonstrated using polynomials (typically linear, quadratic, or cubic), although we can use any function for this purpose. We will now begin to cover a series of examples that will illustrate the ideas we have discussed above.

### Example 1: Identifying the Graph of a Function Following a Reflection in an Axis

Consider the function , where .

- Which of the graphs represents the function ?
- Which of the graphs shown represents the reflection of on the -axis?
- Which of the graphs shown represents the reflection of on the -axis?

### Answer

**Part 1**

We are told that , which means that the function is not defined when takes values less than 1. This means that we can exclude the options B and D, which both appear to be defined in the region .

Next, we can try investigating the behavior of the function at a particular value. It is normally sensible to begin with boundary values, and in this case, we will consider the situation when . Our definition of gives which means that the graph of the function must pass through the point . From the remaining options of A, C, and E, the only graph that has this property is option C.

**Part 2**

We have already done most of the hard work by determining that corresponds to option C. By checking the graph above, we can see that reflecting in the -axis gives the graph A and that there are no other possibilities. Given that the new function would be determined by and since is entirely positive in the given domain, the reflected function must be entirely negative in the same domain. This confirms that the only option is A.

**Part 3**

Looking at the original function plotted by option C, reflecting in the -axis clearly gives option B. To confirm this, recall that the reflected function would be found by plotting . We could confirm this by recalling that is defined with the domain , which must mean that the reflected function is defined under the domain . The only two options with this domain are B and D. Given that is entirely positive, this must also be the case for , which eliminates D as an option.

It is expected that students will be able to perform a reflection in the -axis or -axis by recognizing the two transformations and without it necessarily being mentioned that this corresponds to a particular reflection. Sometimes, you will be asked to visually depict these transformations without actually being given an explicit formula for the function itself or without being told directly that you are effectively being asked to perform a reflection. We will see this in the next example.

### Example 2: Identifying the Graph of a Function Following a Reflection Which Is Given Algebraically

This is the graph of .

Which of the following is the graph of ?

### Answer

We know that the function will correspond to a reflection in the -axis. In other words, we will need to reflect about the line . This will incur a sign change in the roots but will leave the -intercept unchanged. In , there appears to be one root at and a double root at , meaning that the function should have a single root at and a double root at . The only option obeying this property as well as maintaining the -intercept is option (b).

To expound upon the previous example, it is worth noting that the graph in option (a) has clearly been obtained by reflecting the function in the -axis, which corresponds to the graph . As an exercise left to the reader, it appears that the graph of option (c) is the original function after having been reflected in the -axis and then again in the -axis (or vice versa). This function would be plotted using the transformation , and we will discuss this matter again in a later example.

### Example 3: Finding the Equation of a Function When Given the Graph of Its Reflection in an Axis

The following linear graph represents a function after a reflection in the -axis. Find the original function .

### Answer

The solution of this problem is divided into two stages. First, we determine the equation of the line that is plotted in the graph above. Then, we use known algebraic properties to recover the function . We are told that has been obtained by reflecting the function in the -axis. This means that we have reflected about the line , hence, giving the relation that will be useful later.

The function clearly has a -intercept of and a single root when . Phrased in terms of coordinates, this means that the straight line passes through the points and , which we will label as and respectively. There are multiple ways of calculating the equation of this straight line given the information at hand, but one method is to solve the following equation for :

Substituting in the known values gives which can be solved to give . This means that the function of interest is . This completes the first part of the question.

We can now complete the second part of the question by recalling that the function was derived from another function after a reflection in the -axis. In other words, we have . By substituting into , we obtain

Note that the value of the -intercept has not changed but that there has been a sign change in the single root. The only root of is when , whereas the only root of is .

Problems such as in the previous example are helpful for consolidating multiple areas of mathematics into a single overarching process. In the previous example, we had to find the equation of a straight line from two points, then use the correct algebraic substitution to obtain a suitable reflection, and then produce a new function as a result of this. Provided we are working with straight lines, this would never be an overly tricky experience, as many methods of finding the equation of the straight line are available. However, performing the actual algebraic substitution and then deriving the new function is seldom much more difficult than in the previous example. In the following example, we again look to solve such a problem but this time with a quadratic function whose equation must be found before the remainder of the question can be answered. Once again, there are many possible techniques for obtaining the exact expression of the quadratic function, which are largely dependent on preference.

### Example 4: Finding the Equation of a Function When Given the Graph of Its Reflection in an Axis

The following parabolic graph represents a function after a reflection on the -axis. Find the original function .

### Answer

We will answer this question in two parts. First, we will find the quadratic function as plotted in the graph above. Then, we will use our knowledge of function transformations to find an expression for .

There are multiple ways that we could approach finding the equation of the quadratic function in the above plot. We can see that the function has a -intercept of , meaning that we can use the coordinate . Additionally, it appears as though there is a local maximum at the coordinate . We can also infer that the curve passes through the point . We can use these three coordinates to recover the equation of .

Given that is a parabola (another name for a quadratic), we will begin by recalling the general form of a quadratic: where , , and are real numbers. We know that the graph passes through the point , meaning that we must have . Substituting into the general quadratic equation above gives giving the result .

With this knowledge in hand, we can now use the next known coordinate of . Accordingly, we must have , which gives where we have substituted the known result . Simplifying gives .

This equation features the unknown coefficients and , and we can actually obtain a second equation featuring these coefficients using the known coordinate . We set to give

Rearranging gives . We can then use this equation along with the equation to solve these simultaneous equations and hence find that and .

Now that , , and are known, we have . By completing the square, or by using knowledge of how the -value of the minimum/maximum of a quadratic is related to the coefficients , , and , we can hence derive the more informative expression which actually confirms that the maximum occurs when . Now that we have found , we can obtain given that this function is found after reflecting in the -axis. To find the exact formula for , we use the corresponding relation: . This gives the final answer:

Earlier, we alluded to the idea of reflecting a function in the -axis and then the -axis (or vice versa). Supposing we had a function , we know that we could obtain a new function by reflecting in the -axis by setting . If we were to take this new function and then choose to reflect it in the -axis to obtain another new function , then we would be setting into . In other words, we would have , which we can simply write in brief as . Had we performed the steps in the reverse order (by first reflecting in the -axis and then reflecting in the -axis), we would have obtained exactly the same result, albeit with slightly different interim steps.

### Example 5: Understanding Combined Reflections of Functions

Which of the following processes would you use to obtain the graph of from the graph ?

- Reflecting the graph in the -axis
- Reflecting the graph in the -axis
- Reflecting the graph in the line
- Reflecting the graph in the line

### Answer

If we consider the function , we can break it down into two separate transformations of . The first is the transformation . Here, is a reflection of in the -axis. The second is , which represents a reflection of in the -axis. Notice also that . Therefore, this new graph is achieved by first reflecting in the -axis and then reflecting in the -axis (or vice versa).

The previous example introduced the idea of reflecting in lines that are neither the -axis or the -axis. The main way of approaching such problems would involve expressing the original function and then using a matrix to transform the function as needed. This is clearly beyond the scope of the explainer, but it is worth mentioning that reflecting in different lines will have a highly different algebraic structure that is not always possible to express. For example, reflecting a graph in the line amounts to finding the inverse of the original function, which is not always viable. In fact, it is only generally possible if the original function is a one-to-one function.

### Example 6: Understanding the Algebraic Representation of a Reflection in an Axis

Find , where the graph of the function is a reflection across the -axis of the graph of the function .

### Answer

Note that we do not need to plot this graph in order to find how to express it algebraically. We know that and that is the same function after a reflection in the -axis. This means that and hence we find the answer: .

So far in this explainer, we have worked with functions that are expressed by means of a specific algebraic formula. We have seen generally that for a function , a reflection in the -axis can be found by creating the new function and also that a reflection in the -axis can be found by creating the new function . Given that these relationships hold true for all values of , it must be the case that they also hold true for specific values. In other words, if we are given a table of values from a particular function, then we should be able to use the known results to understand how to reflect this function in either the -axis or the -axis.

For example, suppose we have the function , which is defined by the following table of values.

0 | 1 | 2 | |||

4 | 3 | 0 | 1 |

We can plot these coordinates as points by setting , without attempting to join the points with any form of curve or straight line, as shown in the figure below. Even though this function is not continuous, we can still reflect it in the -axis or the -axis.

Recall that reflecting in the -axis is the same as reflecting in the line , meaning that any roots of the function will not be affected. We create a new function that represents this reflection and we label it . We know that , which must be true for every known value. In other words, we know that , , , , and . This allows us to create the new table of values.

0 | 1 | 2 | |||

1 | 0 |

Plotting these points gives the following graph, which we can see is the same as the original graph after a reflection in the -axis. Note that the point is unaffected because it sits on the line , which we have just reflected through. This is analogous to saying that the roots of a continuous function are unaffected by reflection in the -axis.

We will now demonstrate how to complete a reflection in the -axis. We create a new function and then define , which will give the reflection that we are seeking. This means that , , , , and . Using the initial table of values for , we can then produce the new table of values for as follows.

0 | 1 | 2 | |||

1 | 0 | 3 | 4 |

By plotting these points, we obtain the graph below, which is indeed the original function after being reflected in the -axis. The point is unchanged by a reflection in the -axis because this is a reflection in the line on which this point sits. This is analogous to saying that the -intercept of a continuous function is unchanged after a reflection in the -axis.

### Example 7: Using a Table of Values to Identify the Reflection of a Function in an Axis

Consider the following table of the function .

1 | 2 | 3 | 4 | |

1 | 2 | 3 | 4 |

Choose the table of the reflected function over the -axis.

1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 3 4 1 3 4

### Answer

We will begin by plotting the values in the table as points in the coordinate plane, as shown on the left-hand side in the diagram. The function after reflection in the -axis, which is labeled , is plotted on the right-hand side.

This information alone should be enough to answer the question fully, but we will also demonstrate the process more precisely. We recall that reflecting in the -axis to obtain a new function is understood algebraically by the relationship . This must be true for all values of , and we only have outputs for the four input values , 2, 3, and 4. This means that the only output values that we can obtain for are for the four input values , , , and . We therefore find that , , , and . Entering this into the new table of values for , we have the following.

1 | 2 | 3 | 4 |

This corresponds to option D.

### Key Points

- Consider a function . A reflection in the -axis has the algebraic expression , and a reflection in the -axis is represented as .
- Reflecting twice in either the -axis or the -axis will return the original function.
- Reflecting in the -axis does not change the roots of a function. However, this will change the sign of the -intercept.
- Reflecting in the -axis will change the signs of the roots, but it will not change the sign of the -intercept.
- A combined reflection in the -axis and then the -axis (or vice versa) is represented as
- When reflecting in lines other than the -axis or -axis, other approaches are needed and the algebraic interpretation is not so straightforward.