1. Matrices & Operations
Matrices and Basic Operations
Ex 1.
For the matrices
calculate
- \(A+B\)
- \(A-B\)
- \(2A\)
- \(3B-2A\)
- \(A\cdot B\)
- check if \(A\cdot B = B\cdot A\).
Ex 2.
For the matrices
check if
Ex 3.
Given the matrix
Determine the matrix obtained after rearranging rows: swap the 1st and 3rd rows, then add twice the new 1st row to the 2nd row. Write down all steps for each operation.
Ex 4.
For column vectors \(u=(1,-2,3)^{\top}\) and \(v=(2,0,-1)^{\top}\), write them as matrices and calculate \(u+v\), \(u-v\), and the matrix products \(u\,v^{\top}\) and \(v\,u^{\top}\). What is the rank of matrix \(u\,v^{\top}\)?
Ex 5.
Show that the diagonal matrix \(D=\operatorname{diag}(2,-3,5)\) commutes with any diagonal matrix \(E=\operatorname{diag}(a,b,c)\). Additionally, calculate \(D^{3}\) and, if it exists, \(D^{-1}\).
Ex 6.
\(\star\) For the matrix
calculate \(P^{2}\) and \(P^{3}\). Does the sequence \(P^{n}\) have a noticeable pattern for \(n=1,2,3\)?
Ex 7.
\(\star\) Rotation coding example
Calculate the product of rotation matrices with angle \(\theta\) in 2D space:
Check that \(R(\theta_1)R(\theta_2) = R(\theta_1 + \theta_2)\).
Ex 8.
\(\star\) Knowing that
show that the rotation matrix \(R(\theta)\) can be written as
where
Ex 9.
\(\star\star\) Pauli matrices are defined as:
where \(i\) is the imaginary unit. Check that:
- \(\sigma_x^2 = \sigma_y^2 = \sigma_z^2 = I\) (identity matrix)
- \(\sigma_x\sigma_y = i\sigma_z\), \(\sigma_y\sigma_z = i\sigma_x\), \(\sigma_z\sigma_x = i\sigma_y\)
- \(\{\sigma_i, \sigma_j\} = 2\delta_{ij}I\) (anticommutator)