Trace of a the inverse of a complex matrix
$begingroup$
I require the following
$${rm Tr}({bf H} + omega{bf I})^{-1}$$
where $bf H$ is Hermitian, $omega$ is a complex number with a small imaginary component $(Im omega approx 1times 10^{-5})$ and $bf I$ is the unit matrix. $rm Tr$ indicates a trace is required
Unfortunately these matrices are $45times 45$ and are to be numerically integrated ($bf H$ is a function of two variables) thus I was wondering if there was a cheaper way to obtain the trace, i.e. without needing to do a full inversion.
inverse trace
$endgroup$
add a comment |
$begingroup$
I require the following
$${rm Tr}({bf H} + omega{bf I})^{-1}$$
where $bf H$ is Hermitian, $omega$ is a complex number with a small imaginary component $(Im omega approx 1times 10^{-5})$ and $bf I$ is the unit matrix. $rm Tr$ indicates a trace is required
Unfortunately these matrices are $45times 45$ and are to be numerically integrated ($bf H$ is a function of two variables) thus I was wondering if there was a cheaper way to obtain the trace, i.e. without needing to do a full inversion.
inverse trace
$endgroup$
add a comment |
$begingroup$
I require the following
$${rm Tr}({bf H} + omega{bf I})^{-1}$$
where $bf H$ is Hermitian, $omega$ is a complex number with a small imaginary component $(Im omega approx 1times 10^{-5})$ and $bf I$ is the unit matrix. $rm Tr$ indicates a trace is required
Unfortunately these matrices are $45times 45$ and are to be numerically integrated ($bf H$ is a function of two variables) thus I was wondering if there was a cheaper way to obtain the trace, i.e. without needing to do a full inversion.
inverse trace
$endgroup$
I require the following
$${rm Tr}({bf H} + omega{bf I})^{-1}$$
where $bf H$ is Hermitian, $omega$ is a complex number with a small imaginary component $(Im omega approx 1times 10^{-5})$ and $bf I$ is the unit matrix. $rm Tr$ indicates a trace is required
Unfortunately these matrices are $45times 45$ and are to be numerically integrated ($bf H$ is a function of two variables) thus I was wondering if there was a cheaper way to obtain the trace, i.e. without needing to do a full inversion.
inverse trace
inverse trace
asked Jan 25 at 9:12
AlexDAlexD
32
32
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
Let $n=45$ and let $lambda_1,...., lambda_n$ the (real) eigenvalues of $H$. Since $H$ is diagonalisable, we have
$H=P^{-1}DP$, where $D=diag(lambda_1,...., lambda_n).$
Hence
$H+ omega I=P^{-1}D_{omega}P$, where $D_{omega}=diag(lambda_1+omega,...., lambda_n+omega).$
Therefore $(H+ omega I)^{-1}=P^{-1}D_{omega}^{-1}P$, hence
${rm Tr}((H+ omega I)^{-1})={rm Tr}(D_{omega}^{-1})= sum_{k=1}^nfrac{1}{lambda_k+omega}.$
$endgroup$
$begingroup$
Hi Fred, thanks for your answer, I just wanted to get some clarification: I am using the Tux Eigen package and it quotes that the computational cost to obtain the eigenvalues only, is $4n^3/3$. I can't find information as to the cost of inversion. I believe in this case it would use LU decomposition with partial pivoting. Are you able to indicate a performance gain, in $mathcal{O} (n)$ notation? Many thanks
$endgroup$
– AlexD
Jan 25 at 11:32
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%2f3086903%2ftrace-of-a-the-inverse-of-a-complex-matrix%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
$begingroup$
Let $n=45$ and let $lambda_1,...., lambda_n$ the (real) eigenvalues of $H$. Since $H$ is diagonalisable, we have
$H=P^{-1}DP$, where $D=diag(lambda_1,...., lambda_n).$
Hence
$H+ omega I=P^{-1}D_{omega}P$, where $D_{omega}=diag(lambda_1+omega,...., lambda_n+omega).$
Therefore $(H+ omega I)^{-1}=P^{-1}D_{omega}^{-1}P$, hence
${rm Tr}((H+ omega I)^{-1})={rm Tr}(D_{omega}^{-1})= sum_{k=1}^nfrac{1}{lambda_k+omega}.$
$endgroup$
$begingroup$
Hi Fred, thanks for your answer, I just wanted to get some clarification: I am using the Tux Eigen package and it quotes that the computational cost to obtain the eigenvalues only, is $4n^3/3$. I can't find information as to the cost of inversion. I believe in this case it would use LU decomposition with partial pivoting. Are you able to indicate a performance gain, in $mathcal{O} (n)$ notation? Many thanks
$endgroup$
– AlexD
Jan 25 at 11:32
add a comment |
$begingroup$
Let $n=45$ and let $lambda_1,...., lambda_n$ the (real) eigenvalues of $H$. Since $H$ is diagonalisable, we have
$H=P^{-1}DP$, where $D=diag(lambda_1,...., lambda_n).$
Hence
$H+ omega I=P^{-1}D_{omega}P$, where $D_{omega}=diag(lambda_1+omega,...., lambda_n+omega).$
Therefore $(H+ omega I)^{-1}=P^{-1}D_{omega}^{-1}P$, hence
${rm Tr}((H+ omega I)^{-1})={rm Tr}(D_{omega}^{-1})= sum_{k=1}^nfrac{1}{lambda_k+omega}.$
$endgroup$
$begingroup$
Hi Fred, thanks for your answer, I just wanted to get some clarification: I am using the Tux Eigen package and it quotes that the computational cost to obtain the eigenvalues only, is $4n^3/3$. I can't find information as to the cost of inversion. I believe in this case it would use LU decomposition with partial pivoting. Are you able to indicate a performance gain, in $mathcal{O} (n)$ notation? Many thanks
$endgroup$
– AlexD
Jan 25 at 11:32
add a comment |
$begingroup$
Let $n=45$ and let $lambda_1,...., lambda_n$ the (real) eigenvalues of $H$. Since $H$ is diagonalisable, we have
$H=P^{-1}DP$, where $D=diag(lambda_1,...., lambda_n).$
Hence
$H+ omega I=P^{-1}D_{omega}P$, where $D_{omega}=diag(lambda_1+omega,...., lambda_n+omega).$
Therefore $(H+ omega I)^{-1}=P^{-1}D_{omega}^{-1}P$, hence
${rm Tr}((H+ omega I)^{-1})={rm Tr}(D_{omega}^{-1})= sum_{k=1}^nfrac{1}{lambda_k+omega}.$
$endgroup$
Let $n=45$ and let $lambda_1,...., lambda_n$ the (real) eigenvalues of $H$. Since $H$ is diagonalisable, we have
$H=P^{-1}DP$, where $D=diag(lambda_1,...., lambda_n).$
Hence
$H+ omega I=P^{-1}D_{omega}P$, where $D_{omega}=diag(lambda_1+omega,...., lambda_n+omega).$
Therefore $(H+ omega I)^{-1}=P^{-1}D_{omega}^{-1}P$, hence
${rm Tr}((H+ omega I)^{-1})={rm Tr}(D_{omega}^{-1})= sum_{k=1}^nfrac{1}{lambda_k+omega}.$
answered Jan 25 at 10:12


FredFred
48.5k11849
48.5k11849
$begingroup$
Hi Fred, thanks for your answer, I just wanted to get some clarification: I am using the Tux Eigen package and it quotes that the computational cost to obtain the eigenvalues only, is $4n^3/3$. I can't find information as to the cost of inversion. I believe in this case it would use LU decomposition with partial pivoting. Are you able to indicate a performance gain, in $mathcal{O} (n)$ notation? Many thanks
$endgroup$
– AlexD
Jan 25 at 11:32
add a comment |
$begingroup$
Hi Fred, thanks for your answer, I just wanted to get some clarification: I am using the Tux Eigen package and it quotes that the computational cost to obtain the eigenvalues only, is $4n^3/3$. I can't find information as to the cost of inversion. I believe in this case it would use LU decomposition with partial pivoting. Are you able to indicate a performance gain, in $mathcal{O} (n)$ notation? Many thanks
$endgroup$
– AlexD
Jan 25 at 11:32
$begingroup$
Hi Fred, thanks for your answer, I just wanted to get some clarification: I am using the Tux Eigen package and it quotes that the computational cost to obtain the eigenvalues only, is $4n^3/3$. I can't find information as to the cost of inversion. I believe in this case it would use LU decomposition with partial pivoting. Are you able to indicate a performance gain, in $mathcal{O} (n)$ notation? Many thanks
$endgroup$
– AlexD
Jan 25 at 11:32
$begingroup$
Hi Fred, thanks for your answer, I just wanted to get some clarification: I am using the Tux Eigen package and it quotes that the computational cost to obtain the eigenvalues only, is $4n^3/3$. I can't find information as to the cost of inversion. I believe in this case it would use LU decomposition with partial pivoting. Are you able to indicate a performance gain, in $mathcal{O} (n)$ notation? Many thanks
$endgroup$
– AlexD
Jan 25 at 11:32
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%2f3086903%2ftrace-of-a-the-inverse-of-a-complex-matrix%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