How do I find the angle a vector makes to the $+x$ axis?
You are given two vectors $vec a = -3.00hat i + 7.00hat j$ and $vec b= 4.00hat i + 2.00hat j$. Let the counterclockwise angles be positive.
What angle $theta (vec a)$ where $0^circ le theta (vec a) < 360^circ $, does $vec a$ make with the $+x$-axis?
I drew a right triangle with a $vec ax$ component of $-3$ and an $vec ay$ component of $7$. Do I just use trig to find the angle off the $x$-axis?
vectors
migrated from physics.stackexchange.com Sep 1 '16 at 11:17
This question came from our site for active researchers, academics and students of physics.
add a comment |
You are given two vectors $vec a = -3.00hat i + 7.00hat j$ and $vec b= 4.00hat i + 2.00hat j$. Let the counterclockwise angles be positive.
What angle $theta (vec a)$ where $0^circ le theta (vec a) < 360^circ $, does $vec a$ make with the $+x$-axis?
I drew a right triangle with a $vec ax$ component of $-3$ and an $vec ay$ component of $7$. Do I just use trig to find the angle off the $x$-axis?
vectors
migrated from physics.stackexchange.com Sep 1 '16 at 11:17
This question came from our site for active researchers, academics and students of physics.
Yes. Use trig to calculate the angle.
– nasu
Sep 1 '16 at 2:40
Used inverse tangent 7/3 = 2.3 for an answer of 66.50 degrees from the x axis or is it 7/-3?
– Jessica
Sep 1 '16 at 2:40
add a comment |
You are given two vectors $vec a = -3.00hat i + 7.00hat j$ and $vec b= 4.00hat i + 2.00hat j$. Let the counterclockwise angles be positive.
What angle $theta (vec a)$ where $0^circ le theta (vec a) < 360^circ $, does $vec a$ make with the $+x$-axis?
I drew a right triangle with a $vec ax$ component of $-3$ and an $vec ay$ component of $7$. Do I just use trig to find the angle off the $x$-axis?
vectors
You are given two vectors $vec a = -3.00hat i + 7.00hat j$ and $vec b= 4.00hat i + 2.00hat j$. Let the counterclockwise angles be positive.
What angle $theta (vec a)$ where $0^circ le theta (vec a) < 360^circ $, does $vec a$ make with the $+x$-axis?
I drew a right triangle with a $vec ax$ component of $-3$ and an $vec ay$ component of $7$. Do I just use trig to find the angle off the $x$-axis?
vectors
vectors
edited Sep 1 '16 at 11:39
StubbornAtom
5,29211138
5,29211138
asked Sep 1 '16 at 2:33
Jessica
3017
3017
migrated from physics.stackexchange.com Sep 1 '16 at 11:17
This question came from our site for active researchers, academics and students of physics.
migrated from physics.stackexchange.com Sep 1 '16 at 11:17
This question came from our site for active researchers, academics and students of physics.
Yes. Use trig to calculate the angle.
– nasu
Sep 1 '16 at 2:40
Used inverse tangent 7/3 = 2.3 for an answer of 66.50 degrees from the x axis or is it 7/-3?
– Jessica
Sep 1 '16 at 2:40
add a comment |
Yes. Use trig to calculate the angle.
– nasu
Sep 1 '16 at 2:40
Used inverse tangent 7/3 = 2.3 for an answer of 66.50 degrees from the x axis or is it 7/-3?
– Jessica
Sep 1 '16 at 2:40
Yes. Use trig to calculate the angle.
– nasu
Sep 1 '16 at 2:40
Yes. Use trig to calculate the angle.
– nasu
Sep 1 '16 at 2:40
Used inverse tangent 7/3 = 2.3 for an answer of 66.50 degrees from the x axis or is it 7/-3?
– Jessica
Sep 1 '16 at 2:40
Used inverse tangent 7/3 = 2.3 for an answer of 66.50 degrees from the x axis or is it 7/-3?
– Jessica
Sep 1 '16 at 2:40
add a comment |
4 Answers
4
active
oldest
votes
You can use trig, but since these are vectors, there's a far easier way. Use dot products!
Suppose you have a vector $vec{a}$ and you need to find the angle it makes with the $x$-axis. So take a unit vector along the $x$-axis, viz. $hat{i}$. Using the dot product of these vectors,
$$
vec{a}cdothat{i} = |vec{a}||hat{i}|costheta
$$
where $theta$ is the angle between the two vectors. Since $|hat{i}|$ = 1, and $vec{a}cdothat{i} = a_x$, hence
$$
costheta = frac{a_x}{|vec{a}|} implies theta = cos^{-1} frac{a_x}{|vec{a}|}.
$$
add a comment |
A general rule for finding the counterclockwise angle from the positive $x$ axis to the direction of a two-dimensional vector is explained in
How to convert components into an angle directly (for vectors)?
The basic idea is that you first take the arc tangent of the $y$-component
divided by the $x$-component:
$$
theta_1 = arctanfrac{a_y}{a_x}.
$$
One complication is that this procedure gives the same resulting $theta_1$
for the vector $langle a_x,a_y rangle$ and the vector $langle -a_x,-a_y rangle,$ which are two vectors in directions $180$ degrees apart.
So $theta_1$ may be in the direction you want, or in the direction
$180$ degrees opposite.
In fact $theta_1$ will be in the correct direction whenever $a_x > 0,$
since that is how the arc tangent function is designed to work.
(It always produces angles in the range $-fracpi2$ to $fracpi2$ radians,
that is, $-90$ to $90$ degrees,
which correspond to vectors with positive $x$-components.)
The cases where $theta_1$ is wrong are precisely the cases where
$a_x < 0,$ so if $a_x > 0$ (as it is in your particular question)
you have to add $180$ degrees to $theta_1.$
A second complication (which does not actually come up in your particular
question) occurs because the procedures given above produce a result in the range $-90$ degrees to $270$ degrees, but people usually want an answer in the range $-180$ to $180$ or $0$ to $360.$ The solution to this, of course, is to add or subtract $360$ degrees as needed to get an answer in the desired angle range.
add a comment |
Problem: Counterclockwise angle between $ +x-$ axis and vector $vec{a} = (-3,7)$.
Draw a $ x-,y- $ axes, and vector $vec{a}$ pointing from the origin $(0,0) $ to $ (-3,7)$. Verify that we are in the second quadrant , I.e. $angle theta $ is obtuse.
Normalize vector $vec{a}$ , call it
$vec{n}$ : $(1/√58) (-3,7)$.
Dot product: $vec{n} cdot vec{e_x}$ = $cos(theta)$.
$cos(theta)$ = $(1/√58) (-3, 7) cdot (1, 0) $= $-3 (1/√58)$.
Left: Look up $arccos ( theta)$ to find the obtuse angle $theta$.
add a comment |
Yeah you just use trig. Tan is the easiest. I saw your question about whether it is arctan(7/3) or arctan(7/-3) it is the 7/-3. Now this will give you a negative angle. This is outside your range so add 360 to it to get the answer that is in your range.
The angle one gets via this method is 180 degrees away from the correct angle for the vector in the question.
– David K
May 10 '17 at 13:48
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%2f1910825%2fhow-do-i-find-the-angle-a-vector-makes-to-the-x-axis%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can use trig, but since these are vectors, there's a far easier way. Use dot products!
Suppose you have a vector $vec{a}$ and you need to find the angle it makes with the $x$-axis. So take a unit vector along the $x$-axis, viz. $hat{i}$. Using the dot product of these vectors,
$$
vec{a}cdothat{i} = |vec{a}||hat{i}|costheta
$$
where $theta$ is the angle between the two vectors. Since $|hat{i}|$ = 1, and $vec{a}cdothat{i} = a_x$, hence
$$
costheta = frac{a_x}{|vec{a}|} implies theta = cos^{-1} frac{a_x}{|vec{a}|}.
$$
add a comment |
You can use trig, but since these are vectors, there's a far easier way. Use dot products!
Suppose you have a vector $vec{a}$ and you need to find the angle it makes with the $x$-axis. So take a unit vector along the $x$-axis, viz. $hat{i}$. Using the dot product of these vectors,
$$
vec{a}cdothat{i} = |vec{a}||hat{i}|costheta
$$
where $theta$ is the angle between the two vectors. Since $|hat{i}|$ = 1, and $vec{a}cdothat{i} = a_x$, hence
$$
costheta = frac{a_x}{|vec{a}|} implies theta = cos^{-1} frac{a_x}{|vec{a}|}.
$$
add a comment |
You can use trig, but since these are vectors, there's a far easier way. Use dot products!
Suppose you have a vector $vec{a}$ and you need to find the angle it makes with the $x$-axis. So take a unit vector along the $x$-axis, viz. $hat{i}$. Using the dot product of these vectors,
$$
vec{a}cdothat{i} = |vec{a}||hat{i}|costheta
$$
where $theta$ is the angle between the two vectors. Since $|hat{i}|$ = 1, and $vec{a}cdothat{i} = a_x$, hence
$$
costheta = frac{a_x}{|vec{a}|} implies theta = cos^{-1} frac{a_x}{|vec{a}|}.
$$
You can use trig, but since these are vectors, there's a far easier way. Use dot products!
Suppose you have a vector $vec{a}$ and you need to find the angle it makes with the $x$-axis. So take a unit vector along the $x$-axis, viz. $hat{i}$. Using the dot product of these vectors,
$$
vec{a}cdothat{i} = |vec{a}||hat{i}|costheta
$$
where $theta$ is the angle between the two vectors. Since $|hat{i}|$ = 1, and $vec{a}cdothat{i} = a_x$, hence
$$
costheta = frac{a_x}{|vec{a}|} implies theta = cos^{-1} frac{a_x}{|vec{a}|}.
$$
answered Feb 6 '17 at 13:31
Nilabro Saha
1,378311
1,378311
add a comment |
add a comment |
A general rule for finding the counterclockwise angle from the positive $x$ axis to the direction of a two-dimensional vector is explained in
How to convert components into an angle directly (for vectors)?
The basic idea is that you first take the arc tangent of the $y$-component
divided by the $x$-component:
$$
theta_1 = arctanfrac{a_y}{a_x}.
$$
One complication is that this procedure gives the same resulting $theta_1$
for the vector $langle a_x,a_y rangle$ and the vector $langle -a_x,-a_y rangle,$ which are two vectors in directions $180$ degrees apart.
So $theta_1$ may be in the direction you want, or in the direction
$180$ degrees opposite.
In fact $theta_1$ will be in the correct direction whenever $a_x > 0,$
since that is how the arc tangent function is designed to work.
(It always produces angles in the range $-fracpi2$ to $fracpi2$ radians,
that is, $-90$ to $90$ degrees,
which correspond to vectors with positive $x$-components.)
The cases where $theta_1$ is wrong are precisely the cases where
$a_x < 0,$ so if $a_x > 0$ (as it is in your particular question)
you have to add $180$ degrees to $theta_1.$
A second complication (which does not actually come up in your particular
question) occurs because the procedures given above produce a result in the range $-90$ degrees to $270$ degrees, but people usually want an answer in the range $-180$ to $180$ or $0$ to $360.$ The solution to this, of course, is to add or subtract $360$ degrees as needed to get an answer in the desired angle range.
add a comment |
A general rule for finding the counterclockwise angle from the positive $x$ axis to the direction of a two-dimensional vector is explained in
How to convert components into an angle directly (for vectors)?
The basic idea is that you first take the arc tangent of the $y$-component
divided by the $x$-component:
$$
theta_1 = arctanfrac{a_y}{a_x}.
$$
One complication is that this procedure gives the same resulting $theta_1$
for the vector $langle a_x,a_y rangle$ and the vector $langle -a_x,-a_y rangle,$ which are two vectors in directions $180$ degrees apart.
So $theta_1$ may be in the direction you want, or in the direction
$180$ degrees opposite.
In fact $theta_1$ will be in the correct direction whenever $a_x > 0,$
since that is how the arc tangent function is designed to work.
(It always produces angles in the range $-fracpi2$ to $fracpi2$ radians,
that is, $-90$ to $90$ degrees,
which correspond to vectors with positive $x$-components.)
The cases where $theta_1$ is wrong are precisely the cases where
$a_x < 0,$ so if $a_x > 0$ (as it is in your particular question)
you have to add $180$ degrees to $theta_1.$
A second complication (which does not actually come up in your particular
question) occurs because the procedures given above produce a result in the range $-90$ degrees to $270$ degrees, but people usually want an answer in the range $-180$ to $180$ or $0$ to $360.$ The solution to this, of course, is to add or subtract $360$ degrees as needed to get an answer in the desired angle range.
add a comment |
A general rule for finding the counterclockwise angle from the positive $x$ axis to the direction of a two-dimensional vector is explained in
How to convert components into an angle directly (for vectors)?
The basic idea is that you first take the arc tangent of the $y$-component
divided by the $x$-component:
$$
theta_1 = arctanfrac{a_y}{a_x}.
$$
One complication is that this procedure gives the same resulting $theta_1$
for the vector $langle a_x,a_y rangle$ and the vector $langle -a_x,-a_y rangle,$ which are two vectors in directions $180$ degrees apart.
So $theta_1$ may be in the direction you want, or in the direction
$180$ degrees opposite.
In fact $theta_1$ will be in the correct direction whenever $a_x > 0,$
since that is how the arc tangent function is designed to work.
(It always produces angles in the range $-fracpi2$ to $fracpi2$ radians,
that is, $-90$ to $90$ degrees,
which correspond to vectors with positive $x$-components.)
The cases where $theta_1$ is wrong are precisely the cases where
$a_x < 0,$ so if $a_x > 0$ (as it is in your particular question)
you have to add $180$ degrees to $theta_1.$
A second complication (which does not actually come up in your particular
question) occurs because the procedures given above produce a result in the range $-90$ degrees to $270$ degrees, but people usually want an answer in the range $-180$ to $180$ or $0$ to $360.$ The solution to this, of course, is to add or subtract $360$ degrees as needed to get an answer in the desired angle range.
A general rule for finding the counterclockwise angle from the positive $x$ axis to the direction of a two-dimensional vector is explained in
How to convert components into an angle directly (for vectors)?
The basic idea is that you first take the arc tangent of the $y$-component
divided by the $x$-component:
$$
theta_1 = arctanfrac{a_y}{a_x}.
$$
One complication is that this procedure gives the same resulting $theta_1$
for the vector $langle a_x,a_y rangle$ and the vector $langle -a_x,-a_y rangle,$ which are two vectors in directions $180$ degrees apart.
So $theta_1$ may be in the direction you want, or in the direction
$180$ degrees opposite.
In fact $theta_1$ will be in the correct direction whenever $a_x > 0,$
since that is how the arc tangent function is designed to work.
(It always produces angles in the range $-fracpi2$ to $fracpi2$ radians,
that is, $-90$ to $90$ degrees,
which correspond to vectors with positive $x$-components.)
The cases where $theta_1$ is wrong are precisely the cases where
$a_x < 0,$ so if $a_x > 0$ (as it is in your particular question)
you have to add $180$ degrees to $theta_1.$
A second complication (which does not actually come up in your particular
question) occurs because the procedures given above produce a result in the range $-90$ degrees to $270$ degrees, but people usually want an answer in the range $-180$ to $180$ or $0$ to $360.$ The solution to this, of course, is to add or subtract $360$ degrees as needed to get an answer in the desired angle range.
answered May 10 '17 at 13:46
David K
52.6k340115
52.6k340115
add a comment |
add a comment |
Problem: Counterclockwise angle between $ +x-$ axis and vector $vec{a} = (-3,7)$.
Draw a $ x-,y- $ axes, and vector $vec{a}$ pointing from the origin $(0,0) $ to $ (-3,7)$. Verify that we are in the second quadrant , I.e. $angle theta $ is obtuse.
Normalize vector $vec{a}$ , call it
$vec{n}$ : $(1/√58) (-3,7)$.
Dot product: $vec{n} cdot vec{e_x}$ = $cos(theta)$.
$cos(theta)$ = $(1/√58) (-3, 7) cdot (1, 0) $= $-3 (1/√58)$.
Left: Look up $arccos ( theta)$ to find the obtuse angle $theta$.
add a comment |
Problem: Counterclockwise angle between $ +x-$ axis and vector $vec{a} = (-3,7)$.
Draw a $ x-,y- $ axes, and vector $vec{a}$ pointing from the origin $(0,0) $ to $ (-3,7)$. Verify that we are in the second quadrant , I.e. $angle theta $ is obtuse.
Normalize vector $vec{a}$ , call it
$vec{n}$ : $(1/√58) (-3,7)$.
Dot product: $vec{n} cdot vec{e_x}$ = $cos(theta)$.
$cos(theta)$ = $(1/√58) (-3, 7) cdot (1, 0) $= $-3 (1/√58)$.
Left: Look up $arccos ( theta)$ to find the obtuse angle $theta$.
add a comment |
Problem: Counterclockwise angle between $ +x-$ axis and vector $vec{a} = (-3,7)$.
Draw a $ x-,y- $ axes, and vector $vec{a}$ pointing from the origin $(0,0) $ to $ (-3,7)$. Verify that we are in the second quadrant , I.e. $angle theta $ is obtuse.
Normalize vector $vec{a}$ , call it
$vec{n}$ : $(1/√58) (-3,7)$.
Dot product: $vec{n} cdot vec{e_x}$ = $cos(theta)$.
$cos(theta)$ = $(1/√58) (-3, 7) cdot (1, 0) $= $-3 (1/√58)$.
Left: Look up $arccos ( theta)$ to find the obtuse angle $theta$.
Problem: Counterclockwise angle between $ +x-$ axis and vector $vec{a} = (-3,7)$.
Draw a $ x-,y- $ axes, and vector $vec{a}$ pointing from the origin $(0,0) $ to $ (-3,7)$. Verify that we are in the second quadrant , I.e. $angle theta $ is obtuse.
Normalize vector $vec{a}$ , call it
$vec{n}$ : $(1/√58) (-3,7)$.
Dot product: $vec{n} cdot vec{e_x}$ = $cos(theta)$.
$cos(theta)$ = $(1/√58) (-3, 7) cdot (1, 0) $= $-3 (1/√58)$.
Left: Look up $arccos ( theta)$ to find the obtuse angle $theta$.
edited Jun 10 '17 at 7:55
answered Jun 10 '17 at 7:48
Peter Szilas
10.7k2720
10.7k2720
add a comment |
add a comment |
Yeah you just use trig. Tan is the easiest. I saw your question about whether it is arctan(7/3) or arctan(7/-3) it is the 7/-3. Now this will give you a negative angle. This is outside your range so add 360 to it to get the answer that is in your range.
The angle one gets via this method is 180 degrees away from the correct angle for the vector in the question.
– David K
May 10 '17 at 13:48
add a comment |
Yeah you just use trig. Tan is the easiest. I saw your question about whether it is arctan(7/3) or arctan(7/-3) it is the 7/-3. Now this will give you a negative angle. This is outside your range so add 360 to it to get the answer that is in your range.
The angle one gets via this method is 180 degrees away from the correct angle for the vector in the question.
– David K
May 10 '17 at 13:48
add a comment |
Yeah you just use trig. Tan is the easiest. I saw your question about whether it is arctan(7/3) or arctan(7/-3) it is the 7/-3. Now this will give you a negative angle. This is outside your range so add 360 to it to get the answer that is in your range.
Yeah you just use trig. Tan is the easiest. I saw your question about whether it is arctan(7/3) or arctan(7/-3) it is the 7/-3. Now this will give you a negative angle. This is outside your range so add 360 to it to get the answer that is in your range.
answered Sep 1 '16 at 11:11
Liam Bowers
The angle one gets via this method is 180 degrees away from the correct angle for the vector in the question.
– David K
May 10 '17 at 13:48
add a comment |
The angle one gets via this method is 180 degrees away from the correct angle for the vector in the question.
– David K
May 10 '17 at 13:48
The angle one gets via this method is 180 degrees away from the correct angle for the vector in the question.
– David K
May 10 '17 at 13:48
The angle one gets via this method is 180 degrees away from the correct angle for the vector in the question.
– David K
May 10 '17 at 13:48
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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.
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%2f1910825%2fhow-do-i-find-the-angle-a-vector-makes-to-the-x-axis%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
Yes. Use trig to calculate the angle.
– nasu
Sep 1 '16 at 2:40
Used inverse tangent 7/3 = 2.3 for an answer of 66.50 degrees from the x axis or is it 7/-3?
– Jessica
Sep 1 '16 at 2:40