Finding perpendicular unit vector in $mathbb{R}^n$ to hyperplane
$begingroup$
Suppose I have $n-1$ linearly independent vectors $(v_1, ..., v_{n-1})$ in $mathbb{R}^n$ that together form a basis of a hyperplane. I'm looking to find a last vector $v$ that is normal to the hyperplane (i.e., perpendicular to all $n-1$ basis vectors), with the extra restrictions that $v$ is a unit vector and that $det([vquad v_1 quad ...quad v_{n-1}])>0$.
Is there a formula to find such a $v$ given $v_1, ..., v_{n-1}$, that is smooth in $v_1, ..., v_{n-1}$? I was considering the cross-product but I'm not sure how it generalizes to $n-1$ vectors and to $mathbb{R}^n$ and how to get the determinant right.
linear-algebra vectors orthogonality smooth-functions
$endgroup$
add a comment |
$begingroup$
Suppose I have $n-1$ linearly independent vectors $(v_1, ..., v_{n-1})$ in $mathbb{R}^n$ that together form a basis of a hyperplane. I'm looking to find a last vector $v$ that is normal to the hyperplane (i.e., perpendicular to all $n-1$ basis vectors), with the extra restrictions that $v$ is a unit vector and that $det([vquad v_1 quad ...quad v_{n-1}])>0$.
Is there a formula to find such a $v$ given $v_1, ..., v_{n-1}$, that is smooth in $v_1, ..., v_{n-1}$? I was considering the cross-product but I'm not sure how it generalizes to $n-1$ vectors and to $mathbb{R}^n$ and how to get the determinant right.
linear-algebra vectors orthogonality smooth-functions
$endgroup$
add a comment |
$begingroup$
Suppose I have $n-1$ linearly independent vectors $(v_1, ..., v_{n-1})$ in $mathbb{R}^n$ that together form a basis of a hyperplane. I'm looking to find a last vector $v$ that is normal to the hyperplane (i.e., perpendicular to all $n-1$ basis vectors), with the extra restrictions that $v$ is a unit vector and that $det([vquad v_1 quad ...quad v_{n-1}])>0$.
Is there a formula to find such a $v$ given $v_1, ..., v_{n-1}$, that is smooth in $v_1, ..., v_{n-1}$? I was considering the cross-product but I'm not sure how it generalizes to $n-1$ vectors and to $mathbb{R}^n$ and how to get the determinant right.
linear-algebra vectors orthogonality smooth-functions
$endgroup$
Suppose I have $n-1$ linearly independent vectors $(v_1, ..., v_{n-1})$ in $mathbb{R}^n$ that together form a basis of a hyperplane. I'm looking to find a last vector $v$ that is normal to the hyperplane (i.e., perpendicular to all $n-1$ basis vectors), with the extra restrictions that $v$ is a unit vector and that $det([vquad v_1 quad ...quad v_{n-1}])>0$.
Is there a formula to find such a $v$ given $v_1, ..., v_{n-1}$, that is smooth in $v_1, ..., v_{n-1}$? I was considering the cross-product but I'm not sure how it generalizes to $n-1$ vectors and to $mathbb{R}^n$ and how to get the determinant right.
linear-algebra vectors orthogonality smooth-functions
linear-algebra vectors orthogonality smooth-functions
edited Dec 2 '18 at 16:40
José Carlos Santos
154k22124227
154k22124227
asked Dec 2 '18 at 15:30
DashermanDasherman
1,020817
1,020817
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
Your idea of generalizing the concept of cross-product is a good one; you can read about it here. And it will indeed give you a smooth function (a rational function, in fact).
$endgroup$
add a comment |
$begingroup$
Let $mathbf{e}=(e_1, dots e_n)$ be the canonical basis of $mathbb{R}^n$. The vector you're looking for is $v=frac{sum_{i=1}^nlambda_ie_i}{sqrt{sum_{i=1}^nlambda_i^2}}$ where $lambda_i=det([e_i v_1 dots v_{n-1}])$. To see that it is indeed the vector you're looking for, let $varphi:mathbb{R}^ntomathbb{R}$ be the linear form defined by $varphi(w)=det([w v_1 dots v_{n-1}])$. Since the inner product $langle.,.rangle$ on $mathbb{R}^n$ is non-degenerate, there is one and only one vector $v'in mathbb{R}^n$ such that for every $win mathbb{R}^n$, $varphi(w)=langle w,v'rangle$. This vector is not zero because $varphi$ is not zero. Since $mathbf{e}$ is an orthonormal basis, we have $v'=sum_{i=1}^nlangle e_i,v'rangle e_i$ that is $v'=sum_{i=1}^nvarphi(e_i)e_i=sum_{i=1}^nlambda_ie_i$. Then we can see that, for all $1leqslant i leqslant n-1 $, $langle v_i,v'rangle=varphi(v_i)=det([v_i v_1 dots v_{n-1}])=0$ and $det([v' v_1 dots v_{n-1}])=varphi(v')=Vert v'Vert^2>0$. Finally, we see that $v=frac{v'}{Vert v'Vert}$ is a unit vector orthogonal to the $v_i$'s and $det([v v_1 dots v_{n-1}])=Vert v'Vert>0$.
$endgroup$
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%2f3022765%2ffinding-perpendicular-unit-vector-in-mathbbrn-to-hyperplane%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$
Your idea of generalizing the concept of cross-product is a good one; you can read about it here. And it will indeed give you a smooth function (a rational function, in fact).
$endgroup$
add a comment |
$begingroup$
Your idea of generalizing the concept of cross-product is a good one; you can read about it here. And it will indeed give you a smooth function (a rational function, in fact).
$endgroup$
add a comment |
$begingroup$
Your idea of generalizing the concept of cross-product is a good one; you can read about it here. And it will indeed give you a smooth function (a rational function, in fact).
$endgroup$
Your idea of generalizing the concept of cross-product is a good one; you can read about it here. And it will indeed give you a smooth function (a rational function, in fact).
answered Dec 2 '18 at 15:35
José Carlos SantosJosé Carlos Santos
154k22124227
154k22124227
add a comment |
add a comment |
$begingroup$
Let $mathbf{e}=(e_1, dots e_n)$ be the canonical basis of $mathbb{R}^n$. The vector you're looking for is $v=frac{sum_{i=1}^nlambda_ie_i}{sqrt{sum_{i=1}^nlambda_i^2}}$ where $lambda_i=det([e_i v_1 dots v_{n-1}])$. To see that it is indeed the vector you're looking for, let $varphi:mathbb{R}^ntomathbb{R}$ be the linear form defined by $varphi(w)=det([w v_1 dots v_{n-1}])$. Since the inner product $langle.,.rangle$ on $mathbb{R}^n$ is non-degenerate, there is one and only one vector $v'in mathbb{R}^n$ such that for every $win mathbb{R}^n$, $varphi(w)=langle w,v'rangle$. This vector is not zero because $varphi$ is not zero. Since $mathbf{e}$ is an orthonormal basis, we have $v'=sum_{i=1}^nlangle e_i,v'rangle e_i$ that is $v'=sum_{i=1}^nvarphi(e_i)e_i=sum_{i=1}^nlambda_ie_i$. Then we can see that, for all $1leqslant i leqslant n-1 $, $langle v_i,v'rangle=varphi(v_i)=det([v_i v_1 dots v_{n-1}])=0$ and $det([v' v_1 dots v_{n-1}])=varphi(v')=Vert v'Vert^2>0$. Finally, we see that $v=frac{v'}{Vert v'Vert}$ is a unit vector orthogonal to the $v_i$'s and $det([v v_1 dots v_{n-1}])=Vert v'Vert>0$.
$endgroup$
add a comment |
$begingroup$
Let $mathbf{e}=(e_1, dots e_n)$ be the canonical basis of $mathbb{R}^n$. The vector you're looking for is $v=frac{sum_{i=1}^nlambda_ie_i}{sqrt{sum_{i=1}^nlambda_i^2}}$ where $lambda_i=det([e_i v_1 dots v_{n-1}])$. To see that it is indeed the vector you're looking for, let $varphi:mathbb{R}^ntomathbb{R}$ be the linear form defined by $varphi(w)=det([w v_1 dots v_{n-1}])$. Since the inner product $langle.,.rangle$ on $mathbb{R}^n$ is non-degenerate, there is one and only one vector $v'in mathbb{R}^n$ such that for every $win mathbb{R}^n$, $varphi(w)=langle w,v'rangle$. This vector is not zero because $varphi$ is not zero. Since $mathbf{e}$ is an orthonormal basis, we have $v'=sum_{i=1}^nlangle e_i,v'rangle e_i$ that is $v'=sum_{i=1}^nvarphi(e_i)e_i=sum_{i=1}^nlambda_ie_i$. Then we can see that, for all $1leqslant i leqslant n-1 $, $langle v_i,v'rangle=varphi(v_i)=det([v_i v_1 dots v_{n-1}])=0$ and $det([v' v_1 dots v_{n-1}])=varphi(v')=Vert v'Vert^2>0$. Finally, we see that $v=frac{v'}{Vert v'Vert}$ is a unit vector orthogonal to the $v_i$'s and $det([v v_1 dots v_{n-1}])=Vert v'Vert>0$.
$endgroup$
add a comment |
$begingroup$
Let $mathbf{e}=(e_1, dots e_n)$ be the canonical basis of $mathbb{R}^n$. The vector you're looking for is $v=frac{sum_{i=1}^nlambda_ie_i}{sqrt{sum_{i=1}^nlambda_i^2}}$ where $lambda_i=det([e_i v_1 dots v_{n-1}])$. To see that it is indeed the vector you're looking for, let $varphi:mathbb{R}^ntomathbb{R}$ be the linear form defined by $varphi(w)=det([w v_1 dots v_{n-1}])$. Since the inner product $langle.,.rangle$ on $mathbb{R}^n$ is non-degenerate, there is one and only one vector $v'in mathbb{R}^n$ such that for every $win mathbb{R}^n$, $varphi(w)=langle w,v'rangle$. This vector is not zero because $varphi$ is not zero. Since $mathbf{e}$ is an orthonormal basis, we have $v'=sum_{i=1}^nlangle e_i,v'rangle e_i$ that is $v'=sum_{i=1}^nvarphi(e_i)e_i=sum_{i=1}^nlambda_ie_i$. Then we can see that, for all $1leqslant i leqslant n-1 $, $langle v_i,v'rangle=varphi(v_i)=det([v_i v_1 dots v_{n-1}])=0$ and $det([v' v_1 dots v_{n-1}])=varphi(v')=Vert v'Vert^2>0$. Finally, we see that $v=frac{v'}{Vert v'Vert}$ is a unit vector orthogonal to the $v_i$'s and $det([v v_1 dots v_{n-1}])=Vert v'Vert>0$.
$endgroup$
Let $mathbf{e}=(e_1, dots e_n)$ be the canonical basis of $mathbb{R}^n$. The vector you're looking for is $v=frac{sum_{i=1}^nlambda_ie_i}{sqrt{sum_{i=1}^nlambda_i^2}}$ where $lambda_i=det([e_i v_1 dots v_{n-1}])$. To see that it is indeed the vector you're looking for, let $varphi:mathbb{R}^ntomathbb{R}$ be the linear form defined by $varphi(w)=det([w v_1 dots v_{n-1}])$. Since the inner product $langle.,.rangle$ on $mathbb{R}^n$ is non-degenerate, there is one and only one vector $v'in mathbb{R}^n$ such that for every $win mathbb{R}^n$, $varphi(w)=langle w,v'rangle$. This vector is not zero because $varphi$ is not zero. Since $mathbf{e}$ is an orthonormal basis, we have $v'=sum_{i=1}^nlangle e_i,v'rangle e_i$ that is $v'=sum_{i=1}^nvarphi(e_i)e_i=sum_{i=1}^nlambda_ie_i$. Then we can see that, for all $1leqslant i leqslant n-1 $, $langle v_i,v'rangle=varphi(v_i)=det([v_i v_1 dots v_{n-1}])=0$ and $det([v' v_1 dots v_{n-1}])=varphi(v')=Vert v'Vert^2>0$. Finally, we see that $v=frac{v'}{Vert v'Vert}$ is a unit vector orthogonal to the $v_i$'s and $det([v v_1 dots v_{n-1}])=Vert v'Vert>0$.
edited Dec 2 '18 at 22:31
answered Dec 2 '18 at 22:21
acid_adicacid_adic
564
564
add a comment |
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%2f3022765%2ffinding-perpendicular-unit-vector-in-mathbbrn-to-hyperplane%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