What is the correct way to multiply matrices?

i.l
Messages
1
Reaction score
0
Hey,

When trying to multiply the 2 attached matrixes (row X column) I get a much more terms then the attached answer.
C is for cos and s for sin.
What am I doing wrong?
Regards,
i.l
 

Attachments

  • matrix.JPG
    matrix.JPG
    12.9 KB · Views: 401
Physics news on Phys.org
You mean you don't have terms canceling out?

I suggest working carefully and invoking some trigonometric identities.
 
I get it that c stands for cosine and s stands for sine, but what does c1 mean? Cosine of what? Sine of what?

In one of your multiplications you have c1 in one matrix and c2 in the other, and you wrote the product as c12. What does that mean?
 
Simply typing it into Mathematica and using FullSimplify gets the results that you want. It is merely a combination of trig identities - namely the http://en.wikipedia.org/wiki/List_of_trigonometric_identities#Angle_sum_and_difference_identities".

The tricky bit is in the top 2*2 block - I suggest you look at the math for multiplying 2d rotation matrices.

A(\text{x$\_$})\text{:=}\left(<br /> \begin{array}{cccc}<br /> \cos (x) &amp; -\sin (x) &amp; 0 &amp; a(x) \cos (x) \\<br /> \sin (x) &amp; \cos (x) &amp; 0 &amp; a(x) \sin (x) \\<br /> 0 &amp; 0 &amp; 1 &amp; 0 \\<br /> 0 &amp; 0 &amp; 0 &amp; 1<br /> \end{array}<br /> \right)

A(x).A(y)=\left(<br /> \begin{array}{cccc}<br /> \cos (x+y) &amp; -\sin (x+y) &amp; 0 &amp; a(x) \cos (x)+a(y) \cos (x+y) \\<br /> \sin (x+y) &amp; \cos (x+y) &amp; 0 &amp; a(x) \sin (x)+a(y) \sin (x+y) \\<br /> 0 &amp; 0 &amp; 1 &amp; 0 \\<br /> 0 &amp; 0 &amp; 0 &amp; 1<br /> \end{array}<br /> \right)
 
Last edited by a moderator:

Similar threads

Back
Top