Building a rotational matrix transformation

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
adrs
Messages
2
Reaction score
0
I am trying to build a rotational transformation matrix both for counterclockwise and clockwise angles.

The first matrix in the picture is for counterclockwise angles and the second one for clockwise angles. The first matrix I built corresponds to the one given in my linear algebra book so it seems the building process's OK.
However, in my book there isn't one for clockwise angles and that's why I've built one. I've been searching on the Internet and it seems that the rotational matrix for clockwise angles is the same as the one for counterclokwise ones but with the sines with opposite signs.
Nevertheless, that's not the one I've obtained If I thry for example with a 24.78 clokwise angle.

So, where does my reasoning fail? Thanks!
 

Attachments

  • escanear0001.jpg
    escanear0001.jpg
    23.8 KB · Views: 555
Physics news on Phys.org
You don't really need different matrices for "clockwise" and "counterclockwise" rotattions because rotation "clockwise" is just the same as rotation counterclockwise but with negative angle.

Rotation through angle [itex]\theta[/itex], counterclockwise, is given, as you say, by the matrix
[tex]\begin{bmatrix}cos(\theta) & -sin(\theta) \\ sin(\theta) & cos(\theta) \end{bmatrix}[/tex]

so that rotation through the same angle, clockwise is the same thing with [itex]\theta[/itex] replaced by [itex]-\theta[/itex]:
[tex]\begin{bmatrix}cos(-\theta) & -sin(-\theta) \\ sin(-\theta) & cos(-\theta) \end{bmatrix}[/tex]

Perhaps what you are missing is that cosine is an even function and sine is an odd function: [itex]cos(-\theta)= cos(\theta)[/itex] and [itex]sin(-\theta)= -sin(\theta)[/itex] so that the previous matrix is just
[tex]\begin{bmatrix}cos(\theta) & sin(\theta) \\ -sin(\theta) & cos(\theta) \end{bmatrix}[/tex]
the "transpose" of the counterclockwise rotation.

Of course, rotating cockwise by a given angle and then counterclockwise by the same angle, or vice-versa, gets you right back to where you were before so a good exercise is to do the two multiplications
[tex]\begin{bmatrix}cos(\theta) & -sin(\theta) \\ sin(\theta) & cos(\theta) \end{bmatrix}\begin{bmatrix}cos(\theta) & sin(\theta) \\ -sin(\theta) & cos(\theta)\end{bmatrix}[/tex]
and
[tex]\begin{bmatrix}cos(\theta) & sin(\theta) \\ -sin(\theta) & cos(\theta) \end{bmatrix}\begin{bmatrix}cos(\theta) & -sin(\theta) \\ sin(\theta) & cos(\theta)\end{bmatrix}[/tex]
and show that they both give the identity matrix.