Mathematics
The graph of the function f is the graph of the function g compressed horizontally by a factor of 2 and reflected over the y-axis. Which of the following correctly defines the function f?
A.f(x)=g(-2x)
B.f(x)=-g(2x)
C.f(x)=2g(-x)
D.f(x)=-2g(x)