How to calculate the symmetry axis X = - B / 2a of quadratic function

How to calculate the symmetry axis X = - B / 2a of quadratic function

Calculate the two points of intersection with the X axis, add them and divide by two