How the hell do you derive an equation from a graph?

For example this inverted parabola has x-intercepts at 0 and 2, but does that really mean that the equation is -x(x-2)?

Well it cant be, because the vertex is at (1,2), and -1(1-2)=1, not 2. How do you derive equations from graphs??