Solutions Q31 - 34
Contents
Solutions Q31 - 34#
# import all python add-ons etc that will be needed later on
%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.patches as patches
from sympy import *
init_printing() # allows printing of SymPy results in typeset maths format
plt.rcParams.update({'font.size': 14}) # set font size for plots
Q31 answer#
The coordinates of vector \(V_1\) are \(x_1 = r\cos(\alpha)\) and \(y_1 = r\sin(\alpha)\) and the second vector is rotated by \(\theta\) from the first, so that \(V_2\) has x-coordinate
and by substitution \(x_2 = x_1\cos(\theta) + y_1 \sin(\theta)\). The y-coordinate is
and \(y_2 = -x_1\sin(\theta) + y_1\cos(\theta)\). Combining the two formulae produces the rotation matrix, equation 11.
Q32 answer#
The rotation matrix is \(\displaystyle \pmb{R}_\theta = \begin{bmatrix} \cos(\theta) & \sin(\theta)\\ -\sin(\theta) & \cos (\theta) \end{bmatrix} \) and its square is
Substituting the double angle relationships into the last matrix shows that \(R(2\theta) = R(\theta)^2\).
Q33 answer#
There is no set answer to this question.
Q34 answer#
As rotation only occurs about the z-axis and by \(90^\text{o}\),the product of the three rotation matrices becomes
An inversion is the matrix \(\displaystyle \begin{bmatrix} -1 & 0 & 0\\ 0 & -1 & 0 \\ 0& 0 & -1\end{bmatrix}\) and the rotation-inversion operation is
(b) Performing the matrix multiplication the other way round produces the same result, therefore \(Rot \times Inv = Inv \times Rot\) and the matrices commute.