document.write( "Question 1164851: What must be done to a function's equation so that its graph is shifted vertically upward? Compare this to what must be done so that its graph is shifted horizontally to the right. \n" ); document.write( "
Algebra.Com's Answer #789295 by Theo(13342)\"\" \"About 
You can put this solution on YOUR website!
to shift the graph vertically upward, you need add a constant to the end of it.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "so, if your equation is f(x), then your new equation has to be f(x) + a, where is a positive constant.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "to shift the graph horizontally to the right, you need to subtract a constant from the variable used.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "so, if your equation is f(x), then your new equation has to be f(x-a), where a is a positive constant.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "for example:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "consider the equation of f(x) = x^2\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "f(x) + 5 = x^2 + 5 shifts the equation up 5 units.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "this means that the value of y for the same value of x is 5 units more positive than the original equation.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "you can see on the graph, that, in the equation of y = x^2, y = 0 when x = 0.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "you can also see on the graph, that, in the equation of y = x^2 + 5, y = 5 when x = 0.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "in the graph, y = x^2 is red and y = x^2 + 5 is blue.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "now consider the equation of f(x) = x^2 again.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "f(x-5) = (x-5)^2 shift the equation to the right 5 units.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "this means that the value of x for the same value of y is 5 units to the right of the original equation.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "you can see on the graph that, in the equation of y = x^2, x = 0 when y = 0.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "you can also see on the graph that, in the equation of y = (x-5)^2, x = 5 when y = 0.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "in the graph, y = x^2 is red and y = (x-5)^2 is green.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "here's the graph.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "note that the use of f(x) and the use of y is interchangeable.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "that's because f(x) = y.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "you can say y = x^2 and you can say f(x) = x^2 and it means the same thing.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );