A parabola opening up or down has vertex (0,5) and passes through (4,1). Write its equation in vertex form.
y = 2x^2 - 8x + 5.