First, simplify the expression of the function highlighting the perfect square:
Then find the vertwx of parabola. When x=2, f(2)=2 and the coordinates of the vertex are (2,2). The axis of symmetry passes through the vertex and is parallel to the y-axis. Therefore, its equation is x=2 (see attached graph for details).