Solve the following equation for x:
tan−11−x1+x=12tan−1x,(x>0).
If tan−11a−1=tan−11x+tan−11a2−x+1, then x is