Differentiation of a function wrt different variables











up vote
0
down vote

favorite












Suppose a function
"f (xy)", then does it equate to "f ' (xy) . x" when partial differentiating wrt y, and f '(xy).y when partial differentiating wrt x?



Cause I don't get it why differentiating f with x and y would both yield f ', any help?










share|cite|improve this question






















  • Careful: if this is a function of two variables you need the product rule - and saying $f'$ here makes no sense
    – Sean Roberson
    Nov 18 at 5:18










  • @SeanRoberson Exactly! I know right, I just saw it in my book, where it was mentioning how to form Partial Differential Equations, by eliminating arbitrary functions!
    – Shahbaz Khan
    Nov 18 at 5:33










  • As you have written it, $f$ appears to be a function of a single variable, say $t mapsto f(t)$, which you are evaluating at $t=xy$. This is a composition of functions, hence chain rule applies. So, for example, $$frac{mathrm{d}}{mathrm{d}x} f(xy) = f'(xy) frac{mathrm{d}}{mathrm{dx}}(xy) = f'(xy) y. $$
    – Xander Henderson
    Nov 18 at 6:04












  • @XanderHenderson I already know that much but $frac{mathrm{d}}{mathrm{d}y} f(xy) = f'(xy) frac{mathrm{d}}{mathrm{dy}}(xy) = f'(xy) x$. Is this f ' the same as the one we get when differentiating with x?
    – Shahbaz Khan
    Nov 18 at 13:54

















up vote
0
down vote

favorite












Suppose a function
"f (xy)", then does it equate to "f ' (xy) . x" when partial differentiating wrt y, and f '(xy).y when partial differentiating wrt x?



Cause I don't get it why differentiating f with x and y would both yield f ', any help?










share|cite|improve this question






















  • Careful: if this is a function of two variables you need the product rule - and saying $f'$ here makes no sense
    – Sean Roberson
    Nov 18 at 5:18










  • @SeanRoberson Exactly! I know right, I just saw it in my book, where it was mentioning how to form Partial Differential Equations, by eliminating arbitrary functions!
    – Shahbaz Khan
    Nov 18 at 5:33










  • As you have written it, $f$ appears to be a function of a single variable, say $t mapsto f(t)$, which you are evaluating at $t=xy$. This is a composition of functions, hence chain rule applies. So, for example, $$frac{mathrm{d}}{mathrm{d}x} f(xy) = f'(xy) frac{mathrm{d}}{mathrm{dx}}(xy) = f'(xy) y. $$
    – Xander Henderson
    Nov 18 at 6:04












  • @XanderHenderson I already know that much but $frac{mathrm{d}}{mathrm{d}y} f(xy) = f'(xy) frac{mathrm{d}}{mathrm{dy}}(xy) = f'(xy) x$. Is this f ' the same as the one we get when differentiating with x?
    – Shahbaz Khan
    Nov 18 at 13:54















up vote
0
down vote

favorite









up vote
0
down vote

favorite











Suppose a function
"f (xy)", then does it equate to "f ' (xy) . x" when partial differentiating wrt y, and f '(xy).y when partial differentiating wrt x?



Cause I don't get it why differentiating f with x and y would both yield f ', any help?










share|cite|improve this question













Suppose a function
"f (xy)", then does it equate to "f ' (xy) . x" when partial differentiating wrt y, and f '(xy).y when partial differentiating wrt x?



Cause I don't get it why differentiating f with x and y would both yield f ', any help?







calculus multivariable-calculus






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Nov 18 at 5:08









Shahbaz Khan

31




31












  • Careful: if this is a function of two variables you need the product rule - and saying $f'$ here makes no sense
    – Sean Roberson
    Nov 18 at 5:18










  • @SeanRoberson Exactly! I know right, I just saw it in my book, where it was mentioning how to form Partial Differential Equations, by eliminating arbitrary functions!
    – Shahbaz Khan
    Nov 18 at 5:33










  • As you have written it, $f$ appears to be a function of a single variable, say $t mapsto f(t)$, which you are evaluating at $t=xy$. This is a composition of functions, hence chain rule applies. So, for example, $$frac{mathrm{d}}{mathrm{d}x} f(xy) = f'(xy) frac{mathrm{d}}{mathrm{dx}}(xy) = f'(xy) y. $$
    – Xander Henderson
    Nov 18 at 6:04












  • @XanderHenderson I already know that much but $frac{mathrm{d}}{mathrm{d}y} f(xy) = f'(xy) frac{mathrm{d}}{mathrm{dy}}(xy) = f'(xy) x$. Is this f ' the same as the one we get when differentiating with x?
    – Shahbaz Khan
    Nov 18 at 13:54




















  • Careful: if this is a function of two variables you need the product rule - and saying $f'$ here makes no sense
    – Sean Roberson
    Nov 18 at 5:18










  • @SeanRoberson Exactly! I know right, I just saw it in my book, where it was mentioning how to form Partial Differential Equations, by eliminating arbitrary functions!
    – Shahbaz Khan
    Nov 18 at 5:33










  • As you have written it, $f$ appears to be a function of a single variable, say $t mapsto f(t)$, which you are evaluating at $t=xy$. This is a composition of functions, hence chain rule applies. So, for example, $$frac{mathrm{d}}{mathrm{d}x} f(xy) = f'(xy) frac{mathrm{d}}{mathrm{dx}}(xy) = f'(xy) y. $$
    – Xander Henderson
    Nov 18 at 6:04












  • @XanderHenderson I already know that much but $frac{mathrm{d}}{mathrm{d}y} f(xy) = f'(xy) frac{mathrm{d}}{mathrm{dy}}(xy) = f'(xy) x$. Is this f ' the same as the one we get when differentiating with x?
    – Shahbaz Khan
    Nov 18 at 13:54


















Careful: if this is a function of two variables you need the product rule - and saying $f'$ here makes no sense
– Sean Roberson
Nov 18 at 5:18




Careful: if this is a function of two variables you need the product rule - and saying $f'$ here makes no sense
– Sean Roberson
Nov 18 at 5:18












@SeanRoberson Exactly! I know right, I just saw it in my book, where it was mentioning how to form Partial Differential Equations, by eliminating arbitrary functions!
– Shahbaz Khan
Nov 18 at 5:33




@SeanRoberson Exactly! I know right, I just saw it in my book, where it was mentioning how to form Partial Differential Equations, by eliminating arbitrary functions!
– Shahbaz Khan
Nov 18 at 5:33












As you have written it, $f$ appears to be a function of a single variable, say $t mapsto f(t)$, which you are evaluating at $t=xy$. This is a composition of functions, hence chain rule applies. So, for example, $$frac{mathrm{d}}{mathrm{d}x} f(xy) = f'(xy) frac{mathrm{d}}{mathrm{dx}}(xy) = f'(xy) y. $$
– Xander Henderson
Nov 18 at 6:04






As you have written it, $f$ appears to be a function of a single variable, say $t mapsto f(t)$, which you are evaluating at $t=xy$. This is a composition of functions, hence chain rule applies. So, for example, $$frac{mathrm{d}}{mathrm{d}x} f(xy) = f'(xy) frac{mathrm{d}}{mathrm{dx}}(xy) = f'(xy) y. $$
– Xander Henderson
Nov 18 at 6:04














@XanderHenderson I already know that much but $frac{mathrm{d}}{mathrm{d}y} f(xy) = f'(xy) frac{mathrm{d}}{mathrm{dy}}(xy) = f'(xy) x$. Is this f ' the same as the one we get when differentiating with x?
– Shahbaz Khan
Nov 18 at 13:54






@XanderHenderson I already know that much but $frac{mathrm{d}}{mathrm{d}y} f(xy) = f'(xy) frac{mathrm{d}}{mathrm{dy}}(xy) = f'(xy) x$. Is this f ' the same as the one we get when differentiating with x?
– Shahbaz Khan
Nov 18 at 13:54












1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










Based on the comments, my guess is that the Newton notation is getting in the way a little. It might be more clear what is going on if we are a little more explicit with the functional composition, and if we use the Leibniz notation instead.



Suppose that
$$ f : mathbb{R} to mathbb{R}$$
is a real-valued function of a single real variable, and let
$$ u : mathbb{R}^2 to mathbb{R} $$
be a real-valued function of two real variables defined by the formula
$$ u = u(x,y) = xy.$$
Then the function $g = fcirc u$ is a real-valued function of two real variables. The partial derivatives of $g$ can be found via the chain rule:
$$ g_x
= frac{mathrm{d}(fcirc u)}{mathrm{d}x}
= frac{mathrm{d}f}{mathrm{d}u} cdot frac{mathrm{d}u}{mathrm{d}x}
= frac{mathrm{d}f}{mathrm{d}u} cdot y,$$

where $frac{mathrm{d}f}{mathrm{d}u}$ is the derivative of the single variable function $f$. This derivative is not taken with respect to either $x$ or $y$, but instead with respect to the variable of $f$, which we have labeled $u$. Note that as $f$ is a function of a single variable $u$, it makes sense to write $f'(u)$ instead of $frac{mathrm{d}f}{mathrm{d}u}(u)$.





Perhaps an example would help: suppose that $f(u) = cos(u)$, and take $u = xy$. Then
$$ frac{mathrm{d}f}{mathrm{d}x}
= frac{mathrm{df}}{mathrm{d}u} cdot frac{mathrm{d}u}{mathrm{d}x}. tag{1}$$

But
$$ frac{mathrm{d}f}{mathrm{d}u} = frac{mathrm{d}}{mathrm{d}u} cos(u)
= -sin(u). $$

Then, as $u = xy$, it follows that $frac{mathrm{d}f}{mathrm{d}u} = -sin(xy)$. Also note that $frac{mathrm{d}u}{mathrm{d}x} = y$. Substituting these into (1), we conclude that
$$frac{mathrm{d}f}{mathrm{d}x} = -sin(xy) cdot y. $$






share|cite|improve this answer





















  • Yeah, thank you, that makes sense. I really hate books that don’t lay out a clear notation convention that they’re using.
    – Shahbaz Khan
    yesterday











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',
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
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3003150%2fdifferentiation-of-a-function-wrt-different-variables%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








up vote
0
down vote



accepted










Based on the comments, my guess is that the Newton notation is getting in the way a little. It might be more clear what is going on if we are a little more explicit with the functional composition, and if we use the Leibniz notation instead.



Suppose that
$$ f : mathbb{R} to mathbb{R}$$
is a real-valued function of a single real variable, and let
$$ u : mathbb{R}^2 to mathbb{R} $$
be a real-valued function of two real variables defined by the formula
$$ u = u(x,y) = xy.$$
Then the function $g = fcirc u$ is a real-valued function of two real variables. The partial derivatives of $g$ can be found via the chain rule:
$$ g_x
= frac{mathrm{d}(fcirc u)}{mathrm{d}x}
= frac{mathrm{d}f}{mathrm{d}u} cdot frac{mathrm{d}u}{mathrm{d}x}
= frac{mathrm{d}f}{mathrm{d}u} cdot y,$$

where $frac{mathrm{d}f}{mathrm{d}u}$ is the derivative of the single variable function $f$. This derivative is not taken with respect to either $x$ or $y$, but instead with respect to the variable of $f$, which we have labeled $u$. Note that as $f$ is a function of a single variable $u$, it makes sense to write $f'(u)$ instead of $frac{mathrm{d}f}{mathrm{d}u}(u)$.





Perhaps an example would help: suppose that $f(u) = cos(u)$, and take $u = xy$. Then
$$ frac{mathrm{d}f}{mathrm{d}x}
= frac{mathrm{df}}{mathrm{d}u} cdot frac{mathrm{d}u}{mathrm{d}x}. tag{1}$$

But
$$ frac{mathrm{d}f}{mathrm{d}u} = frac{mathrm{d}}{mathrm{d}u} cos(u)
= -sin(u). $$

Then, as $u = xy$, it follows that $frac{mathrm{d}f}{mathrm{d}u} = -sin(xy)$. Also note that $frac{mathrm{d}u}{mathrm{d}x} = y$. Substituting these into (1), we conclude that
$$frac{mathrm{d}f}{mathrm{d}x} = -sin(xy) cdot y. $$






share|cite|improve this answer





















  • Yeah, thank you, that makes sense. I really hate books that don’t lay out a clear notation convention that they’re using.
    – Shahbaz Khan
    yesterday















up vote
0
down vote



accepted










Based on the comments, my guess is that the Newton notation is getting in the way a little. It might be more clear what is going on if we are a little more explicit with the functional composition, and if we use the Leibniz notation instead.



Suppose that
$$ f : mathbb{R} to mathbb{R}$$
is a real-valued function of a single real variable, and let
$$ u : mathbb{R}^2 to mathbb{R} $$
be a real-valued function of two real variables defined by the formula
$$ u = u(x,y) = xy.$$
Then the function $g = fcirc u$ is a real-valued function of two real variables. The partial derivatives of $g$ can be found via the chain rule:
$$ g_x
= frac{mathrm{d}(fcirc u)}{mathrm{d}x}
= frac{mathrm{d}f}{mathrm{d}u} cdot frac{mathrm{d}u}{mathrm{d}x}
= frac{mathrm{d}f}{mathrm{d}u} cdot y,$$

where $frac{mathrm{d}f}{mathrm{d}u}$ is the derivative of the single variable function $f$. This derivative is not taken with respect to either $x$ or $y$, but instead with respect to the variable of $f$, which we have labeled $u$. Note that as $f$ is a function of a single variable $u$, it makes sense to write $f'(u)$ instead of $frac{mathrm{d}f}{mathrm{d}u}(u)$.





Perhaps an example would help: suppose that $f(u) = cos(u)$, and take $u = xy$. Then
$$ frac{mathrm{d}f}{mathrm{d}x}
= frac{mathrm{df}}{mathrm{d}u} cdot frac{mathrm{d}u}{mathrm{d}x}. tag{1}$$

But
$$ frac{mathrm{d}f}{mathrm{d}u} = frac{mathrm{d}}{mathrm{d}u} cos(u)
= -sin(u). $$

Then, as $u = xy$, it follows that $frac{mathrm{d}f}{mathrm{d}u} = -sin(xy)$. Also note that $frac{mathrm{d}u}{mathrm{d}x} = y$. Substituting these into (1), we conclude that
$$frac{mathrm{d}f}{mathrm{d}x} = -sin(xy) cdot y. $$






share|cite|improve this answer





















  • Yeah, thank you, that makes sense. I really hate books that don’t lay out a clear notation convention that they’re using.
    – Shahbaz Khan
    yesterday













up vote
0
down vote



accepted







up vote
0
down vote



accepted






Based on the comments, my guess is that the Newton notation is getting in the way a little. It might be more clear what is going on if we are a little more explicit with the functional composition, and if we use the Leibniz notation instead.



Suppose that
$$ f : mathbb{R} to mathbb{R}$$
is a real-valued function of a single real variable, and let
$$ u : mathbb{R}^2 to mathbb{R} $$
be a real-valued function of two real variables defined by the formula
$$ u = u(x,y) = xy.$$
Then the function $g = fcirc u$ is a real-valued function of two real variables. The partial derivatives of $g$ can be found via the chain rule:
$$ g_x
= frac{mathrm{d}(fcirc u)}{mathrm{d}x}
= frac{mathrm{d}f}{mathrm{d}u} cdot frac{mathrm{d}u}{mathrm{d}x}
= frac{mathrm{d}f}{mathrm{d}u} cdot y,$$

where $frac{mathrm{d}f}{mathrm{d}u}$ is the derivative of the single variable function $f$. This derivative is not taken with respect to either $x$ or $y$, but instead with respect to the variable of $f$, which we have labeled $u$. Note that as $f$ is a function of a single variable $u$, it makes sense to write $f'(u)$ instead of $frac{mathrm{d}f}{mathrm{d}u}(u)$.





Perhaps an example would help: suppose that $f(u) = cos(u)$, and take $u = xy$. Then
$$ frac{mathrm{d}f}{mathrm{d}x}
= frac{mathrm{df}}{mathrm{d}u} cdot frac{mathrm{d}u}{mathrm{d}x}. tag{1}$$

But
$$ frac{mathrm{d}f}{mathrm{d}u} = frac{mathrm{d}}{mathrm{d}u} cos(u)
= -sin(u). $$

Then, as $u = xy$, it follows that $frac{mathrm{d}f}{mathrm{d}u} = -sin(xy)$. Also note that $frac{mathrm{d}u}{mathrm{d}x} = y$. Substituting these into (1), we conclude that
$$frac{mathrm{d}f}{mathrm{d}x} = -sin(xy) cdot y. $$






share|cite|improve this answer












Based on the comments, my guess is that the Newton notation is getting in the way a little. It might be more clear what is going on if we are a little more explicit with the functional composition, and if we use the Leibniz notation instead.



Suppose that
$$ f : mathbb{R} to mathbb{R}$$
is a real-valued function of a single real variable, and let
$$ u : mathbb{R}^2 to mathbb{R} $$
be a real-valued function of two real variables defined by the formula
$$ u = u(x,y) = xy.$$
Then the function $g = fcirc u$ is a real-valued function of two real variables. The partial derivatives of $g$ can be found via the chain rule:
$$ g_x
= frac{mathrm{d}(fcirc u)}{mathrm{d}x}
= frac{mathrm{d}f}{mathrm{d}u} cdot frac{mathrm{d}u}{mathrm{d}x}
= frac{mathrm{d}f}{mathrm{d}u} cdot y,$$

where $frac{mathrm{d}f}{mathrm{d}u}$ is the derivative of the single variable function $f$. This derivative is not taken with respect to either $x$ or $y$, but instead with respect to the variable of $f$, which we have labeled $u$. Note that as $f$ is a function of a single variable $u$, it makes sense to write $f'(u)$ instead of $frac{mathrm{d}f}{mathrm{d}u}(u)$.





Perhaps an example would help: suppose that $f(u) = cos(u)$, and take $u = xy$. Then
$$ frac{mathrm{d}f}{mathrm{d}x}
= frac{mathrm{df}}{mathrm{d}u} cdot frac{mathrm{d}u}{mathrm{d}x}. tag{1}$$

But
$$ frac{mathrm{d}f}{mathrm{d}u} = frac{mathrm{d}}{mathrm{d}u} cos(u)
= -sin(u). $$

Then, as $u = xy$, it follows that $frac{mathrm{d}f}{mathrm{d}u} = -sin(xy)$. Also note that $frac{mathrm{d}u}{mathrm{d}x} = y$. Substituting these into (1), we conclude that
$$frac{mathrm{d}f}{mathrm{d}x} = -sin(xy) cdot y. $$







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Nov 18 at 15:44









Xander Henderson

13.9k93552




13.9k93552












  • Yeah, thank you, that makes sense. I really hate books that don’t lay out a clear notation convention that they’re using.
    – Shahbaz Khan
    yesterday


















  • Yeah, thank you, that makes sense. I really hate books that don’t lay out a clear notation convention that they’re using.
    – Shahbaz Khan
    yesterday
















Yeah, thank you, that makes sense. I really hate books that don’t lay out a clear notation convention that they’re using.
– Shahbaz Khan
yesterday




Yeah, thank you, that makes sense. I really hate books that don’t lay out a clear notation convention that they’re using.
– Shahbaz Khan
yesterday


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3003150%2fdifferentiation-of-a-function-wrt-different-variables%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Quarter-circle Tiles

build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

Mont Emei