Laplacian of $ nabla^2 f( A x)$ in terms of Laplacian of $ nabla^2_y f( y)$
$begingroup$
How to find the Laplacian
begin{align}
nabla^2_x f( A x)
end{align}
where $n times m$ matrix and we know know the laplacian of
begin{align}
nabla^2_y f( y)
end{align}
This question is about chain rule for the Laplacian.
I search but could not find a formula for it.
I think that the answer is
begin{align}
nabla^2_x f( A x)= {rm Tr}( AA^T ) nabla^2_y f( y) |_{y=Ax}
end{align}
matrix-calculus
$endgroup$
add a comment |
$begingroup$
How to find the Laplacian
begin{align}
nabla^2_x f( A x)
end{align}
where $n times m$ matrix and we know know the laplacian of
begin{align}
nabla^2_y f( y)
end{align}
This question is about chain rule for the Laplacian.
I search but could not find a formula for it.
I think that the answer is
begin{align}
nabla^2_x f( A x)= {rm Tr}( AA^T ) nabla^2_y f( y) |_{y=Ax}
end{align}
matrix-calculus
$endgroup$
add a comment |
$begingroup$
How to find the Laplacian
begin{align}
nabla^2_x f( A x)
end{align}
where $n times m$ matrix and we know know the laplacian of
begin{align}
nabla^2_y f( y)
end{align}
This question is about chain rule for the Laplacian.
I search but could not find a formula for it.
I think that the answer is
begin{align}
nabla^2_x f( A x)= {rm Tr}( AA^T ) nabla^2_y f( y) |_{y=Ax}
end{align}
matrix-calculus
$endgroup$
How to find the Laplacian
begin{align}
nabla^2_x f( A x)
end{align}
where $n times m$ matrix and we know know the laplacian of
begin{align}
nabla^2_y f( y)
end{align}
This question is about chain rule for the Laplacian.
I search but could not find a formula for it.
I think that the answer is
begin{align}
nabla^2_x f( A x)= {rm Tr}( AA^T ) nabla^2_y f( y) |_{y=Ax}
end{align}
matrix-calculus
matrix-calculus
edited Dec 14 '18 at 0:14
Lisa
asked Dec 13 '18 at 23:23
LisaLisa
643313
643313
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
The gradient of the function $f(y)$ is the vector $g$ which satisfies
$$df = g^Tdy$$
and the hessian is the matrix $H$ which satisfies
$$dg = H,dy$$
and the laplacian is the trace of the hessian $,,L={rm Tr}(H)$.
Suppose a new independent vector $x$ is introduced with $,y=Ax$.
It really helps to consider the case where $A$ is rectangular, so that $x$ and $y$ have different dimensions. Then when you start to wonder why $A$ was transposed or why it was pre-multiplied or post-multiplied, you'll see that it's the only way to make the dimensions come out correctly.
To find the gradient and hessian wrt $x$, one wants modifie${rm d^*}$ quantities which satisfy
$$df=g_*^Tdx,,,,,,,dg_*=H_*,dx,,,,,,,L_*={rm Tr}(H_*)$$
Working these out is straightforward
$$eqalign{
df &= g^Tdy = g^TA,dx = (A^Tg)^Tdx = g_*^Tdx cr
g_* &= A^Tg crcr
dg_* &= A^Tdg = A^T(H,(dy)) = A^TH(A,dx) = H_*,dx cr
H_* &= A^THA cr
L_* &= {rm Tr}(A^THA) = {rm Tr}(AA^TH) cr
}$$
The last expression is the laplacian in terms of the new variable.
Unfortunately, knowing the value of ${rm Tr}(H)$ is of no help in evaluating ${rm Tr}(AA^TH)$.
$endgroup$
$begingroup$
Thank you so much. I wanted to an example. Let $f(x)=|x |^2$. I know that $nabla^2 f(x)=2 n$ where $n$ the dimension of $x$. Then $nabla^2 f(A x)= 2n Tr (A A^T )$, right?
$endgroup$
– Lisa
Dec 18 '18 at 15:32
$begingroup$
@Lisa That's not right. Just substitute your sample function in the above formulas and you'll find $$eqalign{ H &=2I &implies L=2,{rm Tr}(I) &= 2n cr H_*&=A^T(2I)A &implies L_*=2,{rm Tr}(A^TA) &= 2|A|^2_F cr }$$
$endgroup$
– greg
Dec 18 '18 at 17:03
$begingroup$
I see now. Thank you.
$endgroup$
– Lisa
Dec 18 '18 at 17:41
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%2f3038729%2flaplacian-of-nabla2-f-a-x-in-terms-of-laplacian-of-nabla2-y-f-y%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$
The gradient of the function $f(y)$ is the vector $g$ which satisfies
$$df = g^Tdy$$
and the hessian is the matrix $H$ which satisfies
$$dg = H,dy$$
and the laplacian is the trace of the hessian $,,L={rm Tr}(H)$.
Suppose a new independent vector $x$ is introduced with $,y=Ax$.
It really helps to consider the case where $A$ is rectangular, so that $x$ and $y$ have different dimensions. Then when you start to wonder why $A$ was transposed or why it was pre-multiplied or post-multiplied, you'll see that it's the only way to make the dimensions come out correctly.
To find the gradient and hessian wrt $x$, one wants modifie${rm d^*}$ quantities which satisfy
$$df=g_*^Tdx,,,,,,,dg_*=H_*,dx,,,,,,,L_*={rm Tr}(H_*)$$
Working these out is straightforward
$$eqalign{
df &= g^Tdy = g^TA,dx = (A^Tg)^Tdx = g_*^Tdx cr
g_* &= A^Tg crcr
dg_* &= A^Tdg = A^T(H,(dy)) = A^TH(A,dx) = H_*,dx cr
H_* &= A^THA cr
L_* &= {rm Tr}(A^THA) = {rm Tr}(AA^TH) cr
}$$
The last expression is the laplacian in terms of the new variable.
Unfortunately, knowing the value of ${rm Tr}(H)$ is of no help in evaluating ${rm Tr}(AA^TH)$.
$endgroup$
$begingroup$
Thank you so much. I wanted to an example. Let $f(x)=|x |^2$. I know that $nabla^2 f(x)=2 n$ where $n$ the dimension of $x$. Then $nabla^2 f(A x)= 2n Tr (A A^T )$, right?
$endgroup$
– Lisa
Dec 18 '18 at 15:32
$begingroup$
@Lisa That's not right. Just substitute your sample function in the above formulas and you'll find $$eqalign{ H &=2I &implies L=2,{rm Tr}(I) &= 2n cr H_*&=A^T(2I)A &implies L_*=2,{rm Tr}(A^TA) &= 2|A|^2_F cr }$$
$endgroup$
– greg
Dec 18 '18 at 17:03
$begingroup$
I see now. Thank you.
$endgroup$
– Lisa
Dec 18 '18 at 17:41
add a comment |
$begingroup$
The gradient of the function $f(y)$ is the vector $g$ which satisfies
$$df = g^Tdy$$
and the hessian is the matrix $H$ which satisfies
$$dg = H,dy$$
and the laplacian is the trace of the hessian $,,L={rm Tr}(H)$.
Suppose a new independent vector $x$ is introduced with $,y=Ax$.
It really helps to consider the case where $A$ is rectangular, so that $x$ and $y$ have different dimensions. Then when you start to wonder why $A$ was transposed or why it was pre-multiplied or post-multiplied, you'll see that it's the only way to make the dimensions come out correctly.
To find the gradient and hessian wrt $x$, one wants modifie${rm d^*}$ quantities which satisfy
$$df=g_*^Tdx,,,,,,,dg_*=H_*,dx,,,,,,,L_*={rm Tr}(H_*)$$
Working these out is straightforward
$$eqalign{
df &= g^Tdy = g^TA,dx = (A^Tg)^Tdx = g_*^Tdx cr
g_* &= A^Tg crcr
dg_* &= A^Tdg = A^T(H,(dy)) = A^TH(A,dx) = H_*,dx cr
H_* &= A^THA cr
L_* &= {rm Tr}(A^THA) = {rm Tr}(AA^TH) cr
}$$
The last expression is the laplacian in terms of the new variable.
Unfortunately, knowing the value of ${rm Tr}(H)$ is of no help in evaluating ${rm Tr}(AA^TH)$.
$endgroup$
$begingroup$
Thank you so much. I wanted to an example. Let $f(x)=|x |^2$. I know that $nabla^2 f(x)=2 n$ where $n$ the dimension of $x$. Then $nabla^2 f(A x)= 2n Tr (A A^T )$, right?
$endgroup$
– Lisa
Dec 18 '18 at 15:32
$begingroup$
@Lisa That's not right. Just substitute your sample function in the above formulas and you'll find $$eqalign{ H &=2I &implies L=2,{rm Tr}(I) &= 2n cr H_*&=A^T(2I)A &implies L_*=2,{rm Tr}(A^TA) &= 2|A|^2_F cr }$$
$endgroup$
– greg
Dec 18 '18 at 17:03
$begingroup$
I see now. Thank you.
$endgroup$
– Lisa
Dec 18 '18 at 17:41
add a comment |
$begingroup$
The gradient of the function $f(y)$ is the vector $g$ which satisfies
$$df = g^Tdy$$
and the hessian is the matrix $H$ which satisfies
$$dg = H,dy$$
and the laplacian is the trace of the hessian $,,L={rm Tr}(H)$.
Suppose a new independent vector $x$ is introduced with $,y=Ax$.
It really helps to consider the case where $A$ is rectangular, so that $x$ and $y$ have different dimensions. Then when you start to wonder why $A$ was transposed or why it was pre-multiplied or post-multiplied, you'll see that it's the only way to make the dimensions come out correctly.
To find the gradient and hessian wrt $x$, one wants modifie${rm d^*}$ quantities which satisfy
$$df=g_*^Tdx,,,,,,,dg_*=H_*,dx,,,,,,,L_*={rm Tr}(H_*)$$
Working these out is straightforward
$$eqalign{
df &= g^Tdy = g^TA,dx = (A^Tg)^Tdx = g_*^Tdx cr
g_* &= A^Tg crcr
dg_* &= A^Tdg = A^T(H,(dy)) = A^TH(A,dx) = H_*,dx cr
H_* &= A^THA cr
L_* &= {rm Tr}(A^THA) = {rm Tr}(AA^TH) cr
}$$
The last expression is the laplacian in terms of the new variable.
Unfortunately, knowing the value of ${rm Tr}(H)$ is of no help in evaluating ${rm Tr}(AA^TH)$.
$endgroup$
The gradient of the function $f(y)$ is the vector $g$ which satisfies
$$df = g^Tdy$$
and the hessian is the matrix $H$ which satisfies
$$dg = H,dy$$
and the laplacian is the trace of the hessian $,,L={rm Tr}(H)$.
Suppose a new independent vector $x$ is introduced with $,y=Ax$.
It really helps to consider the case where $A$ is rectangular, so that $x$ and $y$ have different dimensions. Then when you start to wonder why $A$ was transposed or why it was pre-multiplied or post-multiplied, you'll see that it's the only way to make the dimensions come out correctly.
To find the gradient and hessian wrt $x$, one wants modifie${rm d^*}$ quantities which satisfy
$$df=g_*^Tdx,,,,,,,dg_*=H_*,dx,,,,,,,L_*={rm Tr}(H_*)$$
Working these out is straightforward
$$eqalign{
df &= g^Tdy = g^TA,dx = (A^Tg)^Tdx = g_*^Tdx cr
g_* &= A^Tg crcr
dg_* &= A^Tdg = A^T(H,(dy)) = A^TH(A,dx) = H_*,dx cr
H_* &= A^THA cr
L_* &= {rm Tr}(A^THA) = {rm Tr}(AA^TH) cr
}$$
The last expression is the laplacian in terms of the new variable.
Unfortunately, knowing the value of ${rm Tr}(H)$ is of no help in evaluating ${rm Tr}(AA^TH)$.
edited Dec 14 '18 at 5:31
answered Dec 14 '18 at 2:45
greggreg
7,6201821
7,6201821
$begingroup$
Thank you so much. I wanted to an example. Let $f(x)=|x |^2$. I know that $nabla^2 f(x)=2 n$ where $n$ the dimension of $x$. Then $nabla^2 f(A x)= 2n Tr (A A^T )$, right?
$endgroup$
– Lisa
Dec 18 '18 at 15:32
$begingroup$
@Lisa That's not right. Just substitute your sample function in the above formulas and you'll find $$eqalign{ H &=2I &implies L=2,{rm Tr}(I) &= 2n cr H_*&=A^T(2I)A &implies L_*=2,{rm Tr}(A^TA) &= 2|A|^2_F cr }$$
$endgroup$
– greg
Dec 18 '18 at 17:03
$begingroup$
I see now. Thank you.
$endgroup$
– Lisa
Dec 18 '18 at 17:41
add a comment |
$begingroup$
Thank you so much. I wanted to an example. Let $f(x)=|x |^2$. I know that $nabla^2 f(x)=2 n$ where $n$ the dimension of $x$. Then $nabla^2 f(A x)= 2n Tr (A A^T )$, right?
$endgroup$
– Lisa
Dec 18 '18 at 15:32
$begingroup$
@Lisa That's not right. Just substitute your sample function in the above formulas and you'll find $$eqalign{ H &=2I &implies L=2,{rm Tr}(I) &= 2n cr H_*&=A^T(2I)A &implies L_*=2,{rm Tr}(A^TA) &= 2|A|^2_F cr }$$
$endgroup$
– greg
Dec 18 '18 at 17:03
$begingroup$
I see now. Thank you.
$endgroup$
– Lisa
Dec 18 '18 at 17:41
$begingroup$
Thank you so much. I wanted to an example. Let $f(x)=|x |^2$. I know that $nabla^2 f(x)=2 n$ where $n$ the dimension of $x$. Then $nabla^2 f(A x)= 2n Tr (A A^T )$, right?
$endgroup$
– Lisa
Dec 18 '18 at 15:32
$begingroup$
Thank you so much. I wanted to an example. Let $f(x)=|x |^2$. I know that $nabla^2 f(x)=2 n$ where $n$ the dimension of $x$. Then $nabla^2 f(A x)= 2n Tr (A A^T )$, right?
$endgroup$
– Lisa
Dec 18 '18 at 15:32
$begingroup$
@Lisa That's not right. Just substitute your sample function in the above formulas and you'll find $$eqalign{ H &=2I &implies L=2,{rm Tr}(I) &= 2n cr H_*&=A^T(2I)A &implies L_*=2,{rm Tr}(A^TA) &= 2|A|^2_F cr }$$
$endgroup$
– greg
Dec 18 '18 at 17:03
$begingroup$
@Lisa That's not right. Just substitute your sample function in the above formulas and you'll find $$eqalign{ H &=2I &implies L=2,{rm Tr}(I) &= 2n cr H_*&=A^T(2I)A &implies L_*=2,{rm Tr}(A^TA) &= 2|A|^2_F cr }$$
$endgroup$
– greg
Dec 18 '18 at 17:03
$begingroup$
I see now. Thank you.
$endgroup$
– Lisa
Dec 18 '18 at 17:41
$begingroup$
I see now. Thank you.
$endgroup$
– Lisa
Dec 18 '18 at 17:41
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%2f3038729%2flaplacian-of-nabla2-f-a-x-in-terms-of-laplacian-of-nabla2-y-f-y%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