Skip to main content
Search IntMath
Close

How to reflect a graph through the x-axis, y-axis or Origin?

By Murray Bourne, 30 Jun 2011

This mail came in from reader Stuart recently:

Can you explain the principles of a graph involving y = βˆ’f(x) being a reflection of the graph y = f(x) in the x-axis and the graph of y = f(βˆ’x) a reflection of the graph y = f(x) in the y-axis?

Thanks

My reply

Hello Stuart

Let's see what this means via an example.

Let f(x) = 3x + 2

If you are not sure what it looks like, you can graph it using this graphing facility.

You'll see it is a straight line, slope 3 (which is positive, i.e. going uphill as we go left to right) and y-intercept 2.

Now let's consider βˆ’f(x).

This gives us

βˆ’f(x) = βˆ’3x βˆ’ 2

Our new line has negative slope (it goes down as you scan from left to right) and goes through βˆ’2 on the y-axis.

When you graph the 2 lines on the same axes, it looks like this:

graph y = 3x + 2

Note that if you reflect the blue graph (y = 3x + 2) in the x-axis, you get the green graph (y = βˆ’3x βˆ’ 2) (as shown by the red arrows).

What we've done is to take every y-value and turn them upside down (this is the effect of the minus out the front).

Now for f(βˆ’x)

Similarly, let's do f(βˆ’x).

Since f(x) = 3x + 2, then

f(βˆ’x) = βˆ’3x + 2 (replace every "x" with a "βˆ’x").

Now, graphing those on the same axes, we have:

graph y = 3x + 2 and reflection

Note that the effect of the "minus" in f(βˆ’x) is to reflect the blue original line (y = 3x + 2) in the y-axis, and we get the green line, which is (y = βˆ’3x + 2). The green line also goes through 2 on the y-axis.

24x7 Tutor Chat

Further Example

Here's an example using a cubic graph.

Blue graph: f(x) = x3 βˆ’ 3x2 + x βˆ’ 2

Reflection in x-axis (green): βˆ’f(x) = βˆ’x3 + 3x2 βˆ’ x + 2

graph y = x3 ? 3x2 + x ? 2 and reflection

Now to reflect in the y-axis.

graph y = x3 ? 3x2 + x ? 2 and reflection

Blue graph: f(x) = x3 βˆ’ 3x2 + x βˆ’ 2

Reflection in y-axis (green): f(βˆ’x) = βˆ’x3 βˆ’ 3x2 βˆ’ x βˆ’ 2

Even and Odd Functions

We really should mention even and odd functions before leaving this topic.

For each of my examples above, the reflections in either the x- or y-axis produced a graph that was different. But sometimes, the reflection is the same as the original graph. We say the reflection "maps on to" the original.

Even Functions

An even function has the property f(βˆ’x) = f(x). That is, if we reflect an even function in the y-axis, it will look exactly like the original.

An example of an even function is f(x) = x4 βˆ’ 29x2 + 100

graph y = x4 ? 29x2 + 100 and reflection - even function

The above even function is equivalent to:

f(x) = (x + 5)(x + 2)(x βˆ’ 2)(x βˆ’ 5)

Note if we reflect the graph in the y-axis, we get the same graph (or we could say it "maps onto" itself).

Odd Functions

An odd function has the property f(βˆ’x) = βˆ’f(x).

This time, if we reflect our function in both the x-axis and y-axis, and if it looks exactly like the original, then we have an odd function.

This kind of symmetry is called origin symmetry. An odd function either passes through the origin (0, 0) or is reflected through the origin.

An example of an odd function is f(x) = x3 βˆ’ 9x

graph y = x3 ? 9x and reflection - odd function

The above odd function is equivalent to:

f(x) = x(x + 3)(x βˆ’ 3)

Note if we reflect the graph in the x-axis, then the y-axis, we get the same graph.

More examples of Even and Odd functions

There some more examples on this page: Even and Odd Functions

Knowing about even and odd functions is very helpful when studying Fourier Series.

I hope that all makes sense, Stuart.

 

24x7 Tutor Chat

 

See the 8 Comments below.

8 Comments on “How to reflect a graph through the x-axis, y-axis or Origin?”

  1. John Chase says:

    Small correction: an odd function passes through the origin if and only if zero is in the domain of the function!

    In general though, this is a great discussion to bring up. Students and teachers alike have problems navigating this subject and the intuitions aren't usually taught. There's some simple reasoning involved, but students just want to follow a rule more often then not. Thanks for the great post!

  2. Murray says:

    @John: Thanks for the correction! I have amended the post.

  3. mahesh rander says:

    A really good presentation and great help to students.

  4. Sal Sargent says:

    Like can u reflect from quadrant 1 into quadrant 3?!?!

  5. Murray says:

    @Sal: The last example in the article does just that - the portion that was in Quadrant 1 is now in Quadrant 3.

  6. Michelle says:

    Good day

    We know that the product of the gradients of perpendicular lines will always be -1.

    I have a question about REFLECTING straight lines.

    Am I correct in saying that for straight lines the product of the original line's gradient and the reflected line's gradient will ALWAYS be -1 as well?
    And that then means that there are two instances where the product of the gradients of two straight lines will result in -1?

    The problem being that a straight line and its reflection will not always be perpendicular to each other.....

    Am I missing something?

    Kind regards

  7. Connor Fitzgerald says:

    The function f(x) = 2x is stretched 3 times its original size and reflected across the x -axis? would it change to f(x) = -6x? or would it stay positive?

  8. John Record says:

    Thanks, this is really helpful as I have had trouble understanding reflections through the y-axis.You have no idea how much this has helped me.

Leave a comment




Comment Preview

HTML: You can use simple tags like <b>, <a href="...">, etc.

To enter math, you can can either:

  1. Use simple calculator-like input in the following format (surround your math in backticks, or qq on tablet or phone):
    `a^2 = sqrt(b^2 + c^2)`
    (See more on ASCIIMath syntax); or
  2. Use simple LaTeX in the following format. Surround your math with \( and \).
    \( \int g dx = \sqrt{\frac{a}{b}} \)
    (This is standard simple LaTeX.)

NOTE: You can mix both types of math entry in your comment.

top

Tips, tricks, lessons, and tutoring to help reduce test anxiety and move to the top of the class.