If \(A+B=\left[\begin{array}{cc}1 & \tan \frac{\theta}{2} \\ -\tan \frac{\theta}{2} & 1\end{array}\right]\) where \(A\) is symmetric and \(B\) is skew-symmetric matrix, then the matrix \(\left(A^{-1} B+A B^{-1}\right)\) at \(\theta=\frac{\pi}{6}\) is given by
If \( A = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ a & b & -1 \end{bmatrix} \), then \( A^2 \) is equal to