When graphing a quadratic function $f(x)=ax^2+bx+c$, where $a=1$ with two roots, $x_1$ and $x_2$, it appears that the y-coordinate of the vertex is equal to $(\frac{x_2-x_1}{2})^2$
I’ve tested out several cases and it does appear to consistently hold true. However, I haven’t been able to verify it nor make sense as why it is true. I was hoping someone here would have insight to share or possibly generalize it for cases where $a\neq 1$.
First, your function is $$ f(x) = a(x-x_1)(x-x_2). $$ There are several ways to see this, but note that the polynomial $a(x-x_1)(x-x_2)$ has roots $x_1$ and $x_2$ and leading coefficient $a$, and you probably know that these three things determine a quadratic polynomial.
Next, the vertex is at $\frac{x_1+x_2}2$. That should be geometrically obvious, and if this is good enough for you, then you can just plug that in to get $$f\left(\frac{x_1+x_2}2\right)=a\left(\frac{x_1+x_2}2-x_1\right)\left(\frac{x_1+x_2}2-x_2\right)=a\cdot\frac{-x_1+x_2}2\cdot\frac{x_1-x_2}2=-a\left(\frac{x_1-x_2}2\right)^2. $$
Otherwise you can see that $$ f(x) = f\left(x - \frac{x_1+x_2}2 + \frac{x_1+x_2}2\right) =a\left(x - \frac{x_1+x_2}2 - \frac{x_1-x_2}2\right)\left(x - \frac{x_1+x_2}2 + \frac{x_1-x_2}2\right) =a\left(x - \frac{x_1+x_2}2 \right)^2 - a\left(\frac{x_1-x_2}2\right)^2, $$ with a minimum at $\frac{x_1+x_2}2$ that has the value $-a\left(\frac{x_1-x_2}2\right)^2$.