{"id":6255,"date":"2011-06-30T12:51:52","date_gmt":"2011-06-30T04:51:52","guid":{"rendered":"http:\/\/www.intmath.com\/blog\/?p=6255"},"modified":"2022-04-27T10:17:52","modified_gmt":"2022-04-27T02:17:52","slug":"how-to-reflect-a-graph-through-the-x-axis-y-axis-or-origin","status":"publish","type":"post","link":"https:\/\/www.intmath.com\/blog\/mathematics\/how-to-reflect-a-graph-through-the-x-axis-y-axis-or-origin-6255","title":{"rendered":"How to reflect a graph through the x-axis, y-axis or Origin?"},"content":{"rendered":"<p>This mail came in from reader Stuart recently:<\/p>\n<blockquote>\n<p>Can you explain the principles of a graph involving <span class=\"intmath\"><em>y<\/em> = \u2212<em>f<\/em>(<em>x<\/em>)<\/span> being a reflection of the graph <span class=\"intmath\"><em>y<\/em> = <em>f<\/em>(<em>x<\/em>)<\/span> in the <em>x<\/em>-axis and the graph of <span class=\"intmath\"><em>y<\/em> = <em>f<\/em>(\u2212<em>x<\/em>)<\/span> a reflection of the graph <span class=\"intmath\"><em>y<\/em> = <em>f<\/em>(<em>x<\/em>) <\/span> in the <em>y-<\/em>axis?<\/p>\n<p>Thanks<\/p>\n<\/blockquote>\n<h2>My reply<\/h2>\n<p>Hello Stuart<\/p>\n<p>Let's see what this means via an example.<\/p>\n<p class=\"indent\">Let <span class=\"intmath\"><em>f<\/em>(<em>x<\/em>) = 3<em>x<\/em> + 2<\/span><\/p>\n<p>If you are not sure what it looks like, you can graph it using this <a href=\"https:\/\/www.intmath.com\/functions-and-graphs\/graphs-using-jsxgraph.php\">graphing facility<\/a>.<\/p>\n<p>You'll see it is a straight line, slope 3 (which is positive, i.e. going uphill as we go left to right) and <em>y<\/em>-intercept 2.<\/p>\n<p>Now let's consider <span class=\"intmath\">\u2212<em>f<\/em>(<em>x<\/em>)<\/span>.<\/p>\n<p>This gives us<\/p>\n<p><span class=\"indent math\">\u2212<em>f<\/em>(<em>x<\/em>)<em> =<\/em> \u22123<em>x<\/em> \u2212 2<\/span><\/p>\n<p>Our new line has negative slope (it goes down as you scan from left to right) and goes through \u22122 on the <em>y<\/em>-axis.<\/p>\n<p>When you graph the 2 lines on the same axes, it looks like this:<\/p>\n<p><img loading=\"lazy\" src=\"\/blog\/wp-content\/images\/2011\/06\/graph.png\" alt=\"graph y = 3x + 2\" width=\"281\" height=\"394\" \/><\/p>\n<p>Note that if you reflect the blue graph <span class=\"intmath\">(<em>y<\/em> = 3<em>x<\/em> + 2)<\/span> in the <em>x<\/em>-axis, you get the green graph <span class=\"intmath\"> (<em>y<\/em> = \u22123<em>x<\/em> \u2212 2)<\/span> (as shown by the red arrows).<\/p>\n<p>What we've done is to take every <em>y<\/em>-value and turn them upside down (this is the effect of the <strong>minus<\/strong> out the front).<\/p>\n<h2>Now for <em>f<\/em>(\u2212<em>x<\/em>)<\/h2>\n<p>Similarly, let's do <span class=\"intmath\"><em>f<\/em>(\u2212<em>x<\/em>)<\/span>.<\/p>\n<p>Since <span class=\"intmath\"><em>f<\/em>(<em>x<\/em>) = 3<em>x<\/em> + 2<\/span>, then<\/p>\n<p><span class=\"intmath\"><em>f<\/em>(<em>\u2212x<\/em>) = \u22123<em>x<\/em> + 2<\/span> (replace every \"<em>x<\/em>\" with a \"<em>\u2212x<\/em>\").<\/p>\n<p>Now, graphing those on the same axes, we have:<\/p>\n<p><img loading=\"lazy\" src=\"\/blog\/wp-content\/images\/2011\/06\/graph03.png\" alt=\"graph y = 3x + 2 and reflection\" width=\"275\" height=\"449\" \/><\/p>\n<p>Note that the effect of the \"minus\" in <span class=\"intmath\"><em>f<\/em>(<em>\u2212x<\/em>)<\/span> is to reflect the blue original line <span class=\"intmath\">(<em>y<\/em> = 3<em>x<\/em> + 2)<\/span> in the <em>y<\/em>-axis, and we get the green line, which is <span class=\"intmath\">(<em>y<\/em> = \u22123<em>x<\/em> + 2)<\/span>. The green line also goes through 2 on the <em>y<\/em>-axis.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.intmath.com\/chat\/index2.html\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" src=\"https:\/\/www.intmath.com\/includes\/images\/tutor_chat_ad_banner.png\" alt=\"24x7 Tutor Chat\" width=\"632\" height=\"135\" \/><\/a><\/p>\n<h2>Further Example<\/h2>\n<p>Here's an example using a cubic graph.<\/p>\n<p><strong>Blue graph:<\/strong> <span class=\"intmath\"><em>f<\/em>(<em>x<\/em>) = <em>x<\/em><sup>3<\/sup> \u2212 3<em>x<\/em><sup>2<\/sup> + <em>x<\/em> \u2212 2<\/span><\/p>\n<p><strong>Reflection in x-axis (green):<\/strong> <span class=\"intmath\">\u2212<em>f<\/em>(<em>x<\/em>) = \u2212<em>x<\/em><sup>3<\/sup> + 3<em>x<\/em><sup>2<\/sup> \u2212 <em>x<\/em> + 2<\/span><\/p>\n<p><img loading=\"lazy\" src=\"\/blog\/wp-content\/images\/2011\/06\/graph05.png\" alt=\"graph y = x3 ? 3x2 + x ? 2 and reflection\" width=\"259\" height=\"449\" \/><\/p>\n<p>Now to reflect in the y-axis.<\/p>\n<p><img loading=\"lazy\" src=\"\/blog\/wp-content\/images\/2011\/06\/graph07.png\" alt=\"graph y = x3 ? 3x2 + x ? 2 and reflection\" width=\"275\" height=\"444\" \/><\/p>\n<p><strong>Blue graph:<\/strong> <span class=\"intmath\"><em>f<\/em>(<em>x<\/em>) = <em>x<\/em><sup>3<\/sup> \u2212 3<em>x<\/em><sup>2<\/sup> + <em>x<\/em> \u2212 2<\/span><\/p>\n<p><strong>Reflection in y-axis (green): <\/strong><span class=\"intmath\"><em>f<\/em>(<em>\u2212x<\/em>) = <em>\u2212x<\/em><sup>3<\/sup> \u2212 3<em>x<\/em><sup>2<\/sup> \u2212 <em>x<\/em> \u2212 2<\/span><\/p>\n<h2>Even and Odd Functions<\/h2>\n<p>We really should mention <strong>even and odd functions<\/strong> before leaving this topic.<\/p>\n<p>For each of my examples above, the reflections in either the <em>x<\/em>- or <em>y<\/em>-axis produced a graph that was <strong>different<\/strong>. But sometimes, the reflection is the same as the original graph. We say the reflection \"maps on to\" the original.<\/p>\n<p><strong>Even Functions<\/strong><\/p>\n<p>An <strong>even <\/strong>function has the property <span class=\"intmath\"><em>f<\/em>(<em>\u2212x<\/em>) = <em>f<\/em>(<em>x<\/em>)<\/span>. That is, if we reflect an even function in the <em>y<\/em>-axis, it will look exactly like the original.<\/p>\n<p>An example of an even function is <span class=\"intmath\"><em>f<\/em>(<em>x<\/em>) = <em>x<\/em><sup>4<\/sup> \u2212 29<em>x<\/em><sup>2<\/sup> + 100<\/span><\/p>\n<p><img loading=\"lazy\" src=\"\/blog\/wp-content\/images\/2011\/06\/graph8.png\" alt=\"graph y = x4 ? 29x2 + 100 and reflection - even function\" width=\"349\" height=\"423\" \/><\/p>\n<p>The above even function is equivalent to:<\/p>\n<p><span class=\"intmath\"><em>f<\/em>(<em>x<\/em>) = (<em>x + <\/em>5)(<em>x <\/em> + 2)(<em>x <\/em>\u2212 2)(<em>x \u2212<\/em> 5)<\/span><\/p>\n<p>Note if we reflect the graph in the <em>y<\/em>-axis, we get the same graph (or we could say it \"maps onto\" itself).<\/p>\n<p><strong>Odd Functions<\/strong><\/p>\n<p>An <strong>odd <\/strong>function has the property <span class=\"intmath\"><em>f<\/em>(<em>\u2212x<\/em>) = <em>\u2212f<\/em>(<em>x<\/em>)<\/span>.<\/p>\n<p>This time, if we reflect our function in <strong>both <\/strong>the <em>x<\/em>-axis and <em>y<\/em>-axis, and if it looks exactly like the original, then we have an odd function.<\/p>\n<p>This kind of symmetry is called<strong> origin symmetry<\/strong>. An odd function either passes through the origin <span class=\"intmath\">(0, 0)<\/span> or is reflected through the origin.<\/p>\n<p>An example of an odd function is <span class=\"intmath\"><em>f<\/em>(<em>x<\/em>) = <em>x<\/em><sup>3<\/sup> \u2212 9<em>x<\/em><\/span><\/p>\n<p><img loading=\"lazy\" src=\"\/blog\/wp-content\/images\/2011\/06\/graph9.png\" alt=\"graph y = x3 ? 9x and reflection - odd function\" width=\"332\" height=\"450\" \/><\/p>\n<p>The above odd function is equivalent to:<\/p>\n<p><span class=\"intmath\"><em>f<\/em>(<em>x<\/em>) = <em>x<\/em>(<em>x + <\/em>3)(<em>x <\/em>\u2212 3)<\/span><\/p>\n<p>Note if we reflect the graph in the <em>x<\/em>-axis, then the <em>y<\/em>-axis, we get the same graph.<\/p>\n<h2>More examples of Even and Odd functions<\/h2>\n<p>There some more examples on this page: <a href=\"https:\/\/www.intmath.com\/functions-and-graphs\/9-even-odd-functions.php\">Even and Odd Functions<\/a><\/p>\n<p>Knowing about even and odd functions is very helpful when studying <a href=\"https:\/\/www.intmath.com\/fourier-series\/fourier-intro.php\">Fourier Series<\/a>.<\/p>\n<p>I hope that all makes sense, Stuart.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.intmath.com\/chat\/index2.html\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" src=\"https:\/\/www.intmath.com\/includes\/images\/tutor_chat_ad_banner.png\" alt=\"24x7 Tutor Chat\" width=\"632\" height=\"135\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p class=\"alt\">See the <a href=\"https:\/\/www.intmath.com\/blog\/mathematics\/how-to-reflect-a-graph-through-the-x-axis-y-axis-or-origin-6255#comments\" id=\"comms\">8 Comments<\/a> below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><a href=\"https:\/\/www.intmath.com\/blog\/mathematics\/how-to-reflect-a-graph-through-the-x-axis-y-axis-or-origin-6255\"><img loading=\"lazy\" alt=\"What does reflecting a graph through the x-axis mean?\" src=\"\/blog\/wp-content\/images\/2011\/06\/graph_sm.png\" title=\"What does reflecting a graph through the x-axis mean?\" width=\"128\" height=\"100\" class=\"imgRt\" \/><\/a>A reader asks how to graph f(-x) and -f(x), and what does it mean?<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mo_disable_npp":""},"categories":[4],"tags":[134],"_links":{"self":[{"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/posts\/6255"}],"collection":[{"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/comments?post=6255"}],"version-history":[{"count":3,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/posts\/6255\/revisions"}],"predecessor-version":[{"id":13071,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/posts\/6255\/revisions\/13071"}],"wp:attachment":[{"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/media?parent=6255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/categories?post=6255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/tags?post=6255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}