The parabola y=ax2+ky=ax2+k has vertex (0,−1)(0,−1) and passes through the point (4,2)(4,2). Find its equation.