Make a table for f(x)=x2−4x+1: f(0)=1, f(1)=−2, f(2)=−3, f(3)=−2, f(4)=1. The outputs fall, bottom out and rise again in the same pattern, mirrored around x=2. The centre of that mirror is the axis of symmetry, the vertical line x=2, and the point on it, (2,−3), is the vertex.
Where does x=−2ab come from? Two inputs with the same output are mirror partners, so the axis is their midpoint. Since ax2+bx=x(ax+b), the expression ax2+bx is 0 at x=0 and at x=−ab; adding c raises both outputs by the same amount, so they still match. Their midpoint is −2ab.
The vertex is a point and the axis is a line, so they are written differently: the vertex as (2,−3), the axis as the equation x=2. Whether the vertex is a maximum or a minimum depends on the sign of a: positive opens up, making −3 the smallest output; negative opens down, making the vertex the highest point.
The y-intercept can look like the extreme value because it is the number you see in the formula: in x2−4x+1 it is 1. But f(0)=1 is just the height at x=0; the lowest value, −3, occurs at x=2. The two coincide only when b=0, as in x2+1.
Think of it like this. A parabola is a valley whose two slopes are exact copies of each other. The axis is the line of the stream along the valley floor, and the vertex is the lowest spot, on the stream. Walk the same distance up either slope and you reach the same height. Turn it over and the valley becomes a ridge, with the vertex at the summit.
Core idea. The axis of symmetry is the mirror line x=−2ab; the vertex is the point on it where the parabola turns.