If ∫tanx1+tanx+tan2xdx=x−K√Atan−1(Ktanx+1√A)+C (C is a constant of integration), then the ordered pair (K,A) is equal to: