I have like two ways of doing this, but I like to understand the formal one

  • Thread starter flyingpig
  • Start date
In summary, LCKurtz explains how he usually solves these types of problems algebraically and uses the def of a Linear Transformation. He also explains how to do it using pictures and a standard matrix. He then provides a matrix for a 90 degree counter clockwise rotation and a reflection about y = x.
  • #1
flyingpig
2,579
1

Homework Statement



http://img219.imageshack.us/img219/3434/transp.th.png

Uploaded with ImageShack.us

The Attempt at a Solution



Personally, I always have trouble doing these type of problems algebraically and using the def of Linear Transformation.

I always resort to drawing pictures and see where they go then writ out my standard matrix

So I did that and I got

[PLAIN]http://www4d.wolframalpha.com/Calculate/MSP/MSP159819f5fef5cd3be33100005ce6h6eh806b03h8?MSPStoreType=image/gif&s=63&w=55&h=36

Now if I were to do this using algebra, I have to find the standard matrix for each transformation

So starting with my unit vectors

[PLAIN]http://www4d.wolframalpha.com/Calculate/MSP/MSP212219f5fci0014e55a80000102e73aga167a9ih?MSPStoreType=image/gif&s=62&w=44&h=36

For a reflection the standard matrix for this transformation is [PLAIN]http://www4d.wolframalpha.com/Calculate/MSP/MSP165419f5fef5cd3be331000047gig59d7ga41029?MSPStoreType=image/gif&s=63&w=44&h=36

For a rotation 90 degrees the standard matrix for this transformation is [PLAIN]http://www4d.wolframalpha.com/Calculate/MSP/MSP240719f5fcfg088hgc650000205f87i63i2h04fg?MSPStoreType=image/gif&s=57&w=55&h=36

So e1 -> e2 -> e2

e2 -> e1 -> -e1

So the standard matrix I get is [PLAIN]http://www4d.wolframalpha.com/Calculate/MSP/MSP240719f5fcfg088hgc650000205f87i63i2h04fg?MSPStoreType=image/gif&s=57&w=55&h=36
 
Last edited by a moderator:
Physics news on Phys.org
  • #2
flyingpig said:

Homework Statement



http://img219.imageshack.us/img219/3434/transp.th.png

Uploaded with ImageShack.us

The Attempt at a Solution



Personally, I always have trouble doing these type of problems algebraically and using the def of Linear Transformation.

I always resort to drawing pictures and see where they go then writ out my standard matrix

So I did that and I got

[PLAIN]http://www4d.wolframalpha.com/Calculate/MSP/MSP159819f5fef5cd3be33100005ce6h6eh806b03h8?MSPStoreType=image/gif&s=63&w=55&h=36

Now if I were to do this using algebra, I have to find the standard matrix for each transformation

So starting with my unit vectors

[PLAIN]http://www4d.wolframalpha.com/Calculate/MSP/MSP212219f5fci0014e55a80000102e73aga167a9ih?MSPStoreType=image/gif&s=62&w=44&h=36

For a reflection the standard matrix for this transformation is [PLAIN]http://www4d.wolframalpha.com/Calculate/MSP/MSP165419f5fef5cd3be331000047gig59d7ga41029?MSPStoreType=image/gif&s=63&w=44&h=36

For a rotation 90 degrees the standard matrix for this transformation is [PLAIN]http://www4d.wolframalpha.com/Calculate/MSP/MSP168519f5fffc532c41310000549gaci25232dg63?MSPStoreType=image/gif&s=64&w=55&h=36

So e1 -> e2 -> e2

e2 -> e1 -> -e1

So the standard matrix I get is [PLAIN]http://www4d.wolframalpha.com/Calculate/MSP/MSP240719f5fcfg088hgc650000205f87i63i2h04fg?MSPStoreType=image/gif&s=57&w=55&h=36[/QUOTE]

Your 90 degree rotation matrix is wrong.
 
Last edited by a moderator:
  • #3
Fixed, copied off the wrong matrix
 
  • #4
It is getting confusing which matrix is which. You have the standard rotation by 90 degrees as

[tex]\left[ \begin{array}{cc}

0& 1\\
-1 & 0
\end{array}
\right][/tex]

That isn't right and I don't see what you corrected. You should get the same answer as you did at the top of your post.
 
  • #5
No the matrix I fixed is this [PLAIN]http://www4d.wolframalpha.com/Calculate/MSP/MSP240719f5fcfg088hgc650000205f87i63i2h04fg?MSPStoreType=image/gif&s=57&w=55&h=36

My standard matrix for the final answer is still right
 
Last edited by a moderator:
  • #6
flyingpig said:
No the matrix I fixed is this [PLAIN]http://www4d.wolframalpha.com/Calculate/MSP/MSP240719f5fcfg088hgc650000205f87i63i2h04fg?MSPStoreType=image/gif&s=57&w=55&h=36

My standard matrix for the final answer is still right
Bad link in the image above.
Instead of posting images, why don't you put the matrices inline? There's really not much to it. Here's the one that LCKurtz posted, using the simpler bmatrix environment.

Click the matrix to see the LaTeX code.

[tex]\begin{bmatrix}0& 1\\-1 & 0\end{bmatrix}[/tex]
 
Last edited by a moderator:
  • #7
No I copied it off wolfram because i got lazy off writing my own tex code lol
 
  • #8
Here I will do it again since PF won't let me edit it anymore and the image link is broken now

For a 90 degree counter clockwise rotation, we get

[tex]\begin{bmatrix}
0 & -1\\
1 & 0
\end{bmatrix}[/tex]

For a reflection about y = x, we get

[tex]\begin{bmatrix}
0 & 1\\
1 & 0
\end{bmatrix}[/tex]

Normally this is what a textbook would do

[tex]e_1 \to e_2 \to e_2[/tex]

[tex]e_2 \to -e_1 \to e_1[/tex]

Which should yield the matrix [tex]\begin{bmatrix}0 & -1 \\ 1 & 0\end{bmatrix}[/tex]

Now the way I did it is that I drew a picture with my unit vectors and I just follow where my vectors go according to the instructions

I will even draw a picture for you

http://img703.imageshack.us/img703/6665/unledhg.th.png

Uploaded with ImageShack.us

So at the end, my vectors ended up as [tex]\begin{bmatrix}
-1 & 0 \\
0 & 1
\end{bmatrix}[/tex]

Now my question is, who is right?
 
Last edited by a moderator:
  • #9
Mark or Kurts, here try seeing this

2mri6v7.jpg
 
  • #10
Oh good it worked lol
 
  • #11
I'm not sure what your question is. If you're looking for the matrix that represents a rotation by 90° CCW followed by a reflection across the line y = x, that would be:
[tex]\begin{bmatrix}0 & 1\\ 1 & 0\end{bmatrix}\begin{bmatrix}0 & -1\\ 1 & 0\end{bmatrix} = \begin{bmatrix}1 & 0\\ 0 & -1\end{bmatrix}[/tex]

If that's not what you're asking about, please restate your question.
 
  • #12
Yes that is what I want, but why did you multiply the matrix...?
 
  • #13
Because the composition of linear transformations is equivalent to multiplying the matrices that represent the transformations.
 
  • #14
Mark44 said:
Because the composition of linear transformations is equivalent to multiplying the matrices that represent the transformations.

The original problem was to be a reflection followed by a rotation so they would be multiplied the other way:

[tex]
\begin{bmatrix}0 & -1\\ 1 & 0\end{bmatrix}\begin{bmatrix}0 & 1\\ 1 & 0\end{bmatrix} = \begin{bmatrix}-1 & 0\\ 0 & 1\end{bmatrix}
[/tex]

which agrees with his intuitive answer [that used to be] in his first post.
 
  • #15
Does that mean I am wrong? Because my textbook does the following and I tried multiplying matrices like you did, but it isn't right.

[tex]T: \mathbb{R}^2 \mapsto \mathbb{R}^2 [/tex] first reflects points through the horizontal x1 axis and then reflects points through the line x2 = x1

My book has the matrix [tex]\begin{bmatrix}
0 & -1\\
1 & 0
\end{bmatrix}[/tex] as the answerNow I also got that as my answer using the matrix transformation or drawing the pictures.

If I were to multiply the two transmations like you did

[tex]\begin{bmatrix}1 & 0\\ 0 & -1\end{bmatrix} \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix} = \begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix}[/tex]

Which is wrong.

Now in my textbook, they do transformations like this

mt10yr.jpg


Now going back my original question, I did it both ways, I did it the way my textbook did and the way I usually do it (with pictures). So why do they give me different answers?
 
  • #16
flyingpig said:
Does that mean I am wrong? Because my textbook does the following and I tried multiplying matrices like you did, but it isn't right.



My book has the matrix [tex]\begin{bmatrix}
0 & -1\\
1 & 0
\end{bmatrix}[/tex] as the answer


Now I also got that as my answer using the matrix transformation or drawing the pictures.

If I were to multiply the two transmations like you did

[tex]\begin{bmatrix}1 & 0\\ 0 & -1\end{bmatrix} \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix} = \begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix}[/tex]

Which is wrong.

Yes. That is wrong because you are multiplying them the wrong way. When you take matrices A and B multiply Bx first then multiply by A you get ABx. In matrix multiplication, the first one to operate is on the right. Multiply them in the other order.
 
  • #17
I used wolframalpha http://www4a.wolframalpha.com/input/?i={{1%2C0}%2C{0%2C-1}}*{{0%2C1}%2C{1%2C0}}

Also, can you tell me what the book is doing?

Also, going back to my very original question, the one where my intuition was right but my textbook method was wrong, why?
 
Last edited by a moderator:
  • #18
Your textbook method is correct and you get the same answers with matrices if you multiply them in the correct order. If you are still having problems and you want me to continue this discussion with you, post a specific example you have worked both ways in your next post. Don't refer to older posts or links.
 
  • #19
No the original problem is the problem where I worked both ways and I arrived with different answers. Check post #8 of this thread
 
  • #20
flyingpig said:
Here I will do it again since PF won't let me edit it anymore and the image link is broken now

For a 90 degree counter clockwise rotation, we get

[tex]\begin{bmatrix}
0 & -1\\
1 & 0
\end{bmatrix}[/tex]

For a reflection about y = x, we get

[tex]\begin{bmatrix}
0 & 1\\
1 & 0
\end{bmatrix}[/tex]

Normally this is what a textbook would do

[tex]e_1 \to e_2 \to e_2[/tex]

[tex]e_2 \to -e_1 \to e_1[/tex]
There are errors in both of these. I'm assuming that the transformations are 1)reflect across the line y = x, and then 2) rotate by 90 deg. CCW, in that order. This is what you had in your first post.

In the first line above, e1 --> e2, but then e2 --> -e1.
In the second line above, e2 --> e1, and then e1 --> e2. As a result of both transformations, the vectors {e1, e2} become {-e1, e2}

The matrix that represents the composition of both transformations is
[tex]\begin{bmatrix} -1&0\\0&1\end{bmatrix}[/tex]

Notice that this is the same as when you carry out this multiplication
[tex]\begin{bmatrix} 0&-1\\1&0\end{bmatrix}\begin{bmatrix} 0&1\\1&0\end{bmatrix}
[/tex]

The second matrix in the product above is the reflection across the line y = x. The first matrix in the product is the rotation.

flyingpig said:
Which should yield the matrix [tex]\begin{bmatrix}0 & -1 \\ 1 & 0\end{bmatrix}[/tex]

Now the way I did it is that I drew a picture with my unit vectors and I just follow where my vectors go according to the instructions

I will even draw a picture for you

http://img703.imageshack.us/img703/6665/unledhg.th.png

Uploaded with ImageShack.us

So at the end, my vectors ended up as [tex]\begin{bmatrix}
-1 & 0 \\
0 & 1
\end{bmatrix}[/tex]

Now my question is, who is right?
 
Last edited by a moderator:
  • #21
LCKurtz said:
Your textbook method is correct and you get the same answers with matrices if you multiply them in the correct order. If you are still having problems and you want me to continue this discussion with you, post a specific example you have worked both ways in your next post. Don't refer to older posts or links.

flyingpig said:
No the original problem is the problem where I worked both ways and I arrived with different answers. Check post #8 of this thread

I knew I would regret re-entering this thread. Post #8 does not state what the problem is. It matters which operation you are doing first and you are getting your operations mixed up. For the last time, state in one post the statement of the problem and your two solutions which don't give the same answer. If you won't do that, consider this as goodbye.
 
  • #22
No never mind, this is whta it should have been

S: = first operation

T: = second operation

S(x) = Ax

T(S(x)) = T(Ax) = B(A)x, so take the reverse product.
 

Related to I have like two ways of doing this, but I like to understand the formal one

1. What is the formal way of doing something in science?

The formal way of doing something in science refers to following a specific scientific method or process to ensure accurate and reliable results. This may involve creating a hypothesis, conducting experiments, gathering data, analyzing results, and drawing conclusions based on evidence.

2. Why is it important to understand the formal way of doing something in science?

Understanding the formal way of doing something in science is important because it allows for consistency and reproducibility of results. It also helps to ensure that the research is conducted ethically and follows established standards and protocols.

3. How does the formal way of doing something in science differ from other methods?

The formal way of doing something in science differs from other methods in that it is based on a systematic and evidence-based approach. Other methods, such as trial and error or intuition, may not yield reliable or accurate results.

4. Can the formal way of doing something in science be applied to any field of study?

Yes, the formal way of doing something in science can be applied to any field of study. While the specific methods and processes may vary depending on the field, the overall approach of using evidence and following a systematic process remains the same.

5. Are there any drawbacks to using the formal way of doing something in science?

One potential drawback to using the formal way of doing something in science is that it can be time-consuming and may not always yield immediate results. It also requires a high level of attention to detail and strict adherence to protocols, which can be challenging for some researchers.

Similar threads

  • Calculus and Beyond Homework Help
Replies
3
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
3K
  • Calculus and Beyond Homework Help
Replies
6
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
1K
  • Calculus and Beyond Homework Help
Replies
12
Views
2K
  • Calculus and Beyond Homework Help
Replies
2
Views
954
  • Calculus and Beyond Homework Help
Replies
10
Views
2K
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
2K
Back
Top