N dimensional Numeric integral
up vote
0
down vote
favorite
I am trying to evaluate a N dimensional integral in MATLAB, is has a special form as following, does the special form helps me to evaluate my integral faster? simpler?
begin{equation}
int_{-infty}^{infty}... int_{-infty}^{infty} g(boldsymbol{x}) F(boldsymbol{x}) dboldsymbol{x} = int_{-infty}^{infty}... int_{-infty}^{infty} g(||x||^2,sum_{i=1}^N x_i) f(x_1)...f(x_n) dx_1 ...dx_N
end{equation}
where $boldsymbol{x}=[x_1,x_2,...x_N]^T$, and $||.||^2$ is norm of the vector.
integration definite-integrals numerical-methods
add a comment |
up vote
0
down vote
favorite
I am trying to evaluate a N dimensional integral in MATLAB, is has a special form as following, does the special form helps me to evaluate my integral faster? simpler?
begin{equation}
int_{-infty}^{infty}... int_{-infty}^{infty} g(boldsymbol{x}) F(boldsymbol{x}) dboldsymbol{x} = int_{-infty}^{infty}... int_{-infty}^{infty} g(||x||^2,sum_{i=1}^N x_i) f(x_1)...f(x_n) dx_1 ...dx_N
end{equation}
where $boldsymbol{x}=[x_1,x_2,...x_N]^T$, and $||.||^2$ is norm of the vector.
integration definite-integrals numerical-methods
Have you looked into whether the Jacobian of the function $f(x)=(| x |^2,sum_{i=1}^N x_i,x_3,x_4,dots,x_N)$ is too complicated to be practically useful?
– Ian
Nov 23 '16 at 22:46
@lan very very complicated
– Alireza
Nov 23 '16 at 22:51
Is it really though? It's the determinant of a matrix where the first row is $a_{ij}=2x_j$, the second row is $a_{ij}$ all equal to $1$, and the other rows are just diagonal with a diagonal entry of $1$. Is it that hard to get the determinant of such a matrix? It seems to me that you could just cofactor expand across the last row a bunch of times...
– Ian
Nov 24 '16 at 0:56
@lan unfortunately I don't get your point. You are not considering function $g(.)$ which is a function of $||x||^2$ and $sum x_i$ . And I don't get your definition of $f(.)$ !
– Alireza
Nov 24 '16 at 21:37
My preliminary suggestion was to replace two of your variables, one with the sum of the squares and the other with the sum. Then g would only depend on two of your variables, and the rest of the integration would (hopefully) simplify through not depending on those two variables. But I missed that your domain of integration after this substitution would be complicated. So it was a bad idea.
– Ian
Nov 24 '16 at 21:52
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am trying to evaluate a N dimensional integral in MATLAB, is has a special form as following, does the special form helps me to evaluate my integral faster? simpler?
begin{equation}
int_{-infty}^{infty}... int_{-infty}^{infty} g(boldsymbol{x}) F(boldsymbol{x}) dboldsymbol{x} = int_{-infty}^{infty}... int_{-infty}^{infty} g(||x||^2,sum_{i=1}^N x_i) f(x_1)...f(x_n) dx_1 ...dx_N
end{equation}
where $boldsymbol{x}=[x_1,x_2,...x_N]^T$, and $||.||^2$ is norm of the vector.
integration definite-integrals numerical-methods
I am trying to evaluate a N dimensional integral in MATLAB, is has a special form as following, does the special form helps me to evaluate my integral faster? simpler?
begin{equation}
int_{-infty}^{infty}... int_{-infty}^{infty} g(boldsymbol{x}) F(boldsymbol{x}) dboldsymbol{x} = int_{-infty}^{infty}... int_{-infty}^{infty} g(||x||^2,sum_{i=1}^N x_i) f(x_1)...f(x_n) dx_1 ...dx_N
end{equation}
where $boldsymbol{x}=[x_1,x_2,...x_N]^T$, and $||.||^2$ is norm of the vector.
integration definite-integrals numerical-methods
integration definite-integrals numerical-methods
asked Nov 23 '16 at 22:33
Alireza
1939
1939
Have you looked into whether the Jacobian of the function $f(x)=(| x |^2,sum_{i=1}^N x_i,x_3,x_4,dots,x_N)$ is too complicated to be practically useful?
– Ian
Nov 23 '16 at 22:46
@lan very very complicated
– Alireza
Nov 23 '16 at 22:51
Is it really though? It's the determinant of a matrix where the first row is $a_{ij}=2x_j$, the second row is $a_{ij}$ all equal to $1$, and the other rows are just diagonal with a diagonal entry of $1$. Is it that hard to get the determinant of such a matrix? It seems to me that you could just cofactor expand across the last row a bunch of times...
– Ian
Nov 24 '16 at 0:56
@lan unfortunately I don't get your point. You are not considering function $g(.)$ which is a function of $||x||^2$ and $sum x_i$ . And I don't get your definition of $f(.)$ !
– Alireza
Nov 24 '16 at 21:37
My preliminary suggestion was to replace two of your variables, one with the sum of the squares and the other with the sum. Then g would only depend on two of your variables, and the rest of the integration would (hopefully) simplify through not depending on those two variables. But I missed that your domain of integration after this substitution would be complicated. So it was a bad idea.
– Ian
Nov 24 '16 at 21:52
add a comment |
Have you looked into whether the Jacobian of the function $f(x)=(| x |^2,sum_{i=1}^N x_i,x_3,x_4,dots,x_N)$ is too complicated to be practically useful?
– Ian
Nov 23 '16 at 22:46
@lan very very complicated
– Alireza
Nov 23 '16 at 22:51
Is it really though? It's the determinant of a matrix where the first row is $a_{ij}=2x_j$, the second row is $a_{ij}$ all equal to $1$, and the other rows are just diagonal with a diagonal entry of $1$. Is it that hard to get the determinant of such a matrix? It seems to me that you could just cofactor expand across the last row a bunch of times...
– Ian
Nov 24 '16 at 0:56
@lan unfortunately I don't get your point. You are not considering function $g(.)$ which is a function of $||x||^2$ and $sum x_i$ . And I don't get your definition of $f(.)$ !
– Alireza
Nov 24 '16 at 21:37
My preliminary suggestion was to replace two of your variables, one with the sum of the squares and the other with the sum. Then g would only depend on two of your variables, and the rest of the integration would (hopefully) simplify through not depending on those two variables. But I missed that your domain of integration after this substitution would be complicated. So it was a bad idea.
– Ian
Nov 24 '16 at 21:52
Have you looked into whether the Jacobian of the function $f(x)=(| x |^2,sum_{i=1}^N x_i,x_3,x_4,dots,x_N)$ is too complicated to be practically useful?
– Ian
Nov 23 '16 at 22:46
Have you looked into whether the Jacobian of the function $f(x)=(| x |^2,sum_{i=1}^N x_i,x_3,x_4,dots,x_N)$ is too complicated to be practically useful?
– Ian
Nov 23 '16 at 22:46
@lan very very complicated
– Alireza
Nov 23 '16 at 22:51
@lan very very complicated
– Alireza
Nov 23 '16 at 22:51
Is it really though? It's the determinant of a matrix where the first row is $a_{ij}=2x_j$, the second row is $a_{ij}$ all equal to $1$, and the other rows are just diagonal with a diagonal entry of $1$. Is it that hard to get the determinant of such a matrix? It seems to me that you could just cofactor expand across the last row a bunch of times...
– Ian
Nov 24 '16 at 0:56
Is it really though? It's the determinant of a matrix where the first row is $a_{ij}=2x_j$, the second row is $a_{ij}$ all equal to $1$, and the other rows are just diagonal with a diagonal entry of $1$. Is it that hard to get the determinant of such a matrix? It seems to me that you could just cofactor expand across the last row a bunch of times...
– Ian
Nov 24 '16 at 0:56
@lan unfortunately I don't get your point. You are not considering function $g(.)$ which is a function of $||x||^2$ and $sum x_i$ . And I don't get your definition of $f(.)$ !
– Alireza
Nov 24 '16 at 21:37
@lan unfortunately I don't get your point. You are not considering function $g(.)$ which is a function of $||x||^2$ and $sum x_i$ . And I don't get your definition of $f(.)$ !
– Alireza
Nov 24 '16 at 21:37
My preliminary suggestion was to replace two of your variables, one with the sum of the squares and the other with the sum. Then g would only depend on two of your variables, and the rest of the integration would (hopefully) simplify through not depending on those two variables. But I missed that your domain of integration after this substitution would be complicated. So it was a bad idea.
– Ian
Nov 24 '16 at 21:52
My preliminary suggestion was to replace two of your variables, one with the sum of the squares and the other with the sum. Then g would only depend on two of your variables, and the rest of the integration would (hopefully) simplify through not depending on those two variables. But I missed that your domain of integration after this substitution would be complicated. So it was a bad idea.
– Ian
Nov 24 '16 at 21:52
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
Maybe try writing as a Fourier integral:
$$g(||x||^2,sum x)=int dp dq G(p,q)e^{ip||x||^2+iqsum x}$$
then
$$g(||x||^2,sum x)f(x_1)cdots f(x_n)=int dp dqG(p,q)prod_j e^{ip x_j^2+iq x_j}f(x_j)$$
so that if you can evaluate numerically or otherwise
$F(p,q)=int dx e^{ip x^2+iq x}f(x) $
you can write the total integral as
$$int dp dqG(p,q)F(p,q)^N$$
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',
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%2f2028013%2fn-dimensional-numeric-integral%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Maybe try writing as a Fourier integral:
$$g(||x||^2,sum x)=int dp dq G(p,q)e^{ip||x||^2+iqsum x}$$
then
$$g(||x||^2,sum x)f(x_1)cdots f(x_n)=int dp dqG(p,q)prod_j e^{ip x_j^2+iq x_j}f(x_j)$$
so that if you can evaluate numerically or otherwise
$F(p,q)=int dx e^{ip x^2+iq x}f(x) $
you can write the total integral as
$$int dp dqG(p,q)F(p,q)^N$$
add a comment |
up vote
0
down vote
Maybe try writing as a Fourier integral:
$$g(||x||^2,sum x)=int dp dq G(p,q)e^{ip||x||^2+iqsum x}$$
then
$$g(||x||^2,sum x)f(x_1)cdots f(x_n)=int dp dqG(p,q)prod_j e^{ip x_j^2+iq x_j}f(x_j)$$
so that if you can evaluate numerically or otherwise
$F(p,q)=int dx e^{ip x^2+iq x}f(x) $
you can write the total integral as
$$int dp dqG(p,q)F(p,q)^N$$
add a comment |
up vote
0
down vote
up vote
0
down vote
Maybe try writing as a Fourier integral:
$$g(||x||^2,sum x)=int dp dq G(p,q)e^{ip||x||^2+iqsum x}$$
then
$$g(||x||^2,sum x)f(x_1)cdots f(x_n)=int dp dqG(p,q)prod_j e^{ip x_j^2+iq x_j}f(x_j)$$
so that if you can evaluate numerically or otherwise
$F(p,q)=int dx e^{ip x^2+iq x}f(x) $
you can write the total integral as
$$int dp dqG(p,q)F(p,q)^N$$
Maybe try writing as a Fourier integral:
$$g(||x||^2,sum x)=int dp dq G(p,q)e^{ip||x||^2+iqsum x}$$
then
$$g(||x||^2,sum x)f(x_1)cdots f(x_n)=int dp dqG(p,q)prod_j e^{ip x_j^2+iq x_j}f(x_j)$$
so that if you can evaluate numerically or otherwise
$F(p,q)=int dx e^{ip x^2+iq x}f(x) $
you can write the total integral as
$$int dp dqG(p,q)F(p,q)^N$$
answered Nov 22 at 13:42
user617446
261
261
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.
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%2f2028013%2fn-dimensional-numeric-integral%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
Have you looked into whether the Jacobian of the function $f(x)=(| x |^2,sum_{i=1}^N x_i,x_3,x_4,dots,x_N)$ is too complicated to be practically useful?
– Ian
Nov 23 '16 at 22:46
@lan very very complicated
– Alireza
Nov 23 '16 at 22:51
Is it really though? It's the determinant of a matrix where the first row is $a_{ij}=2x_j$, the second row is $a_{ij}$ all equal to $1$, and the other rows are just diagonal with a diagonal entry of $1$. Is it that hard to get the determinant of such a matrix? It seems to me that you could just cofactor expand across the last row a bunch of times...
– Ian
Nov 24 '16 at 0:56
@lan unfortunately I don't get your point. You are not considering function $g(.)$ which is a function of $||x||^2$ and $sum x_i$ . And I don't get your definition of $f(.)$ !
– Alireza
Nov 24 '16 at 21:37
My preliminary suggestion was to replace two of your variables, one with the sum of the squares and the other with the sum. Then g would only depend on two of your variables, and the rest of the integration would (hopefully) simplify through not depending on those two variables. But I missed that your domain of integration after this substitution would be complicated. So it was a bad idea.
– Ian
Nov 24 '16 at 21:52