How do you graph the function y=5x-x^2y=5xx2?

1 Answer
Feb 23, 2015

graph{5x-x^2 [-14.24, 14.23, -7.12, 7.12]}

First you realise that 5x-x^2=x(5-x)5xx2=x(5x) which will give the
y=0y=0 solutions x=0x=0 and x=5x=5 for (0,0)(0,0) and (5,0)(5,0)

Then, put the halfway-xx (2.52.5) in the equation to get the top of the graph y=5*2.5-2.5^2=6.25y=52.52.52=6.25 for (2.5,6.25)(2.5,6.25)

You now have the three most important points of your graph. You can put more xx-values in, of course, so you get more points, but these three are essential.