Exercises about rotationsCalculate Rotation Matrix to align Vector A to Vector B in 3d?Counteract preceding rotationsHow do $n$-dimensional rotations act on the coordinate axes?Geometrically finding the axis of the composition of two rotationsDetermining the transformation matrix RRotating one 3d-vector to another only by using rotations about the coordinate axes.How to rotate a coordinate system in $mathbbR^3$ through an angle about an arbitrary axis passing through origin?Converting from Euler angles to axis-angle and backComposition of rotations around nonintersecting axesConfused about rotation matricesTransformation matrix for rotation about arbitrary axis
Can a Bard use an arcane focus?
Can I rely on these GitHub repository files?
What is the opposite of 'gravitas'?
A social experiment. What is the worst that can happen?
How to prevent YouTube from showing already watched videos?
How do ultrasonic sensors differentiate between transmitted and received signals?
Why is delta-v is the most useful quantity for planning space travel?
Simulating a probability of 1 of 2^N with less than N random bits
What is the term when two people sing in harmony, but they aren't singing the same notes?
What would you call a finite collection of unordered objects that are not necessarily distinct?
How will losing mobility of one hand affect my career as a programmer?
Can I Retrieve Email Addresses from BCC?
Stereotypical names
Perfect riffle shuffles
How do I repair my stair bannister?
Female=gender counterpart?
When is separating the total wavefunction into a space part and a spin part possible?
Is it possible to build a CPA Secure encryption scheme which remains secure even when the encryption of secret key is given?
Is there an Impartial Brexit Deal comparison site?
My boss asked me to take a one-day class, then signs it up as a day off
node command while defining a coordinate in TikZ
What is Sitecore Managed Cloud?
Are taller landing gear bad for aircraft, particulary large airliners?
Is there any significance to the Valyrian Stone vault door of Qarth?
Exercises about rotations
Calculate Rotation Matrix to align Vector A to Vector B in 3d?Counteract preceding rotationsHow do $n$-dimensional rotations act on the coordinate axes?Geometrically finding the axis of the composition of two rotationsDetermining the transformation matrix RRotating one 3d-vector to another only by using rotations about the coordinate axes.How to rotate a coordinate system in $mathbbR^3$ through an angle about an arbitrary axis passing through origin?Converting from Euler angles to axis-angle and backComposition of rotations around nonintersecting axesConfused about rotation matricesTransformation matrix for rotation about arbitrary axis
$begingroup$
$1.$Find the axis and rotation angle of $T$ such that $T(v)=w$, for $v=(2,0,2)$ and $w=(0,2,-2)$. In case there is not such rotation, explain why.
$2.$ Say if it is possible to define a rotation $A$ about some axis passing through the origin such that $A(1,1,1)=(0,sqrt 2,1)$.
I took the rotation about the $X,Y$ and $Z$ axes but it did not work. There is a general formula, I would like to know if there is another way to solve that kind of exercise
Knowing how to do this exercise I can try this other one.
Thank you!
linear-algebra linear-transformations rotations
$endgroup$
add a comment |
$begingroup$
$1.$Find the axis and rotation angle of $T$ such that $T(v)=w$, for $v=(2,0,2)$ and $w=(0,2,-2)$. In case there is not such rotation, explain why.
$2.$ Say if it is possible to define a rotation $A$ about some axis passing through the origin such that $A(1,1,1)=(0,sqrt 2,1)$.
I took the rotation about the $X,Y$ and $Z$ axes but it did not work. There is a general formula, I would like to know if there is another way to solve that kind of exercise
Knowing how to do this exercise I can try this other one.
Thank you!
linear-algebra linear-transformations rotations
$endgroup$
$begingroup$
Problem 1 is underspecified. There is an infinite number of rotations that will take $v$ to $w$, so it makes no sense to ask about “the” axis and angle.
$endgroup$
– amd
Mar 16 at 21:38
$begingroup$
@amd You are right.
$endgroup$
– saulspatz
Mar 16 at 23:44
add a comment |
$begingroup$
$1.$Find the axis and rotation angle of $T$ such that $T(v)=w$, for $v=(2,0,2)$ and $w=(0,2,-2)$. In case there is not such rotation, explain why.
$2.$ Say if it is possible to define a rotation $A$ about some axis passing through the origin such that $A(1,1,1)=(0,sqrt 2,1)$.
I took the rotation about the $X,Y$ and $Z$ axes but it did not work. There is a general formula, I would like to know if there is another way to solve that kind of exercise
Knowing how to do this exercise I can try this other one.
Thank you!
linear-algebra linear-transformations rotations
$endgroup$
$1.$Find the axis and rotation angle of $T$ such that $T(v)=w$, for $v=(2,0,2)$ and $w=(0,2,-2)$. In case there is not such rotation, explain why.
$2.$ Say if it is possible to define a rotation $A$ about some axis passing through the origin such that $A(1,1,1)=(0,sqrt 2,1)$.
I took the rotation about the $X,Y$ and $Z$ axes but it did not work. There is a general formula, I would like to know if there is another way to solve that kind of exercise
Knowing how to do this exercise I can try this other one.
Thank you!
linear-algebra linear-transformations rotations
linear-algebra linear-transformations rotations
edited Mar 16 at 19:55
Yadati Kiran
2,1101622
2,1101622
asked Mar 16 at 19:44
JohnJohn
815
815
$begingroup$
Problem 1 is underspecified. There is an infinite number of rotations that will take $v$ to $w$, so it makes no sense to ask about “the” axis and angle.
$endgroup$
– amd
Mar 16 at 21:38
$begingroup$
@amd You are right.
$endgroup$
– saulspatz
Mar 16 at 23:44
add a comment |
$begingroup$
Problem 1 is underspecified. There is an infinite number of rotations that will take $v$ to $w$, so it makes no sense to ask about “the” axis and angle.
$endgroup$
– amd
Mar 16 at 21:38
$begingroup$
@amd You are right.
$endgroup$
– saulspatz
Mar 16 at 23:44
$begingroup$
Problem 1 is underspecified. There is an infinite number of rotations that will take $v$ to $w$, so it makes no sense to ask about “the” axis and angle.
$endgroup$
– amd
Mar 16 at 21:38
$begingroup$
Problem 1 is underspecified. There is an infinite number of rotations that will take $v$ to $w$, so it makes no sense to ask about “the” axis and angle.
$endgroup$
– amd
Mar 16 at 21:38
$begingroup$
@amd You are right.
$endgroup$
– saulspatz
Mar 16 at 23:44
$begingroup$
@amd You are right.
$endgroup$
– saulspatz
Mar 16 at 23:44
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
For (1), since both the vectors have the same magnitude, such a rotation is possible. To get the axis about which to rotate, one possibility is on that is perpendicular to both vectors. This is because in moving from one vector to the other, we stay in the plane defined by them. So, the axis is just the cross product of $v$ and $w$.
Now for the angle, it is easy to find the angle between two vectors. This is given by:
$$cos(theta) = fracv.w$$
For an implementation in python, check out this library (rotate_vec2vec method): https://github.com/ryu577/pyray/blob/master/pyray/rotation.py
$endgroup$
1
$begingroup$
“... observe that it must be perpendicular to both vectors.” This is false. For example, one could take the angle bisector of $v$ and $w$ as the axis and rotate through an angle of $pi$. In fact, there is an infinite number of rotations that will take $v$ to $w$.
$endgroup$
– amd
Mar 16 at 21:28
$begingroup$
Sure, I'll edit (hadn't thought of that). But this one does provide one way to do it which is what the exercise asked.
$endgroup$
– Rohit Pandey
Mar 16 at 21:39
$begingroup$
Unfortunately, the question asks for “the” rotation, which is not well-defined.
$endgroup$
– amd
Mar 16 at 21:43
2
$begingroup$
My example rotation is even easier to compute: the angle is always $pi$ and the axis is $v+w$ :)
$endgroup$
– amd
Mar 16 at 21:43
1
$begingroup$
That part of your previous comment was correct, so I didn’t bother saying anything about it.
$endgroup$
– amd
Mar 16 at 22:56
|
show 3 more comments
$begingroup$
Problem 2:
$$A (1,1,1) = (0, sqrt 2, 1)$$
Lets define a rotation axis $N = (1,1,1) times (0, sqrt 2, 1)$
We should also define two orthogonal vectors $U$ and $V$ in the rotation plane with normal $N$.
We can find $U$ by projecting $(1,1,1)$ into the plane with normal $N$.
$$U = (1,1,1) - fracN cdot (1,1,1)N cdot N N$$
Since $N cdot (1,1,1) = 0$ then:
$$U = (1,1,1)$$
And $V$ can be found as the cross product:
$$V = N times U$$
For the sake of simplicity on the formulations we assume that $U$, $V$ and $N$ are normalized vectors from now on.
We define the matrix $M = [U V N]$, having the the vectors $U$, $V$ and $N$ as columns.
Let also define the coordinate vectors $E_1 = (1,0,0)$, $E_2 = (0,1,0)$ and $E_3 = (0,0,1)$. The matrix $M$ map the coordinate vectors with vectors $U$, $V$ and $N$.
$$M E_1 = U$$
$$M E_2 = V$$
$$M E_3 = N$$
Conversely $M^T$ map the vectors $U$, $V$ and $N$ to the coordinate vectors $E_1$, $E_2$ and $E_3$.
Now, we define the rotation matrix $R$ that rotates an angle $theta$ around the $E_3$ axis. Where $theta$ is:
$$theta = cos^-1 (frac(1,1,1) cdot (0, sqrt 2, 1) )$$
Finally the matrix $A$ would be:
$$A = M R M^T$$
To show that the matrix $A$ is doing a rotation in the $U V$ plane around the nornal $N$ we can derive the formula:
$$A (1,1,1) = M R M^T (1,1,1)$$
Since $(1,1,1) = U$:
$$A (1,1,1) = M R M^T U$$
Since $M^T U = E_1$:
$$A (1,1,1) = M R E_1$$
Since $R E_1 = cos(theta) E_1 + sin(theta) E_2$:
$$A (1,1,1) = cos(theta) M E_1 + sin(theta) M E_2$$
Recalling that $M E_1 = U$ and $M E_2 = V$:
$$A (1,1,1) = cos(theta) U + sin(theta) V$$
Which is a meaningful result to keep in mind.
$endgroup$
$begingroup$
Very nice, but perhaps more work than necessary. A rotation through an angle of $pi$ about the axis $v+w$ works, too.
$endgroup$
– amd
Mar 17 at 0:04
1
$begingroup$
In fact we need only know that a necessary and sufficient condition is that the two vectors have equal magnitude. We confirm that the magnitude is $sqrt3$ in both cases, and we’re done.
$endgroup$
– David K
Mar 17 at 13:05
$begingroup$
@amd you are right. A very compact expression for the rotation matrix rotating from $v$ to $w$ around the axis $v + w$, being $v$ and $w$ unit vectors can be found here: math.stackexchange.com/a/2672702/485657
$endgroup$
– Mauricio Cele Lopez Belon
Mar 17 at 14:42
$begingroup$
@DavidK I agree with you.
$endgroup$
– Mauricio Cele Lopez Belon
Mar 17 at 14:45
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "69"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3150752%2fexercises-about-rotations%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
For (1), since both the vectors have the same magnitude, such a rotation is possible. To get the axis about which to rotate, one possibility is on that is perpendicular to both vectors. This is because in moving from one vector to the other, we stay in the plane defined by them. So, the axis is just the cross product of $v$ and $w$.
Now for the angle, it is easy to find the angle between two vectors. This is given by:
$$cos(theta) = fracv.w$$
For an implementation in python, check out this library (rotate_vec2vec method): https://github.com/ryu577/pyray/blob/master/pyray/rotation.py
$endgroup$
1
$begingroup$
“... observe that it must be perpendicular to both vectors.” This is false. For example, one could take the angle bisector of $v$ and $w$ as the axis and rotate through an angle of $pi$. In fact, there is an infinite number of rotations that will take $v$ to $w$.
$endgroup$
– amd
Mar 16 at 21:28
$begingroup$
Sure, I'll edit (hadn't thought of that). But this one does provide one way to do it which is what the exercise asked.
$endgroup$
– Rohit Pandey
Mar 16 at 21:39
$begingroup$
Unfortunately, the question asks for “the” rotation, which is not well-defined.
$endgroup$
– amd
Mar 16 at 21:43
2
$begingroup$
My example rotation is even easier to compute: the angle is always $pi$ and the axis is $v+w$ :)
$endgroup$
– amd
Mar 16 at 21:43
1
$begingroup$
That part of your previous comment was correct, so I didn’t bother saying anything about it.
$endgroup$
– amd
Mar 16 at 22:56
|
show 3 more comments
$begingroup$
For (1), since both the vectors have the same magnitude, such a rotation is possible. To get the axis about which to rotate, one possibility is on that is perpendicular to both vectors. This is because in moving from one vector to the other, we stay in the plane defined by them. So, the axis is just the cross product of $v$ and $w$.
Now for the angle, it is easy to find the angle between two vectors. This is given by:
$$cos(theta) = fracv.w$$
For an implementation in python, check out this library (rotate_vec2vec method): https://github.com/ryu577/pyray/blob/master/pyray/rotation.py
$endgroup$
1
$begingroup$
“... observe that it must be perpendicular to both vectors.” This is false. For example, one could take the angle bisector of $v$ and $w$ as the axis and rotate through an angle of $pi$. In fact, there is an infinite number of rotations that will take $v$ to $w$.
$endgroup$
– amd
Mar 16 at 21:28
$begingroup$
Sure, I'll edit (hadn't thought of that). But this one does provide one way to do it which is what the exercise asked.
$endgroup$
– Rohit Pandey
Mar 16 at 21:39
$begingroup$
Unfortunately, the question asks for “the” rotation, which is not well-defined.
$endgroup$
– amd
Mar 16 at 21:43
2
$begingroup$
My example rotation is even easier to compute: the angle is always $pi$ and the axis is $v+w$ :)
$endgroup$
– amd
Mar 16 at 21:43
1
$begingroup$
That part of your previous comment was correct, so I didn’t bother saying anything about it.
$endgroup$
– amd
Mar 16 at 22:56
|
show 3 more comments
$begingroup$
For (1), since both the vectors have the same magnitude, such a rotation is possible. To get the axis about which to rotate, one possibility is on that is perpendicular to both vectors. This is because in moving from one vector to the other, we stay in the plane defined by them. So, the axis is just the cross product of $v$ and $w$.
Now for the angle, it is easy to find the angle between two vectors. This is given by:
$$cos(theta) = fracv.w$$
For an implementation in python, check out this library (rotate_vec2vec method): https://github.com/ryu577/pyray/blob/master/pyray/rotation.py
$endgroup$
For (1), since both the vectors have the same magnitude, such a rotation is possible. To get the axis about which to rotate, one possibility is on that is perpendicular to both vectors. This is because in moving from one vector to the other, we stay in the plane defined by them. So, the axis is just the cross product of $v$ and $w$.
Now for the angle, it is easy to find the angle between two vectors. This is given by:
$$cos(theta) = fracv.w$$
For an implementation in python, check out this library (rotate_vec2vec method): https://github.com/ryu577/pyray/blob/master/pyray/rotation.py
edited Mar 16 at 21:40
answered Mar 16 at 20:24
Rohit PandeyRohit Pandey
1,6331023
1,6331023
1
$begingroup$
“... observe that it must be perpendicular to both vectors.” This is false. For example, one could take the angle bisector of $v$ and $w$ as the axis and rotate through an angle of $pi$. In fact, there is an infinite number of rotations that will take $v$ to $w$.
$endgroup$
– amd
Mar 16 at 21:28
$begingroup$
Sure, I'll edit (hadn't thought of that). But this one does provide one way to do it which is what the exercise asked.
$endgroup$
– Rohit Pandey
Mar 16 at 21:39
$begingroup$
Unfortunately, the question asks for “the” rotation, which is not well-defined.
$endgroup$
– amd
Mar 16 at 21:43
2
$begingroup$
My example rotation is even easier to compute: the angle is always $pi$ and the axis is $v+w$ :)
$endgroup$
– amd
Mar 16 at 21:43
1
$begingroup$
That part of your previous comment was correct, so I didn’t bother saying anything about it.
$endgroup$
– amd
Mar 16 at 22:56
|
show 3 more comments
1
$begingroup$
“... observe that it must be perpendicular to both vectors.” This is false. For example, one could take the angle bisector of $v$ and $w$ as the axis and rotate through an angle of $pi$. In fact, there is an infinite number of rotations that will take $v$ to $w$.
$endgroup$
– amd
Mar 16 at 21:28
$begingroup$
Sure, I'll edit (hadn't thought of that). But this one does provide one way to do it which is what the exercise asked.
$endgroup$
– Rohit Pandey
Mar 16 at 21:39
$begingroup$
Unfortunately, the question asks for “the” rotation, which is not well-defined.
$endgroup$
– amd
Mar 16 at 21:43
2
$begingroup$
My example rotation is even easier to compute: the angle is always $pi$ and the axis is $v+w$ :)
$endgroup$
– amd
Mar 16 at 21:43
1
$begingroup$
That part of your previous comment was correct, so I didn’t bother saying anything about it.
$endgroup$
– amd
Mar 16 at 22:56
1
1
$begingroup$
“... observe that it must be perpendicular to both vectors.” This is false. For example, one could take the angle bisector of $v$ and $w$ as the axis and rotate through an angle of $pi$. In fact, there is an infinite number of rotations that will take $v$ to $w$.
$endgroup$
– amd
Mar 16 at 21:28
$begingroup$
“... observe that it must be perpendicular to both vectors.” This is false. For example, one could take the angle bisector of $v$ and $w$ as the axis and rotate through an angle of $pi$. In fact, there is an infinite number of rotations that will take $v$ to $w$.
$endgroup$
– amd
Mar 16 at 21:28
$begingroup$
Sure, I'll edit (hadn't thought of that). But this one does provide one way to do it which is what the exercise asked.
$endgroup$
– Rohit Pandey
Mar 16 at 21:39
$begingroup$
Sure, I'll edit (hadn't thought of that). But this one does provide one way to do it which is what the exercise asked.
$endgroup$
– Rohit Pandey
Mar 16 at 21:39
$begingroup$
Unfortunately, the question asks for “the” rotation, which is not well-defined.
$endgroup$
– amd
Mar 16 at 21:43
$begingroup$
Unfortunately, the question asks for “the” rotation, which is not well-defined.
$endgroup$
– amd
Mar 16 at 21:43
2
2
$begingroup$
My example rotation is even easier to compute: the angle is always $pi$ and the axis is $v+w$ :)
$endgroup$
– amd
Mar 16 at 21:43
$begingroup$
My example rotation is even easier to compute: the angle is always $pi$ and the axis is $v+w$ :)
$endgroup$
– amd
Mar 16 at 21:43
1
1
$begingroup$
That part of your previous comment was correct, so I didn’t bother saying anything about it.
$endgroup$
– amd
Mar 16 at 22:56
$begingroup$
That part of your previous comment was correct, so I didn’t bother saying anything about it.
$endgroup$
– amd
Mar 16 at 22:56
|
show 3 more comments
$begingroup$
Problem 2:
$$A (1,1,1) = (0, sqrt 2, 1)$$
Lets define a rotation axis $N = (1,1,1) times (0, sqrt 2, 1)$
We should also define two orthogonal vectors $U$ and $V$ in the rotation plane with normal $N$.
We can find $U$ by projecting $(1,1,1)$ into the plane with normal $N$.
$$U = (1,1,1) - fracN cdot (1,1,1)N cdot N N$$
Since $N cdot (1,1,1) = 0$ then:
$$U = (1,1,1)$$
And $V$ can be found as the cross product:
$$V = N times U$$
For the sake of simplicity on the formulations we assume that $U$, $V$ and $N$ are normalized vectors from now on.
We define the matrix $M = [U V N]$, having the the vectors $U$, $V$ and $N$ as columns.
Let also define the coordinate vectors $E_1 = (1,0,0)$, $E_2 = (0,1,0)$ and $E_3 = (0,0,1)$. The matrix $M$ map the coordinate vectors with vectors $U$, $V$ and $N$.
$$M E_1 = U$$
$$M E_2 = V$$
$$M E_3 = N$$
Conversely $M^T$ map the vectors $U$, $V$ and $N$ to the coordinate vectors $E_1$, $E_2$ and $E_3$.
Now, we define the rotation matrix $R$ that rotates an angle $theta$ around the $E_3$ axis. Where $theta$ is:
$$theta = cos^-1 (frac(1,1,1) cdot (0, sqrt 2, 1) )$$
Finally the matrix $A$ would be:
$$A = M R M^T$$
To show that the matrix $A$ is doing a rotation in the $U V$ plane around the nornal $N$ we can derive the formula:
$$A (1,1,1) = M R M^T (1,1,1)$$
Since $(1,1,1) = U$:
$$A (1,1,1) = M R M^T U$$
Since $M^T U = E_1$:
$$A (1,1,1) = M R E_1$$
Since $R E_1 = cos(theta) E_1 + sin(theta) E_2$:
$$A (1,1,1) = cos(theta) M E_1 + sin(theta) M E_2$$
Recalling that $M E_1 = U$ and $M E_2 = V$:
$$A (1,1,1) = cos(theta) U + sin(theta) V$$
Which is a meaningful result to keep in mind.
$endgroup$
$begingroup$
Very nice, but perhaps more work than necessary. A rotation through an angle of $pi$ about the axis $v+w$ works, too.
$endgroup$
– amd
Mar 17 at 0:04
1
$begingroup$
In fact we need only know that a necessary and sufficient condition is that the two vectors have equal magnitude. We confirm that the magnitude is $sqrt3$ in both cases, and we’re done.
$endgroup$
– David K
Mar 17 at 13:05
$begingroup$
@amd you are right. A very compact expression for the rotation matrix rotating from $v$ to $w$ around the axis $v + w$, being $v$ and $w$ unit vectors can be found here: math.stackexchange.com/a/2672702/485657
$endgroup$
– Mauricio Cele Lopez Belon
Mar 17 at 14:42
$begingroup$
@DavidK I agree with you.
$endgroup$
– Mauricio Cele Lopez Belon
Mar 17 at 14:45
add a comment |
$begingroup$
Problem 2:
$$A (1,1,1) = (0, sqrt 2, 1)$$
Lets define a rotation axis $N = (1,1,1) times (0, sqrt 2, 1)$
We should also define two orthogonal vectors $U$ and $V$ in the rotation plane with normal $N$.
We can find $U$ by projecting $(1,1,1)$ into the plane with normal $N$.
$$U = (1,1,1) - fracN cdot (1,1,1)N cdot N N$$
Since $N cdot (1,1,1) = 0$ then:
$$U = (1,1,1)$$
And $V$ can be found as the cross product:
$$V = N times U$$
For the sake of simplicity on the formulations we assume that $U$, $V$ and $N$ are normalized vectors from now on.
We define the matrix $M = [U V N]$, having the the vectors $U$, $V$ and $N$ as columns.
Let also define the coordinate vectors $E_1 = (1,0,0)$, $E_2 = (0,1,0)$ and $E_3 = (0,0,1)$. The matrix $M$ map the coordinate vectors with vectors $U$, $V$ and $N$.
$$M E_1 = U$$
$$M E_2 = V$$
$$M E_3 = N$$
Conversely $M^T$ map the vectors $U$, $V$ and $N$ to the coordinate vectors $E_1$, $E_2$ and $E_3$.
Now, we define the rotation matrix $R$ that rotates an angle $theta$ around the $E_3$ axis. Where $theta$ is:
$$theta = cos^-1 (frac(1,1,1) cdot (0, sqrt 2, 1) )$$
Finally the matrix $A$ would be:
$$A = M R M^T$$
To show that the matrix $A$ is doing a rotation in the $U V$ plane around the nornal $N$ we can derive the formula:
$$A (1,1,1) = M R M^T (1,1,1)$$
Since $(1,1,1) = U$:
$$A (1,1,1) = M R M^T U$$
Since $M^T U = E_1$:
$$A (1,1,1) = M R E_1$$
Since $R E_1 = cos(theta) E_1 + sin(theta) E_2$:
$$A (1,1,1) = cos(theta) M E_1 + sin(theta) M E_2$$
Recalling that $M E_1 = U$ and $M E_2 = V$:
$$A (1,1,1) = cos(theta) U + sin(theta) V$$
Which is a meaningful result to keep in mind.
$endgroup$
$begingroup$
Very nice, but perhaps more work than necessary. A rotation through an angle of $pi$ about the axis $v+w$ works, too.
$endgroup$
– amd
Mar 17 at 0:04
1
$begingroup$
In fact we need only know that a necessary and sufficient condition is that the two vectors have equal magnitude. We confirm that the magnitude is $sqrt3$ in both cases, and we’re done.
$endgroup$
– David K
Mar 17 at 13:05
$begingroup$
@amd you are right. A very compact expression for the rotation matrix rotating from $v$ to $w$ around the axis $v + w$, being $v$ and $w$ unit vectors can be found here: math.stackexchange.com/a/2672702/485657
$endgroup$
– Mauricio Cele Lopez Belon
Mar 17 at 14:42
$begingroup$
@DavidK I agree with you.
$endgroup$
– Mauricio Cele Lopez Belon
Mar 17 at 14:45
add a comment |
$begingroup$
Problem 2:
$$A (1,1,1) = (0, sqrt 2, 1)$$
Lets define a rotation axis $N = (1,1,1) times (0, sqrt 2, 1)$
We should also define two orthogonal vectors $U$ and $V$ in the rotation plane with normal $N$.
We can find $U$ by projecting $(1,1,1)$ into the plane with normal $N$.
$$U = (1,1,1) - fracN cdot (1,1,1)N cdot N N$$
Since $N cdot (1,1,1) = 0$ then:
$$U = (1,1,1)$$
And $V$ can be found as the cross product:
$$V = N times U$$
For the sake of simplicity on the formulations we assume that $U$, $V$ and $N$ are normalized vectors from now on.
We define the matrix $M = [U V N]$, having the the vectors $U$, $V$ and $N$ as columns.
Let also define the coordinate vectors $E_1 = (1,0,0)$, $E_2 = (0,1,0)$ and $E_3 = (0,0,1)$. The matrix $M$ map the coordinate vectors with vectors $U$, $V$ and $N$.
$$M E_1 = U$$
$$M E_2 = V$$
$$M E_3 = N$$
Conversely $M^T$ map the vectors $U$, $V$ and $N$ to the coordinate vectors $E_1$, $E_2$ and $E_3$.
Now, we define the rotation matrix $R$ that rotates an angle $theta$ around the $E_3$ axis. Where $theta$ is:
$$theta = cos^-1 (frac(1,1,1) cdot (0, sqrt 2, 1) )$$
Finally the matrix $A$ would be:
$$A = M R M^T$$
To show that the matrix $A$ is doing a rotation in the $U V$ plane around the nornal $N$ we can derive the formula:
$$A (1,1,1) = M R M^T (1,1,1)$$
Since $(1,1,1) = U$:
$$A (1,1,1) = M R M^T U$$
Since $M^T U = E_1$:
$$A (1,1,1) = M R E_1$$
Since $R E_1 = cos(theta) E_1 + sin(theta) E_2$:
$$A (1,1,1) = cos(theta) M E_1 + sin(theta) M E_2$$
Recalling that $M E_1 = U$ and $M E_2 = V$:
$$A (1,1,1) = cos(theta) U + sin(theta) V$$
Which is a meaningful result to keep in mind.
$endgroup$
Problem 2:
$$A (1,1,1) = (0, sqrt 2, 1)$$
Lets define a rotation axis $N = (1,1,1) times (0, sqrt 2, 1)$
We should also define two orthogonal vectors $U$ and $V$ in the rotation plane with normal $N$.
We can find $U$ by projecting $(1,1,1)$ into the plane with normal $N$.
$$U = (1,1,1) - fracN cdot (1,1,1)N cdot N N$$
Since $N cdot (1,1,1) = 0$ then:
$$U = (1,1,1)$$
And $V$ can be found as the cross product:
$$V = N times U$$
For the sake of simplicity on the formulations we assume that $U$, $V$ and $N$ are normalized vectors from now on.
We define the matrix $M = [U V N]$, having the the vectors $U$, $V$ and $N$ as columns.
Let also define the coordinate vectors $E_1 = (1,0,0)$, $E_2 = (0,1,0)$ and $E_3 = (0,0,1)$. The matrix $M$ map the coordinate vectors with vectors $U$, $V$ and $N$.
$$M E_1 = U$$
$$M E_2 = V$$
$$M E_3 = N$$
Conversely $M^T$ map the vectors $U$, $V$ and $N$ to the coordinate vectors $E_1$, $E_2$ and $E_3$.
Now, we define the rotation matrix $R$ that rotates an angle $theta$ around the $E_3$ axis. Where $theta$ is:
$$theta = cos^-1 (frac(1,1,1) cdot (0, sqrt 2, 1) )$$
Finally the matrix $A$ would be:
$$A = M R M^T$$
To show that the matrix $A$ is doing a rotation in the $U V$ plane around the nornal $N$ we can derive the formula:
$$A (1,1,1) = M R M^T (1,1,1)$$
Since $(1,1,1) = U$:
$$A (1,1,1) = M R M^T U$$
Since $M^T U = E_1$:
$$A (1,1,1) = M R E_1$$
Since $R E_1 = cos(theta) E_1 + sin(theta) E_2$:
$$A (1,1,1) = cos(theta) M E_1 + sin(theta) M E_2$$
Recalling that $M E_1 = U$ and $M E_2 = V$:
$$A (1,1,1) = cos(theta) U + sin(theta) V$$
Which is a meaningful result to keep in mind.
edited Mar 17 at 2:38
answered Mar 16 at 23:22
Mauricio Cele Lopez BelonMauricio Cele Lopez Belon
839411
839411
$begingroup$
Very nice, but perhaps more work than necessary. A rotation through an angle of $pi$ about the axis $v+w$ works, too.
$endgroup$
– amd
Mar 17 at 0:04
1
$begingroup$
In fact we need only know that a necessary and sufficient condition is that the two vectors have equal magnitude. We confirm that the magnitude is $sqrt3$ in both cases, and we’re done.
$endgroup$
– David K
Mar 17 at 13:05
$begingroup$
@amd you are right. A very compact expression for the rotation matrix rotating from $v$ to $w$ around the axis $v + w$, being $v$ and $w$ unit vectors can be found here: math.stackexchange.com/a/2672702/485657
$endgroup$
– Mauricio Cele Lopez Belon
Mar 17 at 14:42
$begingroup$
@DavidK I agree with you.
$endgroup$
– Mauricio Cele Lopez Belon
Mar 17 at 14:45
add a comment |
$begingroup$
Very nice, but perhaps more work than necessary. A rotation through an angle of $pi$ about the axis $v+w$ works, too.
$endgroup$
– amd
Mar 17 at 0:04
1
$begingroup$
In fact we need only know that a necessary and sufficient condition is that the two vectors have equal magnitude. We confirm that the magnitude is $sqrt3$ in both cases, and we’re done.
$endgroup$
– David K
Mar 17 at 13:05
$begingroup$
@amd you are right. A very compact expression for the rotation matrix rotating from $v$ to $w$ around the axis $v + w$, being $v$ and $w$ unit vectors can be found here: math.stackexchange.com/a/2672702/485657
$endgroup$
– Mauricio Cele Lopez Belon
Mar 17 at 14:42
$begingroup$
@DavidK I agree with you.
$endgroup$
– Mauricio Cele Lopez Belon
Mar 17 at 14:45
$begingroup$
Very nice, but perhaps more work than necessary. A rotation through an angle of $pi$ about the axis $v+w$ works, too.
$endgroup$
– amd
Mar 17 at 0:04
$begingroup$
Very nice, but perhaps more work than necessary. A rotation through an angle of $pi$ about the axis $v+w$ works, too.
$endgroup$
– amd
Mar 17 at 0:04
1
1
$begingroup$
In fact we need only know that a necessary and sufficient condition is that the two vectors have equal magnitude. We confirm that the magnitude is $sqrt3$ in both cases, and we’re done.
$endgroup$
– David K
Mar 17 at 13:05
$begingroup$
In fact we need only know that a necessary and sufficient condition is that the two vectors have equal magnitude. We confirm that the magnitude is $sqrt3$ in both cases, and we’re done.
$endgroup$
– David K
Mar 17 at 13:05
$begingroup$
@amd you are right. A very compact expression for the rotation matrix rotating from $v$ to $w$ around the axis $v + w$, being $v$ and $w$ unit vectors can be found here: math.stackexchange.com/a/2672702/485657
$endgroup$
– Mauricio Cele Lopez Belon
Mar 17 at 14:42
$begingroup$
@amd you are right. A very compact expression for the rotation matrix rotating from $v$ to $w$ around the axis $v + w$, being $v$ and $w$ unit vectors can be found here: math.stackexchange.com/a/2672702/485657
$endgroup$
– Mauricio Cele Lopez Belon
Mar 17 at 14:42
$begingroup$
@DavidK I agree with you.
$endgroup$
– Mauricio Cele Lopez Belon
Mar 17 at 14:45
$begingroup$
@DavidK I agree with you.
$endgroup$
– Mauricio Cele Lopez Belon
Mar 17 at 14:45
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3150752%2fexercises-about-rotations%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
$begingroup$
Problem 1 is underspecified. There is an infinite number of rotations that will take $v$ to $w$, so it makes no sense to ask about “the” axis and angle.
$endgroup$
– amd
Mar 16 at 21:38
$begingroup$
@amd You are right.
$endgroup$
– saulspatz
Mar 16 at 23:44