Answer:

Explanation:
Tangent function:
The tangent function is:

Horizontally compressed by a factor of 1/2
Horizontally compressing by a factor of 1/2 is multiplying by 1/2. So

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:
