Computing the gradient of a function Announcing the arrival of Valued Associate #679: Cesar...
Monty Hall Problem-Probability Paradox
Flight departed from the gate 5 min before scheduled departure time. Refund options
How does light 'choose' between wave and particle behaviour?
Co-worker has annoying ringtone
My mentor says to set image to Fine instead of RAW — how is this different from JPG?
Did Mueller's report provide an evidentiary basis for the claim of Russian govt election interference via social media?
What is the "studentd" process?
What is the difference between a "ranged attack" and a "ranged weapon attack"?
Does the Black Tentacles spell do damage twice at the start of turn to an already restrained creature?
Is there hard evidence that the grant peer review system performs significantly better than random?
Was Kant an Intuitionist about mathematical objects?
Why does electrolysis of aqueous concentrated sodium bromide produce bromine at the anode?
As a dual citizen, my US passport will expire one day after traveling to the US. Will this work?
What does 丫 mean? 丫是什么意思?
How to ask rejected full-time candidates to apply to teach individual courses?
What are the main differences between the original Stargate SG-1 and the Final Cut edition?
The Nth Gryphon Number
What initially awakened the Balrog?
Why datecode is SO IMPORTANT to chip manufacturers?
Project Euler #1 in C++
Why is a lens darker than other ones when applying the same settings?
Why is std::move not [[nodiscard]] in C++20?
NERDTreeMenu Remapping
Printing attributes of selection in ArcPy?
Computing the gradient of a function
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)Can you uniquely define a tangent line at a point for a 3D csurve?Gradient of inner product in Hilbert spaceHelp with finding the directional derivative of a $f(x,y,z)=xy+xz+yz$ at a point and in the direction of a vectorMultivariable calculus/ How to solve problems involving implicit definition of a function in a function?How to differentiate $int_{B(x,r)}f(y) dy+rint_{B(0,1)}langlenabla f(x+rz),zrangle dz$How to find the gradient of $x+y-z-ln z=0$?Computing Hessian of a particular functionCritical points of functionWhether the options $(iii)$ and $(iv)$ make sense?Divergence and Gradient integration
$begingroup$
Function: $f(x,y,z) = e^{-x} (x^2 + y^2 + z^2)$
I need to differentiate this equation for $f_x, f_y$ and $f_z$:
$nabla f = langle f_x, f_y, f_z rangle$
What I Got:
begin{align}
f_x &= −e^{−x}(x^2+y^2+z^2)+e^{−x}(x^2+y^2+z^2)2x \
f_y &= 2e^{-x}y \
f_z &= 2e^{-x}z \
implies nabla f &= langle -e^{-x} (x-2), : 2e^{-x}y, : 2e^{-x}zrangle
end{align}
Are these the correct differentiation?
Thank you in advance.
derivatives
$endgroup$
add a comment |
$begingroup$
Function: $f(x,y,z) = e^{-x} (x^2 + y^2 + z^2)$
I need to differentiate this equation for $f_x, f_y$ and $f_z$:
$nabla f = langle f_x, f_y, f_z rangle$
What I Got:
begin{align}
f_x &= −e^{−x}(x^2+y^2+z^2)+e^{−x}(x^2+y^2+z^2)2x \
f_y &= 2e^{-x}y \
f_z &= 2e^{-x}z \
implies nabla f &= langle -e^{-x} (x-2), : 2e^{-x}y, : 2e^{-x}zrangle
end{align}
Are these the correct differentiation?
Thank you in advance.
derivatives
$endgroup$
$begingroup$
$f_y$ and $f_z$ are correct. for $f_x$ you must use the product rule since you have an $x$ term both inside and outside the bracket multiplying with each other
$endgroup$
– thesmallprint
Mar 25 at 23:50
$begingroup$
@thesmallprint I did the product rule and edited the original post. Does it look right?
$endgroup$
– user430574
Mar 26 at 0:29
$begingroup$
let $u=e^{-x}$, then what is $frac{partial u}{partial x}$? similarly, let $v=x^2+y^2+z^2$, then what is $frac{partial v}{partial x}$? then, use the product rule. since you are partially differentiating, the product rule will involve partial derivatives too. just so you have a solution to compare your answer to, here's what you should get $$f_x=2xe^{-x}-e^{-x}(x^2+y^2+z^2).$$
$endgroup$
– thesmallprint
Mar 26 at 12:47
add a comment |
$begingroup$
Function: $f(x,y,z) = e^{-x} (x^2 + y^2 + z^2)$
I need to differentiate this equation for $f_x, f_y$ and $f_z$:
$nabla f = langle f_x, f_y, f_z rangle$
What I Got:
begin{align}
f_x &= −e^{−x}(x^2+y^2+z^2)+e^{−x}(x^2+y^2+z^2)2x \
f_y &= 2e^{-x}y \
f_z &= 2e^{-x}z \
implies nabla f &= langle -e^{-x} (x-2), : 2e^{-x}y, : 2e^{-x}zrangle
end{align}
Are these the correct differentiation?
Thank you in advance.
derivatives
$endgroup$
Function: $f(x,y,z) = e^{-x} (x^2 + y^2 + z^2)$
I need to differentiate this equation for $f_x, f_y$ and $f_z$:
$nabla f = langle f_x, f_y, f_z rangle$
What I Got:
begin{align}
f_x &= −e^{−x}(x^2+y^2+z^2)+e^{−x}(x^2+y^2+z^2)2x \
f_y &= 2e^{-x}y \
f_z &= 2e^{-x}z \
implies nabla f &= langle -e^{-x} (x-2), : 2e^{-x}y, : 2e^{-x}zrangle
end{align}
Are these the correct differentiation?
Thank you in advance.
derivatives
derivatives
edited Mar 26 at 0:52
asked Mar 25 at 23:44
user430574
$begingroup$
$f_y$ and $f_z$ are correct. for $f_x$ you must use the product rule since you have an $x$ term both inside and outside the bracket multiplying with each other
$endgroup$
– thesmallprint
Mar 25 at 23:50
$begingroup$
@thesmallprint I did the product rule and edited the original post. Does it look right?
$endgroup$
– user430574
Mar 26 at 0:29
$begingroup$
let $u=e^{-x}$, then what is $frac{partial u}{partial x}$? similarly, let $v=x^2+y^2+z^2$, then what is $frac{partial v}{partial x}$? then, use the product rule. since you are partially differentiating, the product rule will involve partial derivatives too. just so you have a solution to compare your answer to, here's what you should get $$f_x=2xe^{-x}-e^{-x}(x^2+y^2+z^2).$$
$endgroup$
– thesmallprint
Mar 26 at 12:47
add a comment |
$begingroup$
$f_y$ and $f_z$ are correct. for $f_x$ you must use the product rule since you have an $x$ term both inside and outside the bracket multiplying with each other
$endgroup$
– thesmallprint
Mar 25 at 23:50
$begingroup$
@thesmallprint I did the product rule and edited the original post. Does it look right?
$endgroup$
– user430574
Mar 26 at 0:29
$begingroup$
let $u=e^{-x}$, then what is $frac{partial u}{partial x}$? similarly, let $v=x^2+y^2+z^2$, then what is $frac{partial v}{partial x}$? then, use the product rule. since you are partially differentiating, the product rule will involve partial derivatives too. just so you have a solution to compare your answer to, here's what you should get $$f_x=2xe^{-x}-e^{-x}(x^2+y^2+z^2).$$
$endgroup$
– thesmallprint
Mar 26 at 12:47
$begingroup$
$f_y$ and $f_z$ are correct. for $f_x$ you must use the product rule since you have an $x$ term both inside and outside the bracket multiplying with each other
$endgroup$
– thesmallprint
Mar 25 at 23:50
$begingroup$
$f_y$ and $f_z$ are correct. for $f_x$ you must use the product rule since you have an $x$ term both inside and outside the bracket multiplying with each other
$endgroup$
– thesmallprint
Mar 25 at 23:50
$begingroup$
@thesmallprint I did the product rule and edited the original post. Does it look right?
$endgroup$
– user430574
Mar 26 at 0:29
$begingroup$
@thesmallprint I did the product rule and edited the original post. Does it look right?
$endgroup$
– user430574
Mar 26 at 0:29
$begingroup$
let $u=e^{-x}$, then what is $frac{partial u}{partial x}$? similarly, let $v=x^2+y^2+z^2$, then what is $frac{partial v}{partial x}$? then, use the product rule. since you are partially differentiating, the product rule will involve partial derivatives too. just so you have a solution to compare your answer to, here's what you should get $$f_x=2xe^{-x}-e^{-x}(x^2+y^2+z^2).$$
$endgroup$
– thesmallprint
Mar 26 at 12:47
$begingroup$
let $u=e^{-x}$, then what is $frac{partial u}{partial x}$? similarly, let $v=x^2+y^2+z^2$, then what is $frac{partial v}{partial x}$? then, use the product rule. since you are partially differentiating, the product rule will involve partial derivatives too. just so you have a solution to compare your answer to, here's what you should get $$f_x=2xe^{-x}-e^{-x}(x^2+y^2+z^2).$$
$endgroup$
– thesmallprint
Mar 26 at 12:47
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
No. You have to use product rule. $f_x=-e^{-x}(x^{2}+y^{2}+z^{2})+2xe^{-x}$, etc.
$endgroup$
$begingroup$
@KavuRamaMurthy so I did the product rule and I got $-e^{-x} x^2 + e^{-x}2x$ would this be correct?
$endgroup$
– user430574
Mar 26 at 0:21
$begingroup$
@user430574 No, when you differentiate $e^{-x}$ you have to keep $(x^{2}+y^{2}+z^{2})$ as it is. You cannot drop $y^{2}+z^{2}$,
$endgroup$
– Kavi Rama Murthy
Mar 26 at 0:32
$begingroup$
okay, so I added the things that I dropped, this is what I got. $fx = -e^{-x}(x2+y2+z2) + e^{-x}(x2+y2+z2)2x$
$endgroup$
– user430574
Mar 26 at 0:41
$begingroup$
@user430574 In the second term you are differentiating $x^{2}+y^{2}+z^{2}$ partially w.r.t. $x$ and the derivative is $2x$, not $2x(x^{2}+y^{2}+z^{2})$
$endgroup$
– Kavi Rama Murthy
Mar 26 at 5:25
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
});
}
});
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%2f3162478%2fcomputing-the-gradient-of-a-function%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$
No. You have to use product rule. $f_x=-e^{-x}(x^{2}+y^{2}+z^{2})+2xe^{-x}$, etc.
$endgroup$
$begingroup$
@KavuRamaMurthy so I did the product rule and I got $-e^{-x} x^2 + e^{-x}2x$ would this be correct?
$endgroup$
– user430574
Mar 26 at 0:21
$begingroup$
@user430574 No, when you differentiate $e^{-x}$ you have to keep $(x^{2}+y^{2}+z^{2})$ as it is. You cannot drop $y^{2}+z^{2}$,
$endgroup$
– Kavi Rama Murthy
Mar 26 at 0:32
$begingroup$
okay, so I added the things that I dropped, this is what I got. $fx = -e^{-x}(x2+y2+z2) + e^{-x}(x2+y2+z2)2x$
$endgroup$
– user430574
Mar 26 at 0:41
$begingroup$
@user430574 In the second term you are differentiating $x^{2}+y^{2}+z^{2}$ partially w.r.t. $x$ and the derivative is $2x$, not $2x(x^{2}+y^{2}+z^{2})$
$endgroup$
– Kavi Rama Murthy
Mar 26 at 5:25
add a comment |
$begingroup$
No. You have to use product rule. $f_x=-e^{-x}(x^{2}+y^{2}+z^{2})+2xe^{-x}$, etc.
$endgroup$
$begingroup$
@KavuRamaMurthy so I did the product rule and I got $-e^{-x} x^2 + e^{-x}2x$ would this be correct?
$endgroup$
– user430574
Mar 26 at 0:21
$begingroup$
@user430574 No, when you differentiate $e^{-x}$ you have to keep $(x^{2}+y^{2}+z^{2})$ as it is. You cannot drop $y^{2}+z^{2}$,
$endgroup$
– Kavi Rama Murthy
Mar 26 at 0:32
$begingroup$
okay, so I added the things that I dropped, this is what I got. $fx = -e^{-x}(x2+y2+z2) + e^{-x}(x2+y2+z2)2x$
$endgroup$
– user430574
Mar 26 at 0:41
$begingroup$
@user430574 In the second term you are differentiating $x^{2}+y^{2}+z^{2}$ partially w.r.t. $x$ and the derivative is $2x$, not $2x(x^{2}+y^{2}+z^{2})$
$endgroup$
– Kavi Rama Murthy
Mar 26 at 5:25
add a comment |
$begingroup$
No. You have to use product rule. $f_x=-e^{-x}(x^{2}+y^{2}+z^{2})+2xe^{-x}$, etc.
$endgroup$
No. You have to use product rule. $f_x=-e^{-x}(x^{2}+y^{2}+z^{2})+2xe^{-x}$, etc.
answered Mar 25 at 23:46
Kavi Rama MurthyKavi Rama Murthy
76.4k53370
76.4k53370
$begingroup$
@KavuRamaMurthy so I did the product rule and I got $-e^{-x} x^2 + e^{-x}2x$ would this be correct?
$endgroup$
– user430574
Mar 26 at 0:21
$begingroup$
@user430574 No, when you differentiate $e^{-x}$ you have to keep $(x^{2}+y^{2}+z^{2})$ as it is. You cannot drop $y^{2}+z^{2}$,
$endgroup$
– Kavi Rama Murthy
Mar 26 at 0:32
$begingroup$
okay, so I added the things that I dropped, this is what I got. $fx = -e^{-x}(x2+y2+z2) + e^{-x}(x2+y2+z2)2x$
$endgroup$
– user430574
Mar 26 at 0:41
$begingroup$
@user430574 In the second term you are differentiating $x^{2}+y^{2}+z^{2}$ partially w.r.t. $x$ and the derivative is $2x$, not $2x(x^{2}+y^{2}+z^{2})$
$endgroup$
– Kavi Rama Murthy
Mar 26 at 5:25
add a comment |
$begingroup$
@KavuRamaMurthy so I did the product rule and I got $-e^{-x} x^2 + e^{-x}2x$ would this be correct?
$endgroup$
– user430574
Mar 26 at 0:21
$begingroup$
@user430574 No, when you differentiate $e^{-x}$ you have to keep $(x^{2}+y^{2}+z^{2})$ as it is. You cannot drop $y^{2}+z^{2}$,
$endgroup$
– Kavi Rama Murthy
Mar 26 at 0:32
$begingroup$
okay, so I added the things that I dropped, this is what I got. $fx = -e^{-x}(x2+y2+z2) + e^{-x}(x2+y2+z2)2x$
$endgroup$
– user430574
Mar 26 at 0:41
$begingroup$
@user430574 In the second term you are differentiating $x^{2}+y^{2}+z^{2}$ partially w.r.t. $x$ and the derivative is $2x$, not $2x(x^{2}+y^{2}+z^{2})$
$endgroup$
– Kavi Rama Murthy
Mar 26 at 5:25
$begingroup$
@KavuRamaMurthy so I did the product rule and I got $-e^{-x} x^2 + e^{-x}2x$ would this be correct?
$endgroup$
– user430574
Mar 26 at 0:21
$begingroup$
@KavuRamaMurthy so I did the product rule and I got $-e^{-x} x^2 + e^{-x}2x$ would this be correct?
$endgroup$
– user430574
Mar 26 at 0:21
$begingroup$
@user430574 No, when you differentiate $e^{-x}$ you have to keep $(x^{2}+y^{2}+z^{2})$ as it is. You cannot drop $y^{2}+z^{2}$,
$endgroup$
– Kavi Rama Murthy
Mar 26 at 0:32
$begingroup$
@user430574 No, when you differentiate $e^{-x}$ you have to keep $(x^{2}+y^{2}+z^{2})$ as it is. You cannot drop $y^{2}+z^{2}$,
$endgroup$
– Kavi Rama Murthy
Mar 26 at 0:32
$begingroup$
okay, so I added the things that I dropped, this is what I got. $fx = -e^{-x}(x2+y2+z2) + e^{-x}(x2+y2+z2)2x$
$endgroup$
– user430574
Mar 26 at 0:41
$begingroup$
okay, so I added the things that I dropped, this is what I got. $fx = -e^{-x}(x2+y2+z2) + e^{-x}(x2+y2+z2)2x$
$endgroup$
– user430574
Mar 26 at 0:41
$begingroup$
@user430574 In the second term you are differentiating $x^{2}+y^{2}+z^{2}$ partially w.r.t. $x$ and the derivative is $2x$, not $2x(x^{2}+y^{2}+z^{2})$
$endgroup$
– Kavi Rama Murthy
Mar 26 at 5:25
$begingroup$
@user430574 In the second term you are differentiating $x^{2}+y^{2}+z^{2}$ partially w.r.t. $x$ and the derivative is $2x$, not $2x(x^{2}+y^{2}+z^{2})$
$endgroup$
– Kavi Rama Murthy
Mar 26 at 5:25
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%2f3162478%2fcomputing-the-gradient-of-a-function%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$
$f_y$ and $f_z$ are correct. for $f_x$ you must use the product rule since you have an $x$ term both inside and outside the bracket multiplying with each other
$endgroup$
– thesmallprint
Mar 25 at 23:50
$begingroup$
@thesmallprint I did the product rule and edited the original post. Does it look right?
$endgroup$
– user430574
Mar 26 at 0:29
$begingroup$
let $u=e^{-x}$, then what is $frac{partial u}{partial x}$? similarly, let $v=x^2+y^2+z^2$, then what is $frac{partial v}{partial x}$? then, use the product rule. since you are partially differentiating, the product rule will involve partial derivatives too. just so you have a solution to compare your answer to, here's what you should get $$f_x=2xe^{-x}-e^{-x}(x^2+y^2+z^2).$$
$endgroup$
– thesmallprint
Mar 26 at 12:47