{"id":2301,"date":"2009-04-09T17:37:34","date_gmt":"2009-04-09T09:37:34","guid":{"rendered":"http:\/\/www.intmath.com\/blog\/?p=2301"},"modified":"2019-11-18T20:10:23","modified_gmt":"2019-11-18T12:10:23","slug":"how-to-draw-y2-x-2","status":"publish","type":"post","link":"https:\/\/www.intmath.com\/blog\/mathematics\/how-to-draw-y2-x-2-2301","title":{"rendered":"How to draw y^2 = x - 2?"},"content":{"rendered":"<p>Nuaja, a subscriber to the IntMath Newsletter, wrote recently:<\/p>\n<blockquote>\n<p>How do I know how the graph should look like: For example: <span class=\"intmath\"><em>y<\/em><sup>2<\/sup> = <em>x<\/em> - 2?<\/span><\/p>\n<\/blockquote>\n<p>The first thing I recognize in that equation is the <em>y<\/em><sup>2<\/sup> term, which tells me it will be a <strong>parabola<\/strong>. (It won't be a circle, ellipse or hyperbola because there is an <em>x<\/em> term, but no <em>x<\/em><sup>2<\/sup> term. See <a href=\"https:\/\/www.intmath.com\/plane-analytic-geometry\/intro.php\">Conic Sections<\/a>.)<\/p>\n<p>Let's start with the most basic parabola y = x<sup>2<\/sup> and build up to the required answer.<\/p>\n<h2 class=\"clearBoth\">Example 1: <span class=\"intmath\"><i>y<\/i> = <i>x<\/i><sup>2<\/sup><\/span><\/h2>\n<p>You could draw up a table and calculate the <em>y<\/em>-values for a set of <em>x<\/em>-values, like this:<\/p>\n<table class=\"tableex\">\n<tbody>\n<tr>\n<th><em>x<\/em><\/th>\n<td>-4<\/td>\n<td>-3<\/td>\n<td>-2<\/td>\n<td>-1<\/td>\n<td>0<\/td>\n<td>1<\/td>\n<td>2<\/td>\n<td>3<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<th><em>y<\/em><\/th>\n<td>16<\/td>\n<td>9<\/td>\n<td>4<\/td>\n<td>1<\/td>\n<td>0<\/td>\n<td>1<\/td>\n<td>4<\/td>\n<td>9<\/td>\n<td>16<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>This  gives us a series of points (-4,16), (-3,9), (-2,4) up to (4,16).<\/p>\n<p>You then join these dots with a smooth curve and get something like the following.<\/p>\n<p><img loading=\"lazy\" alt=\"y = x^2\" src=\"\/blog\/wp-content\/images\/2007\/09\/parabola-1.gif\" width=\"289\" height=\"349\"><\/p>\n<p>Notice that the vertex of the parabola (the \"pointy\" end) is at the origin, (0, 0).<\/p>\n<p>Now for all the curves that I draw below, I'm not going to draw up a table. It becomes tedious, and it can lead to incorrect graphs. It is better to be able to <strong>recognize<\/strong> the graph type (from the equation) and then know how to sketch it in the right place and with the right orientation.<\/p>\n<p>I will consider the effect of small changes to the equation and then sketch my curve.<\/p>\n<p>All of the following graphs have the <strong>same size and shape<\/strong> as the above curve. I am just moving that curve around to show you how it works.<\/p>\n<h2>Example 2: <em>y<\/em> = <em>x<\/em><sup>2<\/sup> &minus; 2<\/h2>\n<p>The only difference with the first graph that I drew (<em>y<\/em> = <em>x<\/em><sup>2<\/sup>) and this one (<em>y<\/em> = <em>x<\/em><sup>2<\/sup> &minus; 2) is the \"minus 2\". The \"minus 2\"  means that all the <em>y<\/em>-values for the graph need to be moved down by 2 units.<\/p>\n<p>So we just take our first curve and move it down 2 units. Our new curve's vertex is at &minus;2 on the <em>y<\/em>-axis.<\/p>\n<p><img loading=\"lazy\" border=\"0\" alt=\"parabola-2\" src=\"\/blog\/wp-content\/images\/2007\/09\/parabola-2.gif\" width=\"288\" height=\"344\"><\/p>\n<p>Next, we see how to move the curve up (rather than down).<\/p>\n<h2>Example 3: <em>y<\/em> = <em>x<\/em><sup>2<\/sup> + 3<\/h2>\n<p>The \"plus 3\" means we need to add 3 to all the <em>y<\/em>-values that we got for the basic curve <em>y<\/em> = <em>x<\/em><sup>2<\/sup>. The resulting curve is 3 units higher than <em>y<\/em> = <em>x<\/em><sup>2<\/sup>. Note that the vertex of the curve is at (0, 3) on the <em>y<\/em>-axis.<\/p>\n<p><img loading=\"lazy\" border=\"0\" alt=\"parabola-3\" src=\"\/blog\/wp-content\/images\/2007\/09\/parabola-3.gif\" width=\"288\" height=\"348\"><\/p>\n<p>Next we see how to move a curve left and right.<\/p>\n<h2>Example 4: <em>y<\/em> = (<em>x<\/em> &minus; 1)<sup>2<\/sup><\/h2>\n<p>Note the brackets in this example - they make a big difference!<\/p>\n<p>If we think about <em>y<\/em> = (<em>x<\/em> &minus; 1)<sup>2<\/sup> for a while, we realize the <em>y<\/em>-value will always be positive, except at <em>x<\/em> = 1 (where <em>y<\/em> will equal 0).<\/p>\n<p>Before sketching, I will check another (easy) point to make sure I have the curve in the right place. Putting x = 0 is usually easy, so I substitute and get<\/p>\n<p><em>y<\/em> = (0 &minus; 1)<sup>2<\/sup><\/p>\n<p>= 1<\/p>\n<p>So the curve passes through (0, 1).<\/p>\n<p>Here is the graph of <em>y<\/em> = (<em>x<\/em> &minus; 1)<sup>2<\/sup>.<\/p>\n<p><img loading=\"lazy\" border=\"0\" alt=\"parabola-4\" src=\"\/blog\/wp-content\/images\/2007\/09\/parabola-4.gif\" width=\"288\" height=\"350\"><\/p>\n<h2>Example 5: <em>y<\/em> = (<em>x<\/em> + 2)<sup>2<\/sup><\/h2>\n<p>With similar reasoning to the last example, I know that my curve is going to be completely above the <em>x<\/em>-axis, except at <em>x<\/em> = &minus;2.<\/p>\n<p>The \"plus 2\" in brackets has the effect of moving our parabola 2 units to the left.<\/p>\n<p><img loading=\"lazy\" border=\"0\" alt=\"parabola-5\" src=\"\/blog\/wp-content\/images\/2007\/09\/parabola-5.gif\" width=\"289\" height=\"354\"><\/p>\n<h2>Rotating the Parabola<\/h2>\n<p>The original question from Anuja asked how to draw y<sup>2<\/sup> = x &minus; 4.<\/p>\n<p>In this case, we don't have a simple <em>y<\/em> with an x<sup>2<\/sup> term like all of the above examples. Now we have a situation where the parabola is rotated.<\/p>\n<p>Let's go through the steps, starting with a basic rotated parabola.<\/p>\n<h2>Example 6: <em>y<\/em><sup>2<\/sup> = <em>x<\/em><\/h2>\n<p>The curve <em>y<\/em><sup>2<\/sup> = <em>x<\/em> represents a parabola rotated 90\u00b0 to the right.<\/p>\n<p>We actually have 2 functions,<\/p>\n<p><em>y<\/em> = &radic;<em>x<\/em> (the top half of the parabola); and<\/p>\n<p><em>y<\/em> = &minus;&radic;<em>x<\/em> (the bottom half of the parabola)<\/p>\n<p>Here is the curve <em>y<\/em><sup>2<\/sup> = <em>x<\/em>. It passes through (0, 0) and also (4,2) and (4,&minus;2).<\/p>\n<p><img loading=\"lazy\" border=\"0\" alt=\"parabola-6\" src=\"\/blog\/wp-content\/images\/2007\/09\/parabola6.gif\" width=\"317\" height=\"255\"><\/p>\n<p>[Notice that we get 2 values of <em>y<\/em> for each value of <em>x<\/em> larger than 0. This is not a <strong>function<\/strong>, it is called a <strong>relation<\/strong>.]<\/p>\n<h2>Example 7: (<em>y<\/em> + 1)<sup>2<\/sup> = <em>x<\/em><\/h2>\n<p>If we think about the equation (<em>y<\/em> + 1)<sup>2<\/sup> = <em>x<\/em> for a while, we can see that <em>x<\/em> will be positive for all values of <em>y<\/em> (since any value squared will be positive) except <em>y<\/em> = &minus;1 (at which point <em>x<\/em> = 0).<\/p>\n<p>In the equation (<em>y<\/em> + 1)<sup>2<\/sup> = <em>x<\/em>, the \"plus 1\" in brackets has the effect of moving our rotated parabola down one unit.<\/p>\n<p><img loading=\"lazy\" border=\"0\" alt=\"parabola-7\" src=\"\/blog\/wp-content\/images\/2007\/09\/parabola7.gif\" width=\"316\" height=\"279\"><\/p>\n<h2>Example 8: (<em>y<\/em> &minus; 3)<sup>2<\/sup> = <em>x<\/em><\/h2>\n<p>Using similar reasoning to the above example, the \"minus 3\" in brackets has the effect of moving the rotated parabola up 3 units.<\/p>\n<p><img loading=\"lazy\" border=\"0\" alt=\"parabola-8\" src=\"\/blog\/wp-content\/images\/2007\/09\/parabola8.gif\" width=\"278\" height=\"358\"><\/p>\n<p>Finally we are ready to answer the question posed by Nuaja.<\/p>\n<h2>Example 9: <em>y<\/em><sup>2<\/sup> = <em>x<\/em> &minus; 2<\/h2>\n<p>You can hopefully imagine what is going to happen now. We have a <em>y<\/em><sup>2<\/sup> term , so it means it will be a rotated parabola.<\/p>\n<p>When <em>x<\/em> = 2, <em>y<\/em> = 0. The value of <em>x<\/em> cannot be less than 2, otherwise when we try to evaluate <em>y<\/em> we would be trying to find the square root of a negative number. Since out numbers are all real numbers, <em>x<\/em> must be greater than or equal to 2.<\/p>\n<p>The \"minus 2\" term has the effect of shifting our parabola 2 units to the right.<\/p>\n<p><img loading=\"lazy\" border=\"0\" alt=\"parabola-9\" src=\"\/blog\/wp-content\/images\/2007\/09\/parabola9.gif\" width=\"375\" height=\"251\"><\/p>\n<p>I hope you can see now that if the equation was <em>y<\/em><sup>2<\/sup> = <em>x<\/em> + 2 (with a \"plus\"), then we would need to shift our rotated parabola to the left by 2 units.<\/p>\n<p>So Nuaja, I hope that answers your question.<\/p>\n<p>Like all things, the best way how to learn graph sketching is through practice. Also, be observant and note the effect of <strong>plus<\/strong>, <strong>minus<\/strong> and <strong>brackets<\/strong> in each example.<\/p>\n<p class=\"alt\">See the <a href=\"https:\/\/www.intmath.com\/blog\/mathematics\/how-to-draw-y2-x-2-2301#comments\" id=\"comms\">72 Comments<\/a> below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How do we draw parabolas that are moved around the x-y axes, and rotated?<\/p>\n","protected":false},"author":1,"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\/2301"}],"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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/comments?post=2301"}],"version-history":[{"count":2,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/posts\/2301\/revisions"}],"predecessor-version":[{"id":12272,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/posts\/2301\/revisions\/12272"}],"wp:attachment":[{"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/media?parent=2301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/categories?post=2301"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/tags?post=2301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}