Given :
The parent tangent function is horizontally compressed by a factor of 1/2 and reflected over the x-axis.
Explanation :
To find the equation of g.
The tangent function is

It is horizontally compressed by a factor of 1/2.
Then the function becomes

After that it is reflected over x-axis.

Answer :
Hence the result of the transformation is

The correct option is D.