Vertically shifting and scaling a quadratic function