I want to solve this equation
$$ \arccos(x)+\arcsin(x^2-x+1)=\pi/2 $$
I write this: for all $x\in [-1,1]$
$\arcsin(x^2-x+1)=\pi/2-\arccos(x)$ then $x^2-x+1=\sin(\pi/2-\arccos(x))=\cos(\arccos(x))=x$
$x^2-x+1=x\Rightarrow x^2-2x+1=0\Rightarrow (x-1)^2=0\Rightarrow x=1 $
Is it true ?

What you wrote is almost correct.
I say almost because:
Apart from that your computations are correct.