The graph of the function f(x) = x^2 will be shifted 2 units up, 1 unit left, and rotated 180 degrees. What is the resulting function g(x)?