Calculating the jacobian matrix for a time-dependent system
$begingroup$
For testing purposes I would like to calculate the Jacobian matrix of the time-dependent heat equation, i.e.
$$partial_tu=nabla^2u+f$$
As far as I understood, the Jacobian can be calculated using
$$F(u)=partial_tu-nabla^2u-f$$
and (with $delta u$ a small step)
$$begin{split}F'(u)(delta u)&=limlimits_{hrightarrow0}frac{F(u+hdelta u)-F(u)}{h}\
&=limlimits_{hrightarrow0}frac{partial_t(u+hdelta u)-nabla^2(u+hdelta u)-f-partial_tu+nabla^2u+f}{h}\
&=limlimits_{hrightarrow0}frac{hpartial_t(delta u)-hnabla^2(delta u)}{h}\
&=partial_t(delta u)-nabla^2(delta u)forall hneq0end{split}$$
That result can be rewritten into
$$F'(u)(delta u)=frac{delta u_1-delta u_0}{dt}-nabla^2(delta u)$$
Is that correct? If yes, what would $delta u_1$ and $delta u_0$ be? Or is there a mistake in the last step?
numerical-methods jacobian
$endgroup$
add a comment |
$begingroup$
For testing purposes I would like to calculate the Jacobian matrix of the time-dependent heat equation, i.e.
$$partial_tu=nabla^2u+f$$
As far as I understood, the Jacobian can be calculated using
$$F(u)=partial_tu-nabla^2u-f$$
and (with $delta u$ a small step)
$$begin{split}F'(u)(delta u)&=limlimits_{hrightarrow0}frac{F(u+hdelta u)-F(u)}{h}\
&=limlimits_{hrightarrow0}frac{partial_t(u+hdelta u)-nabla^2(u+hdelta u)-f-partial_tu+nabla^2u+f}{h}\
&=limlimits_{hrightarrow0}frac{hpartial_t(delta u)-hnabla^2(delta u)}{h}\
&=partial_t(delta u)-nabla^2(delta u)forall hneq0end{split}$$
That result can be rewritten into
$$F'(u)(delta u)=frac{delta u_1-delta u_0}{dt}-nabla^2(delta u)$$
Is that correct? If yes, what would $delta u_1$ and $delta u_0$ be? Or is there a mistake in the last step?
numerical-methods jacobian
$endgroup$
$begingroup$
Why do you have $delta u_0$? The first term should be $partial_t(delta u)$.
$endgroup$
– xpaul
Jan 31 at 17:10
$begingroup$
I intended to use the approximation $partial_tu=frac{u_1-u_0}{dt}$, if that is possible here?
$endgroup$
– arc_lupus
Jan 31 at 17:12
$begingroup$
If you want, you can write it as $frac{partial delta u}{partial t}$. What are meanings of $u_1$ and $u_0$?
$endgroup$
– xpaul
Jan 31 at 17:20
$begingroup$
When comparing it to the usual approach for time-dependent systems, $u_1$ is the new solution, and $u_0$ the old/current solution. But I do not know if that applies here, too.
$endgroup$
– arc_lupus
Jan 31 at 17:23
$begingroup$
What are the old/current solutions? I doubt that they can be used here.
$endgroup$
– xpaul
Jan 31 at 17:33
add a comment |
$begingroup$
For testing purposes I would like to calculate the Jacobian matrix of the time-dependent heat equation, i.e.
$$partial_tu=nabla^2u+f$$
As far as I understood, the Jacobian can be calculated using
$$F(u)=partial_tu-nabla^2u-f$$
and (with $delta u$ a small step)
$$begin{split}F'(u)(delta u)&=limlimits_{hrightarrow0}frac{F(u+hdelta u)-F(u)}{h}\
&=limlimits_{hrightarrow0}frac{partial_t(u+hdelta u)-nabla^2(u+hdelta u)-f-partial_tu+nabla^2u+f}{h}\
&=limlimits_{hrightarrow0}frac{hpartial_t(delta u)-hnabla^2(delta u)}{h}\
&=partial_t(delta u)-nabla^2(delta u)forall hneq0end{split}$$
That result can be rewritten into
$$F'(u)(delta u)=frac{delta u_1-delta u_0}{dt}-nabla^2(delta u)$$
Is that correct? If yes, what would $delta u_1$ and $delta u_0$ be? Or is there a mistake in the last step?
numerical-methods jacobian
$endgroup$
For testing purposes I would like to calculate the Jacobian matrix of the time-dependent heat equation, i.e.
$$partial_tu=nabla^2u+f$$
As far as I understood, the Jacobian can be calculated using
$$F(u)=partial_tu-nabla^2u-f$$
and (with $delta u$ a small step)
$$begin{split}F'(u)(delta u)&=limlimits_{hrightarrow0}frac{F(u+hdelta u)-F(u)}{h}\
&=limlimits_{hrightarrow0}frac{partial_t(u+hdelta u)-nabla^2(u+hdelta u)-f-partial_tu+nabla^2u+f}{h}\
&=limlimits_{hrightarrow0}frac{hpartial_t(delta u)-hnabla^2(delta u)}{h}\
&=partial_t(delta u)-nabla^2(delta u)forall hneq0end{split}$$
That result can be rewritten into
$$F'(u)(delta u)=frac{delta u_1-delta u_0}{dt}-nabla^2(delta u)$$
Is that correct? If yes, what would $delta u_1$ and $delta u_0$ be? Or is there a mistake in the last step?
numerical-methods jacobian
numerical-methods jacobian
asked Jan 31 at 16:55
arc_lupusarc_lupus
232218
232218
$begingroup$
Why do you have $delta u_0$? The first term should be $partial_t(delta u)$.
$endgroup$
– xpaul
Jan 31 at 17:10
$begingroup$
I intended to use the approximation $partial_tu=frac{u_1-u_0}{dt}$, if that is possible here?
$endgroup$
– arc_lupus
Jan 31 at 17:12
$begingroup$
If you want, you can write it as $frac{partial delta u}{partial t}$. What are meanings of $u_1$ and $u_0$?
$endgroup$
– xpaul
Jan 31 at 17:20
$begingroup$
When comparing it to the usual approach for time-dependent systems, $u_1$ is the new solution, and $u_0$ the old/current solution. But I do not know if that applies here, too.
$endgroup$
– arc_lupus
Jan 31 at 17:23
$begingroup$
What are the old/current solutions? I doubt that they can be used here.
$endgroup$
– xpaul
Jan 31 at 17:33
add a comment |
$begingroup$
Why do you have $delta u_0$? The first term should be $partial_t(delta u)$.
$endgroup$
– xpaul
Jan 31 at 17:10
$begingroup$
I intended to use the approximation $partial_tu=frac{u_1-u_0}{dt}$, if that is possible here?
$endgroup$
– arc_lupus
Jan 31 at 17:12
$begingroup$
If you want, you can write it as $frac{partial delta u}{partial t}$. What are meanings of $u_1$ and $u_0$?
$endgroup$
– xpaul
Jan 31 at 17:20
$begingroup$
When comparing it to the usual approach for time-dependent systems, $u_1$ is the new solution, and $u_0$ the old/current solution. But I do not know if that applies here, too.
$endgroup$
– arc_lupus
Jan 31 at 17:23
$begingroup$
What are the old/current solutions? I doubt that they can be used here.
$endgroup$
– xpaul
Jan 31 at 17:33
$begingroup$
Why do you have $delta u_0$? The first term should be $partial_t(delta u)$.
$endgroup$
– xpaul
Jan 31 at 17:10
$begingroup$
Why do you have $delta u_0$? The first term should be $partial_t(delta u)$.
$endgroup$
– xpaul
Jan 31 at 17:10
$begingroup$
I intended to use the approximation $partial_tu=frac{u_1-u_0}{dt}$, if that is possible here?
$endgroup$
– arc_lupus
Jan 31 at 17:12
$begingroup$
I intended to use the approximation $partial_tu=frac{u_1-u_0}{dt}$, if that is possible here?
$endgroup$
– arc_lupus
Jan 31 at 17:12
$begingroup$
If you want, you can write it as $frac{partial delta u}{partial t}$. What are meanings of $u_1$ and $u_0$?
$endgroup$
– xpaul
Jan 31 at 17:20
$begingroup$
If you want, you can write it as $frac{partial delta u}{partial t}$. What are meanings of $u_1$ and $u_0$?
$endgroup$
– xpaul
Jan 31 at 17:20
$begingroup$
When comparing it to the usual approach for time-dependent systems, $u_1$ is the new solution, and $u_0$ the old/current solution. But I do not know if that applies here, too.
$endgroup$
– arc_lupus
Jan 31 at 17:23
$begingroup$
When comparing it to the usual approach for time-dependent systems, $u_1$ is the new solution, and $u_0$ the old/current solution. But I do not know if that applies here, too.
$endgroup$
– arc_lupus
Jan 31 at 17:23
$begingroup$
What are the old/current solutions? I doubt that they can be used here.
$endgroup$
– xpaul
Jan 31 at 17:33
$begingroup$
What are the old/current solutions? I doubt that they can be used here.
$endgroup$
– xpaul
Jan 31 at 17:33
add a comment |
0
active
oldest
votes
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%2f3095143%2fcalculating-the-jacobian-matrix-for-a-time-dependent-system%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f3095143%2fcalculating-the-jacobian-matrix-for-a-time-dependent-system%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
$begingroup$
Why do you have $delta u_0$? The first term should be $partial_t(delta u)$.
$endgroup$
– xpaul
Jan 31 at 17:10
$begingroup$
I intended to use the approximation $partial_tu=frac{u_1-u_0}{dt}$, if that is possible here?
$endgroup$
– arc_lupus
Jan 31 at 17:12
$begingroup$
If you want, you can write it as $frac{partial delta u}{partial t}$. What are meanings of $u_1$ and $u_0$?
$endgroup$
– xpaul
Jan 31 at 17:20
$begingroup$
When comparing it to the usual approach for time-dependent systems, $u_1$ is the new solution, and $u_0$ the old/current solution. But I do not know if that applies here, too.
$endgroup$
– arc_lupus
Jan 31 at 17:23
$begingroup$
What are the old/current solutions? I doubt that they can be used here.
$endgroup$
– xpaul
Jan 31 at 17:33