document.write( "Question 142145: Can you graph the equation: y= -X^2-4X+5. If you can, please explan how u got the vertex and how to graph everything. Thanks. \n" ); document.write( "
Algebra.Com's Answer #103496 by nabla(475)\"\" \"About 
You can put this solution on YOUR website!
\"f%28x%29=-x%5E2-4x%2B5\"\r
\n" ); document.write( "\n" ); document.write( "First of all, let's find where the function intercepts the x-axis by setting f(x)=0.\r
\n" ); document.write( "\n" ); document.write( "\"0=-x%5E2-4x%2B5\"\r
\n" ); document.write( "\n" ); document.write( "\"0=x%5E2%2B4x-5\" <-- Make it a little easier by multiplying both sides by -1.
\n" ); document.write( "\"0=x%5E2%2B4x-5\" <---Factor-thought step: what numbers multiply to get -5 and add to get 4?
\n" ); document.write( "\"0=%28x%2B5%29%28x-1%29\" <--- 5 and -1!
\n" ); document.write( "Now, when can this equation be true? That is, if it equals 0, one of either term (x+5) or (x-1) must be 0. So we set each equal to zero.\r
\n" ); document.write( "\n" ); document.write( "x+5=0 or x-1=0
\n" ); document.write( "which means x=-5 or x=1. So we now have the x-intercepts. \r
\n" ); document.write( "\n" ); document.write( "Next, the vertex of a parabola is -b/2a, when the function is in form ax^2+bx+c. So, for our purposes the vertex is x=-(-4)/2(-1)=4/(-2)=-2. The function is valued at f(-2)=-(-2)^2-4(-2)+5=-4+8+5=9. So the vertex is (-2,9). Note the direction in which the function opens: the leading coefficient is -1 (of x^2). This means it opens downward.\r
\n" ); document.write( "\n" ); document.write( "Now you can graph it properly. Look at my graph below and see if you can reproduce it yourself.\r
\n" ); document.write( "\n" ); document.write( "\"graph%28+300%2C+200%2C+-8%2C+4%2C+-4%2C+13%2C+-x%5E2-4x%2B5+%29\"
\n" ); document.write( "
\n" ); document.write( "
\n" );