\(A=cos\left(6\pi+\pi-x\right)+sin\left(2\pi+\frac{\pi}{2}-x\right)+tan^2\left(\pi+\frac{\pi}{2}-x\right)-\frac{1}{sin^2\left(7\pi+\pi+x\right)}\)
\(=cos\left(\pi-x\right)+sin\left(\frac{\pi}{2}-x\right)+tan^2\left(\frac{\pi}{2}-x\right)-\frac{1}{sin^2\left(\pi+x\right)}\)
\(=-cosx+cosx+cot^2x-\frac{1}{sin^2x}\)
\(=cot^2x-\left(1+cot^2x\right)=-1\)