f(x)=2tanx-(1-2cos^2x/2)/(sinx/2cosx/2
=2tanx+(cosx)/(1/2sinx)
=2tanx+2cotx=2/sinxcosx=4/sin2x
f(π/12)=4/sin2(π/12)=8