Answer:
![g(x) = -(1)/(2)tan(x)](https://img.qammunity.org/2022/formulas/mathematics/college/xltch9kjg7snt5lecc1m5hb8zwtnf3s66t.png)
Explanation:
Tangent function:
The tangent function is:
![f(x) = tan(x)](https://img.qammunity.org/2022/formulas/mathematics/college/pzeff92mjakbcnpcc4aqf2q46lvg4zc7f7.png)
Horizontally compressed by a factor of 1/2
Horizontally compressing by a factor of 1/2 is multiplying by 1/2. So
![g(x) = (1)/(2)tan(x)](https://img.qammunity.org/2022/formulas/mathematics/college/v95hmrj0yi6c84t3wkvx90khzh0poov2mg.png)
Reflected over the x-axis.
Reflecting a function over the x-axis is the same as multiplying it by -1. Then g is given by:
![g(x) = -(1)/(2)tan(x)](https://img.qammunity.org/2022/formulas/mathematics/college/xltch9kjg7snt5lecc1m5hb8zwtnf3s66t.png)