If ∫tanx1+tanx+tan2xdx=x−2√Atan−1(2tanx+1√A)+C, where C is arbitrary constant of integration, then the value of A is