$$ \operatorname{arccot} x + \operatorname{arccot} (n^2-x + 1) = \operatorname{arccot }(n - 1) $$ In this we have to solve for value of $x$ .
I thought to convert arccot into arctan . Then add using the identity .
But its getting too long .
Is there any short method to solve it.
$cot(arccot(x)+arccot(n^2-x+1))=cot(arccot(n-1))$
${cot(arccot(x))cot(arccot(n^2-x+1))-1\over cot(arccot(x))+cot(arccot(n^2-x+1))}=n-1 $
${x(n^2-x+1)-1\over x+n^2-x+1 }=n-1$
$ -x^2+(n^2+1)x=(n^2+1)(n-1)+1$
$A:=n^2+1$
$x^2-Ax+(A(n-1)+1)$
$x= {A\pm\sqrt{A^2-4(A(n+1)+1)}\over2}$=$ {(n^2+1)\pm\sqrt{(n^2+1)^2-4((n^2+1)(n+1)+1)}\over2}$
$x_{1}=n$
$x_{2}=n^2-n+1$