Write a function for each graph described as a transformation of y=x^2.
A. y=x^2 undergoes a shift left of 2 units, then a reflection through the x-axis.
B. y=x^2 undergoes a horizontal stretch by a factor of 1/3, then a shift up of 4 units.