Transforming the graph of quadratic function