The given question is
Use the identity
Then replace the denominator by sec^2 (x)
Since sec is the reciprocal of cos, then
Replce sec^2(x) by 1/cos^2(x)
Since denominator of denominator will be a numerator
Use the value of tan
Replace tan by sin/cos
Reduce cos(x) up with cos(x) down
Use the identity
Replace 2 sin(x)cos(x) by sin(2x)
The answer is
2 sin(2x)