Taking the derivative of a differential equation The 2019 Stack Overflow Developer Survey...
Multiple regression results help
Can the DM override racial traits?
Format single node in tikzcd
Derivation tree not rendering
Why does the Event Horizon Telescope (EHT) not include telescopes from Africa, Asia or Australia?
The following signatures were invalid: EXPKEYSIG 1397BC53640DB551
Why can't devices on different VLANs, but on the same subnet, communicate?
Can a novice safely splice in wire to lengthen 5V charging cable?
Why did all the guest students take carriages to the Yule Ball?
Does Parliament need to approve the new Brexit delay to 31 October 2019?
Reference for the teaching of not-self
What information about me do stores get via my credit card?
Who or what is the being for whom Being is a question for Heidegger?
Do warforged have souls?
Slither Like a Snake
What LEGO pieces have "real-world" functionality?
Segmentation fault output is suppressed when piping stdin into a function. Why?
What can I do if neighbor is blocking my solar panels intentionally?
Can smartphones with the same camera sensor have different image quality?
Typeface like Times New Roman but with "tied" percent sign
When did F become S in typeography, and why?
Can withdrawing asylum be illegal?
Road tyres vs "Street" tyres for charity ride on MTB Tandem
Does Parliament hold absolute power in the UK?
Taking the derivative of a differential equation
The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Change of variables and the partial derivativeLaplace's Equation for a Radial Function (cylindrical co-ord)Transform the following Differential EquationMass Continuity Equation for Fluid - Running Into a ProblemConfusion on taking the second partial derivative:Taking derivative of energy of wave equationTotal Derivative of Vector Function of TimeReconcile the chain rule with a derivative formulaVerification of the derivative of the form: $frac{partial}{partial v} left[ sum_n left(w^top f(v, x_n) - o_n right)^2 right]$Calculating $u_t$, $u_x$, and $u_{xx}$ for $u(x, t) = -2 dfrac{partial}{partial{x}}log(phi(x,t))$Partial derivative of a function within a function, lambda calculus
$begingroup$
My book jumps from
$$frac{partial f}{partial x}(x, g(x)) + frac{partial f}{partial y}(x, g(x))g'(x) = 0 $$
to
$$frac{partial^2 f}{partial x^2}(x, g(x)) + 2 cdot frac{partial f}{partial x partial y} (x, g(x))g'(x) + frac{partial^2 f}{partial y^2}(x, g(x))(g'(x))^2 + frac{partial f}{partial y}(x, g(x))g''(x) = 0.$$
It is left as an exercise to verify that this new equality can be obtained by differentiating both sides of the first equation. I've been trying to do this, but I haven't been able to get to the desired result. I'm sort of new to partial derivatives, and I would really appreciate it if someone can show me the steps that are taken when differentiating the first equation. I'm pretty sure my setup itself is wrong.
I've looked at many examples now, but I still haven't been able to get anywhere, since they are not too similar to what I have
I would really appreciate any help.
Thanks
My try:
$$frac{partial}{partial x}left(frac{partial f}{partial x}(x, g(x)) + frac{partial f}{partial y}(x, g(x))g'(x)right) $$
$$= underbrace{frac{partial}{partial x}left(frac{partial f}{partial x}(x,g(x)) right)}_{text{Term 1}} + underbrace{frac{partial}{partial x}left(frac{partial f}{partial y}(x, g(x))g'(x)right)}_{text{Term 2}}$$
Now computing Term 1:
$$frac{partial}{partial x}left(frac{partial f}{partial x}(x,g(x)) right) = frac{partial^{2}f}{partial x^{2}}(x, g(x)) cdot text{ some chain rule term} $$
What would the chain rule term be? I know in single-variable calculus, if you're doing the derivative of $f(g(x))$, then you need to multiply by $g'(x)$. But here, there are two variables.
multivariable-calculus derivatives partial-derivative
New contributor
$endgroup$
add a comment |
$begingroup$
My book jumps from
$$frac{partial f}{partial x}(x, g(x)) + frac{partial f}{partial y}(x, g(x))g'(x) = 0 $$
to
$$frac{partial^2 f}{partial x^2}(x, g(x)) + 2 cdot frac{partial f}{partial x partial y} (x, g(x))g'(x) + frac{partial^2 f}{partial y^2}(x, g(x))(g'(x))^2 + frac{partial f}{partial y}(x, g(x))g''(x) = 0.$$
It is left as an exercise to verify that this new equality can be obtained by differentiating both sides of the first equation. I've been trying to do this, but I haven't been able to get to the desired result. I'm sort of new to partial derivatives, and I would really appreciate it if someone can show me the steps that are taken when differentiating the first equation. I'm pretty sure my setup itself is wrong.
I've looked at many examples now, but I still haven't been able to get anywhere, since they are not too similar to what I have
I would really appreciate any help.
Thanks
My try:
$$frac{partial}{partial x}left(frac{partial f}{partial x}(x, g(x)) + frac{partial f}{partial y}(x, g(x))g'(x)right) $$
$$= underbrace{frac{partial}{partial x}left(frac{partial f}{partial x}(x,g(x)) right)}_{text{Term 1}} + underbrace{frac{partial}{partial x}left(frac{partial f}{partial y}(x, g(x))g'(x)right)}_{text{Term 2}}$$
Now computing Term 1:
$$frac{partial}{partial x}left(frac{partial f}{partial x}(x,g(x)) right) = frac{partial^{2}f}{partial x^{2}}(x, g(x)) cdot text{ some chain rule term} $$
What would the chain rule term be? I know in single-variable calculus, if you're doing the derivative of $f(g(x))$, then you need to multiply by $g'(x)$. But here, there are two variables.
multivariable-calculus derivatives partial-derivative
New contributor
$endgroup$
4
$begingroup$
See! Giving the attempt now allows people to tell you what you did wrong, rather than giving a correct answer which would still leave questions about your working. It was a good decision to include the working, and I have up voted in this regard.
$endgroup$
– астон вілла олоф мэллбэрг
yesterday
$begingroup$
My answer here answers your question. The notation is heavy, but it is proper.
$endgroup$
– Git Gud
yesterday
$begingroup$
I'm still not really getting anywhere. I think it is hard to understand because of the notation. Working backwards, I can guess that the chain rule term for Term 1 is going to be $1$. But I don't know how to do it properly.
$endgroup$
– gallileo22
yesterday
$begingroup$
Yes, it's not easy when one's is not used to it. But it gets much easier after you get over the initial learning curve. I tried to give some guidance below.
$endgroup$
– Git Gud
yesterday
$begingroup$
Sorry, I had a few typos from too much copy and pasting. All good now.
$endgroup$
– Git Gud
yesterday
add a comment |
$begingroup$
My book jumps from
$$frac{partial f}{partial x}(x, g(x)) + frac{partial f}{partial y}(x, g(x))g'(x) = 0 $$
to
$$frac{partial^2 f}{partial x^2}(x, g(x)) + 2 cdot frac{partial f}{partial x partial y} (x, g(x))g'(x) + frac{partial^2 f}{partial y^2}(x, g(x))(g'(x))^2 + frac{partial f}{partial y}(x, g(x))g''(x) = 0.$$
It is left as an exercise to verify that this new equality can be obtained by differentiating both sides of the first equation. I've been trying to do this, but I haven't been able to get to the desired result. I'm sort of new to partial derivatives, and I would really appreciate it if someone can show me the steps that are taken when differentiating the first equation. I'm pretty sure my setup itself is wrong.
I've looked at many examples now, but I still haven't been able to get anywhere, since they are not too similar to what I have
I would really appreciate any help.
Thanks
My try:
$$frac{partial}{partial x}left(frac{partial f}{partial x}(x, g(x)) + frac{partial f}{partial y}(x, g(x))g'(x)right) $$
$$= underbrace{frac{partial}{partial x}left(frac{partial f}{partial x}(x,g(x)) right)}_{text{Term 1}} + underbrace{frac{partial}{partial x}left(frac{partial f}{partial y}(x, g(x))g'(x)right)}_{text{Term 2}}$$
Now computing Term 1:
$$frac{partial}{partial x}left(frac{partial f}{partial x}(x,g(x)) right) = frac{partial^{2}f}{partial x^{2}}(x, g(x)) cdot text{ some chain rule term} $$
What would the chain rule term be? I know in single-variable calculus, if you're doing the derivative of $f(g(x))$, then you need to multiply by $g'(x)$. But here, there are two variables.
multivariable-calculus derivatives partial-derivative
New contributor
$endgroup$
My book jumps from
$$frac{partial f}{partial x}(x, g(x)) + frac{partial f}{partial y}(x, g(x))g'(x) = 0 $$
to
$$frac{partial^2 f}{partial x^2}(x, g(x)) + 2 cdot frac{partial f}{partial x partial y} (x, g(x))g'(x) + frac{partial^2 f}{partial y^2}(x, g(x))(g'(x))^2 + frac{partial f}{partial y}(x, g(x))g''(x) = 0.$$
It is left as an exercise to verify that this new equality can be obtained by differentiating both sides of the first equation. I've been trying to do this, but I haven't been able to get to the desired result. I'm sort of new to partial derivatives, and I would really appreciate it if someone can show me the steps that are taken when differentiating the first equation. I'm pretty sure my setup itself is wrong.
I've looked at many examples now, but I still haven't been able to get anywhere, since they are not too similar to what I have
I would really appreciate any help.
Thanks
My try:
$$frac{partial}{partial x}left(frac{partial f}{partial x}(x, g(x)) + frac{partial f}{partial y}(x, g(x))g'(x)right) $$
$$= underbrace{frac{partial}{partial x}left(frac{partial f}{partial x}(x,g(x)) right)}_{text{Term 1}} + underbrace{frac{partial}{partial x}left(frac{partial f}{partial y}(x, g(x))g'(x)right)}_{text{Term 2}}$$
Now computing Term 1:
$$frac{partial}{partial x}left(frac{partial f}{partial x}(x,g(x)) right) = frac{partial^{2}f}{partial x^{2}}(x, g(x)) cdot text{ some chain rule term} $$
What would the chain rule term be? I know in single-variable calculus, if you're doing the derivative of $f(g(x))$, then you need to multiply by $g'(x)$. But here, there are two variables.
multivariable-calculus derivatives partial-derivative
multivariable-calculus derivatives partial-derivative
New contributor
New contributor
edited yesterday
Git Gud
28.9k1050101
28.9k1050101
New contributor
asked yesterday
gallileo22gallileo22
1685
1685
New contributor
New contributor
4
$begingroup$
See! Giving the attempt now allows people to tell you what you did wrong, rather than giving a correct answer which would still leave questions about your working. It was a good decision to include the working, and I have up voted in this regard.
$endgroup$
– астон вілла олоф мэллбэрг
yesterday
$begingroup$
My answer here answers your question. The notation is heavy, but it is proper.
$endgroup$
– Git Gud
yesterday
$begingroup$
I'm still not really getting anywhere. I think it is hard to understand because of the notation. Working backwards, I can guess that the chain rule term for Term 1 is going to be $1$. But I don't know how to do it properly.
$endgroup$
– gallileo22
yesterday
$begingroup$
Yes, it's not easy when one's is not used to it. But it gets much easier after you get over the initial learning curve. I tried to give some guidance below.
$endgroup$
– Git Gud
yesterday
$begingroup$
Sorry, I had a few typos from too much copy and pasting. All good now.
$endgroup$
– Git Gud
yesterday
add a comment |
4
$begingroup$
See! Giving the attempt now allows people to tell you what you did wrong, rather than giving a correct answer which would still leave questions about your working. It was a good decision to include the working, and I have up voted in this regard.
$endgroup$
– астон вілла олоф мэллбэрг
yesterday
$begingroup$
My answer here answers your question. The notation is heavy, but it is proper.
$endgroup$
– Git Gud
yesterday
$begingroup$
I'm still not really getting anywhere. I think it is hard to understand because of the notation. Working backwards, I can guess that the chain rule term for Term 1 is going to be $1$. But I don't know how to do it properly.
$endgroup$
– gallileo22
yesterday
$begingroup$
Yes, it's not easy when one's is not used to it. But it gets much easier after you get over the initial learning curve. I tried to give some guidance below.
$endgroup$
– Git Gud
yesterday
$begingroup$
Sorry, I had a few typos from too much copy and pasting. All good now.
$endgroup$
– Git Gud
yesterday
4
4
$begingroup$
See! Giving the attempt now allows people to tell you what you did wrong, rather than giving a correct answer which would still leave questions about your working. It was a good decision to include the working, and I have up voted in this regard.
$endgroup$
– астон вілла олоф мэллбэрг
yesterday
$begingroup$
See! Giving the attempt now allows people to tell you what you did wrong, rather than giving a correct answer which would still leave questions about your working. It was a good decision to include the working, and I have up voted in this regard.
$endgroup$
– астон вілла олоф мэллбэрг
yesterday
$begingroup$
My answer here answers your question. The notation is heavy, but it is proper.
$endgroup$
– Git Gud
yesterday
$begingroup$
My answer here answers your question. The notation is heavy, but it is proper.
$endgroup$
– Git Gud
yesterday
$begingroup$
I'm still not really getting anywhere. I think it is hard to understand because of the notation. Working backwards, I can guess that the chain rule term for Term 1 is going to be $1$. But I don't know how to do it properly.
$endgroup$
– gallileo22
yesterday
$begingroup$
I'm still not really getting anywhere. I think it is hard to understand because of the notation. Working backwards, I can guess that the chain rule term for Term 1 is going to be $1$. But I don't know how to do it properly.
$endgroup$
– gallileo22
yesterday
$begingroup$
Yes, it's not easy when one's is not used to it. But it gets much easier after you get over the initial learning curve. I tried to give some guidance below.
$endgroup$
– Git Gud
yesterday
$begingroup$
Yes, it's not easy when one's is not used to it. But it gets much easier after you get over the initial learning curve. I tried to give some guidance below.
$endgroup$
– Git Gud
yesterday
$begingroup$
Sorry, I had a few typos from too much copy and pasting. All good now.
$endgroup$
– Git Gud
yesterday
$begingroup$
Sorry, I had a few typos from too much copy and pasting. All good now.
$endgroup$
– Git Gud
yesterday
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
You're presumably given a function $f$ whose domain is a subset of $mathbb R^2$. Since this isn't specified, I'll take the simpler approach and assume the domain is $mathbb R^2$. This allow us to write $fcolon mathbb R^2 to mathbb R$.
Also presumably, you're given a differential function $gcolon mathbb Rto mathbb R$.
Now let's define $varphi$ as $varphi colon mathbb Rto mathbb R^2, xmapsto (x, g(x))$.
You want to differentiate the function given below (with the appropriate implicit domain)
$$
xmapsto frac{partial f}{partial x}(x, g(x)) + frac{partial f}{partial y}(x, g(x))g'(x)
$$
This can be rewritten as
$$
xmapsto left(frac{partial f}{partial x}circvarphiright)(x) + left(frac{partial f}{partial y}circvarphiright)(x)cdot g'(x)
$$
Since the derivative of a sum is the sum of the derivatives (when they all exist), we can focus on each member of this sum separately.
We want to differentiate $color{blue}{xmapsto left(dfrac{partial f}{partial x}circvarphiright)(x)}$. Now allow me to change the notation $dfrac{partial f}{partial x}$ to $partial_1f$. They denote the same thing: the derivative with respect to the first coordinate.
In the notation of this answer we have $m=2$, $n=1=p$, $G=partial_1f$, $F=varphi$, (now because the choice of letters in both questions gets confusing, I'll use $varphi_1$ and $varphi_2$ (in place of $f_1$ and $f_2$ used in the linked answer), $varphi_1colon mathbb Rto mathbb R, xmapsto x$ and $varphi_2colon mathbb Rto mathbb R, xmapsto g(x)$. Now set $H=Gcirc F$.
We have that $color{blue}{H}$ is $color{blue}{left(partial_1fright)circ varphi}$ and this is what we wish to differentiate, in other words we wish to find $H'$. Since $H$ is a scalar function whose domain is $mathbb R$, its components are just a singular $h_1$ in the notation of the linked answer, which yields:
$$
begin{align}
overbrace{
begin{bmatrix}
partial _1h_1
end{bmatrix}_{x}
}^{H'(x)}
&=
begin{bmatrix}
partial_1left(partial_1fright) & partial_2left(partial_1fright)
end{bmatrix}_{varphi(x,y)}
overbrace{begin{bmatrix}
partial _1varphi_1\
partial_1varphi_2
end{bmatrix}_{x}}^{begin{bmatrix}
varphi_1'\
varphi_2'
end{bmatrix}_{x}}\
&=
begin{bmatrix}
left(partial _1left(partial_1fright)right)(x,g(x)) & left(partial_2left(partial_1fright)right)(x, g(x))
end{bmatrix}
begin{bmatrix}
1\
g'(x)
end{bmatrix}\
&=
begin{bmatrix}
left(partial _1left(partial_1fright)right)(x,g(x)) + left(partial_2left(partial_1fright)right)(x, g(x))cdot g'(x)
end{bmatrix}_.
end{align}
$$
The last term above can be translated back to
$$
dfrac{partial^2f}{partial x^2}(x,g(x)) + dfrac{partial^2f}{partial ypartial x}(x, g(x))cdot g'(x)
$$
It is similar for $dfrac{partial f}{partial y}circvarphi$.
$endgroup$
add a comment |
$begingroup$
Hint: The notation can be a bit confusing here. $f$ is a function of two variables. A derivative with respect to the first variable is denoted by $frac{partial f}{partial x}$, a derivative with respect to the second variable is denoted by $frac{partial f}{partial y}$. If instead you denote them by $frac{partial f}{partial x_1}$ and $frac{partial f}{partial x_2}$ it might be a bit clearer. At the same time you plug in the function $x$ into the first variable and the function $g(x)$ into the second variable. You are differentiating with respect to $x$ and need to apply the chain rule.
Edit: I will write out what happens in the first term with the renaming of variables. We want to compute: $$frac{partial}{partial x}left(frac{partial f}{partial x_1}(x, g(x))right)$$
So we have
$$frac{partial}{partial x}left(frac{partial f}{partial x_1}(x, g(x))right)=frac{partial }{partial x_1}frac{partial f}{partial x_1}(x, g(x)) cdot frac{partial }{partial x}(x) + frac{partial }{partial x_2}frac{partial f}{partial x_1}(x, g(x)) cdot frac{partial }{partial x}g(x)$$
Simplify a bit:
$$frac{partial}{partial x}left(frac{partial f}{partial x_1}(x, g(x))right)=frac{partial^2 f}{partial^2 x_1}(x, g(x)) + frac{partial^2 f}{partial x_2partial x_1}(x, g(x)) cdot g'(x)$$
The second term is almost the same, you just have an extra factor of $g(x)$ that requires the product rule.
$endgroup$
$begingroup$
Thanks. Let me update my post with my attempt and show you where I am getting stuck
$endgroup$
– gallileo22
yesterday
$begingroup$
Please see my update
$endgroup$
– gallileo22
yesterday
$begingroup$
What quarague alludes to is one of the reasons why I much prefer the notation $partial_1$, $partial_2$, etc. Less to write, more universally applicable (as it is independent of symbols used in the definitions of the functions, as it should be), and doesn't rest on useless confusing concepts like that of "function of $x$", as if $x$ weren't a bound variable.
$endgroup$
– Git Gud
yesterday
$begingroup$
So here, $x_{2} = y$?
$endgroup$
– gallileo22
yesterday
$begingroup$
@gallileo22 Yes: $x_1$ is being used in place of $x$ and $x_2$ is being used in place of $y$.
$endgroup$
– Git Gud
yesterday
add a comment |
Your Answer
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
});
}
});
gallileo22 is a new contributor. Be nice, and check out our Code of Conduct.
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%2f3184764%2ftaking-the-derivative-of-a-differential-equation%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$
You're presumably given a function $f$ whose domain is a subset of $mathbb R^2$. Since this isn't specified, I'll take the simpler approach and assume the domain is $mathbb R^2$. This allow us to write $fcolon mathbb R^2 to mathbb R$.
Also presumably, you're given a differential function $gcolon mathbb Rto mathbb R$.
Now let's define $varphi$ as $varphi colon mathbb Rto mathbb R^2, xmapsto (x, g(x))$.
You want to differentiate the function given below (with the appropriate implicit domain)
$$
xmapsto frac{partial f}{partial x}(x, g(x)) + frac{partial f}{partial y}(x, g(x))g'(x)
$$
This can be rewritten as
$$
xmapsto left(frac{partial f}{partial x}circvarphiright)(x) + left(frac{partial f}{partial y}circvarphiright)(x)cdot g'(x)
$$
Since the derivative of a sum is the sum of the derivatives (when they all exist), we can focus on each member of this sum separately.
We want to differentiate $color{blue}{xmapsto left(dfrac{partial f}{partial x}circvarphiright)(x)}$. Now allow me to change the notation $dfrac{partial f}{partial x}$ to $partial_1f$. They denote the same thing: the derivative with respect to the first coordinate.
In the notation of this answer we have $m=2$, $n=1=p$, $G=partial_1f$, $F=varphi$, (now because the choice of letters in both questions gets confusing, I'll use $varphi_1$ and $varphi_2$ (in place of $f_1$ and $f_2$ used in the linked answer), $varphi_1colon mathbb Rto mathbb R, xmapsto x$ and $varphi_2colon mathbb Rto mathbb R, xmapsto g(x)$. Now set $H=Gcirc F$.
We have that $color{blue}{H}$ is $color{blue}{left(partial_1fright)circ varphi}$ and this is what we wish to differentiate, in other words we wish to find $H'$. Since $H$ is a scalar function whose domain is $mathbb R$, its components are just a singular $h_1$ in the notation of the linked answer, which yields:
$$
begin{align}
overbrace{
begin{bmatrix}
partial _1h_1
end{bmatrix}_{x}
}^{H'(x)}
&=
begin{bmatrix}
partial_1left(partial_1fright) & partial_2left(partial_1fright)
end{bmatrix}_{varphi(x,y)}
overbrace{begin{bmatrix}
partial _1varphi_1\
partial_1varphi_2
end{bmatrix}_{x}}^{begin{bmatrix}
varphi_1'\
varphi_2'
end{bmatrix}_{x}}\
&=
begin{bmatrix}
left(partial _1left(partial_1fright)right)(x,g(x)) & left(partial_2left(partial_1fright)right)(x, g(x))
end{bmatrix}
begin{bmatrix}
1\
g'(x)
end{bmatrix}\
&=
begin{bmatrix}
left(partial _1left(partial_1fright)right)(x,g(x)) + left(partial_2left(partial_1fright)right)(x, g(x))cdot g'(x)
end{bmatrix}_.
end{align}
$$
The last term above can be translated back to
$$
dfrac{partial^2f}{partial x^2}(x,g(x)) + dfrac{partial^2f}{partial ypartial x}(x, g(x))cdot g'(x)
$$
It is similar for $dfrac{partial f}{partial y}circvarphi$.
$endgroup$
add a comment |
$begingroup$
You're presumably given a function $f$ whose domain is a subset of $mathbb R^2$. Since this isn't specified, I'll take the simpler approach and assume the domain is $mathbb R^2$. This allow us to write $fcolon mathbb R^2 to mathbb R$.
Also presumably, you're given a differential function $gcolon mathbb Rto mathbb R$.
Now let's define $varphi$ as $varphi colon mathbb Rto mathbb R^2, xmapsto (x, g(x))$.
You want to differentiate the function given below (with the appropriate implicit domain)
$$
xmapsto frac{partial f}{partial x}(x, g(x)) + frac{partial f}{partial y}(x, g(x))g'(x)
$$
This can be rewritten as
$$
xmapsto left(frac{partial f}{partial x}circvarphiright)(x) + left(frac{partial f}{partial y}circvarphiright)(x)cdot g'(x)
$$
Since the derivative of a sum is the sum of the derivatives (when they all exist), we can focus on each member of this sum separately.
We want to differentiate $color{blue}{xmapsto left(dfrac{partial f}{partial x}circvarphiright)(x)}$. Now allow me to change the notation $dfrac{partial f}{partial x}$ to $partial_1f$. They denote the same thing: the derivative with respect to the first coordinate.
In the notation of this answer we have $m=2$, $n=1=p$, $G=partial_1f$, $F=varphi$, (now because the choice of letters in both questions gets confusing, I'll use $varphi_1$ and $varphi_2$ (in place of $f_1$ and $f_2$ used in the linked answer), $varphi_1colon mathbb Rto mathbb R, xmapsto x$ and $varphi_2colon mathbb Rto mathbb R, xmapsto g(x)$. Now set $H=Gcirc F$.
We have that $color{blue}{H}$ is $color{blue}{left(partial_1fright)circ varphi}$ and this is what we wish to differentiate, in other words we wish to find $H'$. Since $H$ is a scalar function whose domain is $mathbb R$, its components are just a singular $h_1$ in the notation of the linked answer, which yields:
$$
begin{align}
overbrace{
begin{bmatrix}
partial _1h_1
end{bmatrix}_{x}
}^{H'(x)}
&=
begin{bmatrix}
partial_1left(partial_1fright) & partial_2left(partial_1fright)
end{bmatrix}_{varphi(x,y)}
overbrace{begin{bmatrix}
partial _1varphi_1\
partial_1varphi_2
end{bmatrix}_{x}}^{begin{bmatrix}
varphi_1'\
varphi_2'
end{bmatrix}_{x}}\
&=
begin{bmatrix}
left(partial _1left(partial_1fright)right)(x,g(x)) & left(partial_2left(partial_1fright)right)(x, g(x))
end{bmatrix}
begin{bmatrix}
1\
g'(x)
end{bmatrix}\
&=
begin{bmatrix}
left(partial _1left(partial_1fright)right)(x,g(x)) + left(partial_2left(partial_1fright)right)(x, g(x))cdot g'(x)
end{bmatrix}_.
end{align}
$$
The last term above can be translated back to
$$
dfrac{partial^2f}{partial x^2}(x,g(x)) + dfrac{partial^2f}{partial ypartial x}(x, g(x))cdot g'(x)
$$
It is similar for $dfrac{partial f}{partial y}circvarphi$.
$endgroup$
add a comment |
$begingroup$
You're presumably given a function $f$ whose domain is a subset of $mathbb R^2$. Since this isn't specified, I'll take the simpler approach and assume the domain is $mathbb R^2$. This allow us to write $fcolon mathbb R^2 to mathbb R$.
Also presumably, you're given a differential function $gcolon mathbb Rto mathbb R$.
Now let's define $varphi$ as $varphi colon mathbb Rto mathbb R^2, xmapsto (x, g(x))$.
You want to differentiate the function given below (with the appropriate implicit domain)
$$
xmapsto frac{partial f}{partial x}(x, g(x)) + frac{partial f}{partial y}(x, g(x))g'(x)
$$
This can be rewritten as
$$
xmapsto left(frac{partial f}{partial x}circvarphiright)(x) + left(frac{partial f}{partial y}circvarphiright)(x)cdot g'(x)
$$
Since the derivative of a sum is the sum of the derivatives (when they all exist), we can focus on each member of this sum separately.
We want to differentiate $color{blue}{xmapsto left(dfrac{partial f}{partial x}circvarphiright)(x)}$. Now allow me to change the notation $dfrac{partial f}{partial x}$ to $partial_1f$. They denote the same thing: the derivative with respect to the first coordinate.
In the notation of this answer we have $m=2$, $n=1=p$, $G=partial_1f$, $F=varphi$, (now because the choice of letters in both questions gets confusing, I'll use $varphi_1$ and $varphi_2$ (in place of $f_1$ and $f_2$ used in the linked answer), $varphi_1colon mathbb Rto mathbb R, xmapsto x$ and $varphi_2colon mathbb Rto mathbb R, xmapsto g(x)$. Now set $H=Gcirc F$.
We have that $color{blue}{H}$ is $color{blue}{left(partial_1fright)circ varphi}$ and this is what we wish to differentiate, in other words we wish to find $H'$. Since $H$ is a scalar function whose domain is $mathbb R$, its components are just a singular $h_1$ in the notation of the linked answer, which yields:
$$
begin{align}
overbrace{
begin{bmatrix}
partial _1h_1
end{bmatrix}_{x}
}^{H'(x)}
&=
begin{bmatrix}
partial_1left(partial_1fright) & partial_2left(partial_1fright)
end{bmatrix}_{varphi(x,y)}
overbrace{begin{bmatrix}
partial _1varphi_1\
partial_1varphi_2
end{bmatrix}_{x}}^{begin{bmatrix}
varphi_1'\
varphi_2'
end{bmatrix}_{x}}\
&=
begin{bmatrix}
left(partial _1left(partial_1fright)right)(x,g(x)) & left(partial_2left(partial_1fright)right)(x, g(x))
end{bmatrix}
begin{bmatrix}
1\
g'(x)
end{bmatrix}\
&=
begin{bmatrix}
left(partial _1left(partial_1fright)right)(x,g(x)) + left(partial_2left(partial_1fright)right)(x, g(x))cdot g'(x)
end{bmatrix}_.
end{align}
$$
The last term above can be translated back to
$$
dfrac{partial^2f}{partial x^2}(x,g(x)) + dfrac{partial^2f}{partial ypartial x}(x, g(x))cdot g'(x)
$$
It is similar for $dfrac{partial f}{partial y}circvarphi$.
$endgroup$
You're presumably given a function $f$ whose domain is a subset of $mathbb R^2$. Since this isn't specified, I'll take the simpler approach and assume the domain is $mathbb R^2$. This allow us to write $fcolon mathbb R^2 to mathbb R$.
Also presumably, you're given a differential function $gcolon mathbb Rto mathbb R$.
Now let's define $varphi$ as $varphi colon mathbb Rto mathbb R^2, xmapsto (x, g(x))$.
You want to differentiate the function given below (with the appropriate implicit domain)
$$
xmapsto frac{partial f}{partial x}(x, g(x)) + frac{partial f}{partial y}(x, g(x))g'(x)
$$
This can be rewritten as
$$
xmapsto left(frac{partial f}{partial x}circvarphiright)(x) + left(frac{partial f}{partial y}circvarphiright)(x)cdot g'(x)
$$
Since the derivative of a sum is the sum of the derivatives (when they all exist), we can focus on each member of this sum separately.
We want to differentiate $color{blue}{xmapsto left(dfrac{partial f}{partial x}circvarphiright)(x)}$. Now allow me to change the notation $dfrac{partial f}{partial x}$ to $partial_1f$. They denote the same thing: the derivative with respect to the first coordinate.
In the notation of this answer we have $m=2$, $n=1=p$, $G=partial_1f$, $F=varphi$, (now because the choice of letters in both questions gets confusing, I'll use $varphi_1$ and $varphi_2$ (in place of $f_1$ and $f_2$ used in the linked answer), $varphi_1colon mathbb Rto mathbb R, xmapsto x$ and $varphi_2colon mathbb Rto mathbb R, xmapsto g(x)$. Now set $H=Gcirc F$.
We have that $color{blue}{H}$ is $color{blue}{left(partial_1fright)circ varphi}$ and this is what we wish to differentiate, in other words we wish to find $H'$. Since $H$ is a scalar function whose domain is $mathbb R$, its components are just a singular $h_1$ in the notation of the linked answer, which yields:
$$
begin{align}
overbrace{
begin{bmatrix}
partial _1h_1
end{bmatrix}_{x}
}^{H'(x)}
&=
begin{bmatrix}
partial_1left(partial_1fright) & partial_2left(partial_1fright)
end{bmatrix}_{varphi(x,y)}
overbrace{begin{bmatrix}
partial _1varphi_1\
partial_1varphi_2
end{bmatrix}_{x}}^{begin{bmatrix}
varphi_1'\
varphi_2'
end{bmatrix}_{x}}\
&=
begin{bmatrix}
left(partial _1left(partial_1fright)right)(x,g(x)) & left(partial_2left(partial_1fright)right)(x, g(x))
end{bmatrix}
begin{bmatrix}
1\
g'(x)
end{bmatrix}\
&=
begin{bmatrix}
left(partial _1left(partial_1fright)right)(x,g(x)) + left(partial_2left(partial_1fright)right)(x, g(x))cdot g'(x)
end{bmatrix}_.
end{align}
$$
The last term above can be translated back to
$$
dfrac{partial^2f}{partial x^2}(x,g(x)) + dfrac{partial^2f}{partial ypartial x}(x, g(x))cdot g'(x)
$$
It is similar for $dfrac{partial f}{partial y}circvarphi$.
edited yesterday
answered yesterday
Git GudGit Gud
28.9k1050101
28.9k1050101
add a comment |
add a comment |
$begingroup$
Hint: The notation can be a bit confusing here. $f$ is a function of two variables. A derivative with respect to the first variable is denoted by $frac{partial f}{partial x}$, a derivative with respect to the second variable is denoted by $frac{partial f}{partial y}$. If instead you denote them by $frac{partial f}{partial x_1}$ and $frac{partial f}{partial x_2}$ it might be a bit clearer. At the same time you plug in the function $x$ into the first variable and the function $g(x)$ into the second variable. You are differentiating with respect to $x$ and need to apply the chain rule.
Edit: I will write out what happens in the first term with the renaming of variables. We want to compute: $$frac{partial}{partial x}left(frac{partial f}{partial x_1}(x, g(x))right)$$
So we have
$$frac{partial}{partial x}left(frac{partial f}{partial x_1}(x, g(x))right)=frac{partial }{partial x_1}frac{partial f}{partial x_1}(x, g(x)) cdot frac{partial }{partial x}(x) + frac{partial }{partial x_2}frac{partial f}{partial x_1}(x, g(x)) cdot frac{partial }{partial x}g(x)$$
Simplify a bit:
$$frac{partial}{partial x}left(frac{partial f}{partial x_1}(x, g(x))right)=frac{partial^2 f}{partial^2 x_1}(x, g(x)) + frac{partial^2 f}{partial x_2partial x_1}(x, g(x)) cdot g'(x)$$
The second term is almost the same, you just have an extra factor of $g(x)$ that requires the product rule.
$endgroup$
$begingroup$
Thanks. Let me update my post with my attempt and show you where I am getting stuck
$endgroup$
– gallileo22
yesterday
$begingroup$
Please see my update
$endgroup$
– gallileo22
yesterday
$begingroup$
What quarague alludes to is one of the reasons why I much prefer the notation $partial_1$, $partial_2$, etc. Less to write, more universally applicable (as it is independent of symbols used in the definitions of the functions, as it should be), and doesn't rest on useless confusing concepts like that of "function of $x$", as if $x$ weren't a bound variable.
$endgroup$
– Git Gud
yesterday
$begingroup$
So here, $x_{2} = y$?
$endgroup$
– gallileo22
yesterday
$begingroup$
@gallileo22 Yes: $x_1$ is being used in place of $x$ and $x_2$ is being used in place of $y$.
$endgroup$
– Git Gud
yesterday
add a comment |
$begingroup$
Hint: The notation can be a bit confusing here. $f$ is a function of two variables. A derivative with respect to the first variable is denoted by $frac{partial f}{partial x}$, a derivative with respect to the second variable is denoted by $frac{partial f}{partial y}$. If instead you denote them by $frac{partial f}{partial x_1}$ and $frac{partial f}{partial x_2}$ it might be a bit clearer. At the same time you plug in the function $x$ into the first variable and the function $g(x)$ into the second variable. You are differentiating with respect to $x$ and need to apply the chain rule.
Edit: I will write out what happens in the first term with the renaming of variables. We want to compute: $$frac{partial}{partial x}left(frac{partial f}{partial x_1}(x, g(x))right)$$
So we have
$$frac{partial}{partial x}left(frac{partial f}{partial x_1}(x, g(x))right)=frac{partial }{partial x_1}frac{partial f}{partial x_1}(x, g(x)) cdot frac{partial }{partial x}(x) + frac{partial }{partial x_2}frac{partial f}{partial x_1}(x, g(x)) cdot frac{partial }{partial x}g(x)$$
Simplify a bit:
$$frac{partial}{partial x}left(frac{partial f}{partial x_1}(x, g(x))right)=frac{partial^2 f}{partial^2 x_1}(x, g(x)) + frac{partial^2 f}{partial x_2partial x_1}(x, g(x)) cdot g'(x)$$
The second term is almost the same, you just have an extra factor of $g(x)$ that requires the product rule.
$endgroup$
$begingroup$
Thanks. Let me update my post with my attempt and show you where I am getting stuck
$endgroup$
– gallileo22
yesterday
$begingroup$
Please see my update
$endgroup$
– gallileo22
yesterday
$begingroup$
What quarague alludes to is one of the reasons why I much prefer the notation $partial_1$, $partial_2$, etc. Less to write, more universally applicable (as it is independent of symbols used in the definitions of the functions, as it should be), and doesn't rest on useless confusing concepts like that of "function of $x$", as if $x$ weren't a bound variable.
$endgroup$
– Git Gud
yesterday
$begingroup$
So here, $x_{2} = y$?
$endgroup$
– gallileo22
yesterday
$begingroup$
@gallileo22 Yes: $x_1$ is being used in place of $x$ and $x_2$ is being used in place of $y$.
$endgroup$
– Git Gud
yesterday
add a comment |
$begingroup$
Hint: The notation can be a bit confusing here. $f$ is a function of two variables. A derivative with respect to the first variable is denoted by $frac{partial f}{partial x}$, a derivative with respect to the second variable is denoted by $frac{partial f}{partial y}$. If instead you denote them by $frac{partial f}{partial x_1}$ and $frac{partial f}{partial x_2}$ it might be a bit clearer. At the same time you plug in the function $x$ into the first variable and the function $g(x)$ into the second variable. You are differentiating with respect to $x$ and need to apply the chain rule.
Edit: I will write out what happens in the first term with the renaming of variables. We want to compute: $$frac{partial}{partial x}left(frac{partial f}{partial x_1}(x, g(x))right)$$
So we have
$$frac{partial}{partial x}left(frac{partial f}{partial x_1}(x, g(x))right)=frac{partial }{partial x_1}frac{partial f}{partial x_1}(x, g(x)) cdot frac{partial }{partial x}(x) + frac{partial }{partial x_2}frac{partial f}{partial x_1}(x, g(x)) cdot frac{partial }{partial x}g(x)$$
Simplify a bit:
$$frac{partial}{partial x}left(frac{partial f}{partial x_1}(x, g(x))right)=frac{partial^2 f}{partial^2 x_1}(x, g(x)) + frac{partial^2 f}{partial x_2partial x_1}(x, g(x)) cdot g'(x)$$
The second term is almost the same, you just have an extra factor of $g(x)$ that requires the product rule.
$endgroup$
Hint: The notation can be a bit confusing here. $f$ is a function of two variables. A derivative with respect to the first variable is denoted by $frac{partial f}{partial x}$, a derivative with respect to the second variable is denoted by $frac{partial f}{partial y}$. If instead you denote them by $frac{partial f}{partial x_1}$ and $frac{partial f}{partial x_2}$ it might be a bit clearer. At the same time you plug in the function $x$ into the first variable and the function $g(x)$ into the second variable. You are differentiating with respect to $x$ and need to apply the chain rule.
Edit: I will write out what happens in the first term with the renaming of variables. We want to compute: $$frac{partial}{partial x}left(frac{partial f}{partial x_1}(x, g(x))right)$$
So we have
$$frac{partial}{partial x}left(frac{partial f}{partial x_1}(x, g(x))right)=frac{partial }{partial x_1}frac{partial f}{partial x_1}(x, g(x)) cdot frac{partial }{partial x}(x) + frac{partial }{partial x_2}frac{partial f}{partial x_1}(x, g(x)) cdot frac{partial }{partial x}g(x)$$
Simplify a bit:
$$frac{partial}{partial x}left(frac{partial f}{partial x_1}(x, g(x))right)=frac{partial^2 f}{partial^2 x_1}(x, g(x)) + frac{partial^2 f}{partial x_2partial x_1}(x, g(x)) cdot g'(x)$$
The second term is almost the same, you just have an extra factor of $g(x)$ that requires the product rule.
edited yesterday
answered yesterday
quaraguequarague
757312
757312
$begingroup$
Thanks. Let me update my post with my attempt and show you where I am getting stuck
$endgroup$
– gallileo22
yesterday
$begingroup$
Please see my update
$endgroup$
– gallileo22
yesterday
$begingroup$
What quarague alludes to is one of the reasons why I much prefer the notation $partial_1$, $partial_2$, etc. Less to write, more universally applicable (as it is independent of symbols used in the definitions of the functions, as it should be), and doesn't rest on useless confusing concepts like that of "function of $x$", as if $x$ weren't a bound variable.
$endgroup$
– Git Gud
yesterday
$begingroup$
So here, $x_{2} = y$?
$endgroup$
– gallileo22
yesterday
$begingroup$
@gallileo22 Yes: $x_1$ is being used in place of $x$ and $x_2$ is being used in place of $y$.
$endgroup$
– Git Gud
yesterday
add a comment |
$begingroup$
Thanks. Let me update my post with my attempt and show you where I am getting stuck
$endgroup$
– gallileo22
yesterday
$begingroup$
Please see my update
$endgroup$
– gallileo22
yesterday
$begingroup$
What quarague alludes to is one of the reasons why I much prefer the notation $partial_1$, $partial_2$, etc. Less to write, more universally applicable (as it is independent of symbols used in the definitions of the functions, as it should be), and doesn't rest on useless confusing concepts like that of "function of $x$", as if $x$ weren't a bound variable.
$endgroup$
– Git Gud
yesterday
$begingroup$
So here, $x_{2} = y$?
$endgroup$
– gallileo22
yesterday
$begingroup$
@gallileo22 Yes: $x_1$ is being used in place of $x$ and $x_2$ is being used in place of $y$.
$endgroup$
– Git Gud
yesterday
$begingroup$
Thanks. Let me update my post with my attempt and show you where I am getting stuck
$endgroup$
– gallileo22
yesterday
$begingroup$
Thanks. Let me update my post with my attempt and show you where I am getting stuck
$endgroup$
– gallileo22
yesterday
$begingroup$
Please see my update
$endgroup$
– gallileo22
yesterday
$begingroup$
Please see my update
$endgroup$
– gallileo22
yesterday
$begingroup$
What quarague alludes to is one of the reasons why I much prefer the notation $partial_1$, $partial_2$, etc. Less to write, more universally applicable (as it is independent of symbols used in the definitions of the functions, as it should be), and doesn't rest on useless confusing concepts like that of "function of $x$", as if $x$ weren't a bound variable.
$endgroup$
– Git Gud
yesterday
$begingroup$
What quarague alludes to is one of the reasons why I much prefer the notation $partial_1$, $partial_2$, etc. Less to write, more universally applicable (as it is independent of symbols used in the definitions of the functions, as it should be), and doesn't rest on useless confusing concepts like that of "function of $x$", as if $x$ weren't a bound variable.
$endgroup$
– Git Gud
yesterday
$begingroup$
So here, $x_{2} = y$?
$endgroup$
– gallileo22
yesterday
$begingroup$
So here, $x_{2} = y$?
$endgroup$
– gallileo22
yesterday
$begingroup$
@gallileo22 Yes: $x_1$ is being used in place of $x$ and $x_2$ is being used in place of $y$.
$endgroup$
– Git Gud
yesterday
$begingroup$
@gallileo22 Yes: $x_1$ is being used in place of $x$ and $x_2$ is being used in place of $y$.
$endgroup$
– Git Gud
yesterday
add a comment |
gallileo22 is a new contributor. Be nice, and check out our Code of Conduct.
gallileo22 is a new contributor. Be nice, and check out our Code of Conduct.
gallileo22 is a new contributor. Be nice, and check out our Code of Conduct.
gallileo22 is a new contributor. Be nice, and check out our Code of Conduct.
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%2f3184764%2ftaking-the-derivative-of-a-differential-equation%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
4
$begingroup$
See! Giving the attempt now allows people to tell you what you did wrong, rather than giving a correct answer which would still leave questions about your working. It was a good decision to include the working, and I have up voted in this regard.
$endgroup$
– астон вілла олоф мэллбэрг
yesterday
$begingroup$
My answer here answers your question. The notation is heavy, but it is proper.
$endgroup$
– Git Gud
yesterday
$begingroup$
I'm still not really getting anywhere. I think it is hard to understand because of the notation. Working backwards, I can guess that the chain rule term for Term 1 is going to be $1$. But I don't know how to do it properly.
$endgroup$
– gallileo22
yesterday
$begingroup$
Yes, it's not easy when one's is not used to it. But it gets much easier after you get over the initial learning curve. I tried to give some guidance below.
$endgroup$
– Git Gud
yesterday
$begingroup$
Sorry, I had a few typos from too much copy and pasting. All good now.
$endgroup$
– Git Gud
yesterday