Do we treat x and y as independent when differentiating f with respect to y?

Click For Summary

Discussion Overview

The discussion revolves around the treatment of variables when differentiating a function of multiple variables, specifically in the context of partial derivatives and their application to functions that depend on a parameter, such as time. Participants explore whether variables should be treated as independent when they are actually functions of another variable.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Some participants assert that when differentiating a function of multiple variables, one typically keeps all but one variable fixed, but question how this applies when the variables are functions of another variable.
  • There is a discussion about the application of the chain rule in the context of differentiating functions that depend on time, with some arguing that it complicates the treatment of variables as independent.
  • One participant expresses confusion about the inclusion of derivatives with respect to time in the context of partial derivatives, suggesting that it may not belong unless differentiating with respect to time.
  • Another participant challenges the notion that partial derivatives can be directly applied when the variables are functions of another variable, emphasizing the need to consider the functional nature of the variables.
  • Some participants propose that the independent variables for the function are x and y, while t is not a concern, leading to a debate about the implications of treating x and y as independent despite their dependence on t.
  • A later reply discusses the implications of treating x and y as functions of t and how this affects the differentiation process, suggesting that the traditional approach may not hold in this context.

Areas of Agreement / Disagreement

Participants express differing views on whether x and y can be treated as independent variables when they are functions of another variable. There is no consensus on how to approach the differentiation of such functions, indicating ongoing debate and uncertainty in the discussion.

Contextual Notes

Participants highlight limitations in applying standard differentiation techniques when variables are interdependent, and there are unresolved questions about the correct application of partial derivatives in this context.

adamg
Messages
48
Reaction score
0
if you are given f(x,y)=x^2+y^2 and y=cos(t) x=sin(t), then when you differentiate f with respect to t, you use the partial derivatives of f with respect to x and y in the process. When i was taught partial derivatives, i was told that we "keep all but one of the independent variables fixed...". Now in this case, when differentiating f with respect to y, say, i don't see how this works. For, x (=cos(t) ) cannot be fixed while y (=sin(t) ) varies, can it?

When we differentiate f do we 'forget' that x and y are functions of t, and treat them as independent?
 
Physics news on Phys.org
f(x,y) = x(t)^2 + y(t)^2

f(x,y)_x = 2x(t)x'(t)

f(x,y)_y = 2y(t)y'(t)


You keep one constant becuse you want to find the rate of change of f(x,y) as x changes, not y. Same thing for finding y.
 
Last edited:
When i was taught partial derivatives, i was told that we "keep all but one of the independent variables fixed...". Now in this case, when differentiating f with respect to y, say, i don't see how this works. For, x (=cos(t) ) cannot be fixed while y (=sin(t) ) varies, can it?
The independent variables for F, are x and y. t has no concern here. Why would one not be able to be fixed while the others are moving, this is the exact same thing you do when you do partial derivatives anyway.

When we differentiate f do we 'forget' that x and y are functions of t, and treat them as independent?
Exactly.
 
ok, thanks. is the partial derivative of f with respect to x just 2x then?
i don't understand the x'(t) part that you included?
 
Its an application of the chain rule, which come to think of it doesn't belong there unless your finding the partial wrt to t.
 
I don't know this well, but if you write f(x,y)=x^2+y^2...then \partial_xf(x,y)=2x...?? It's a weird question :

\frac{d}{dt}(\frac{\partial f}{\partial x}(x,y))=\frac{d2x(t)}{dt}=2x'(t)

where as normally, f(x(t),y(t))=g(t) is a function of t only, hence \partial_xg(t)=0...is like if Schwarz's thm were not valid here...

In fact I would say : it depends on at which time you apply the transformation x->x(t) (hence x as variable, or x as function of a variable...)

Because you could see x and y as function : x(t), y(t), and f(x,y)=x(t)^2+y(t)^2 as a functional of x and y...

Then you could apply Gateaux derivatives in the "direction" of the function n...(n:t->n(t))...with the usual definition :

D_{x,n(t)}F(x,y)=\lim_{h->0}\frac{F(x+hn,y)-F(x,y)}{h}=\lim_{h->0}\frac{x(t)^2+2hn(t)x(t)+y(t)^2-x(t)^2-y(t)^2}{h}
=2n(t)x(t)

so that we recover whozum result by functionally deriving along n(t)=x'(t)
 
Last edited:
whozum said:
The independent variables for F, are x and y. t has no concern here. Why would one not be able to be fixed while the others are moving, this is the exact same thing you do when you do partial derivatives anyway.


.

thats what i was confused about. we treat the x and y as independent variables, even though they won't really vary independently (since both depend on t)
 
So what is your conclusion klein? What is

\frac{\delta f}{\delta x} \ and \ \frac{\delta f}{\delta t} ?
 
That's the notation for the functional derivative of "f" wrt "x" or "t".

Daniel.
 
  • #10
whozum said:
f(x,y) = x(t)^2 + y(t)^2

f(x,y)_x = 2x(t)x'(t)

f(x,y)_y = 2y(t)y'(t)


You keep one constant becuse you want to find the rate of change of f(x,y) as x changes, not y. Same thing for finding y.

This makes no sense at all: x(t)2+ y(t)2 is a function of t, not x and y, and so cannot be equal to f(x,y).
Even worse is f(x,y)_x = 2x(t)x'(t) and f(x,y)_y = 2y(t)y'(t). If f is a function of t, then it makes no sense to write "fx(x,y).

What IS true is that if f(x,y)= x2+ y2, then fx(x,y)= 2x and fy(x,y)= 2y.
IF, further, x and y are themselves functions of t, then f is really a function of t, f(t), and f '(t)= (2x)x'(t)+ (2y)y'(t).
 
  • #11
what about if you had f(x,y) = x^2+y^2 again, but with y a function of x. The for the partial derivative of f with respect to x, you keep y fixed (?) and let x vary, even though y is a function of x (?). Thanks.
 
  • #12
IF, further, x and y are themselves functions of t, then f is really a function of t, f(t), and f '(t)= (2x)x'(t)+ (2y)y'(t).

So f_x(x,y) doesn't really exist? What you described is what I did but just assuming that you could differentiate withrespect to each variable.
 
  • #13
What whozum did is the following :

f(x,y)=x(t)^2+y(t)^2...(which by the way is a functional but not a function)

Then you thought, ok I want to differentiate with respect to x...hence I should move x a bit..the problem is that x is a function, hence I don't vary with another function, but the parameter of this function : t

so you did :

\lim_{h->0}\frac{f(x(t+h),y(t))-f(x(t),y(t))}{h}=\lim_{h->0}\frac{x(t+h)^2-x(t)^2}{h}\approx\lim_{h->0}\frac{(x(t)+hx'(t)+...)^2-x(t)^2}{h}=2x(t)x'(t)

But you could eventually vary x with a function n, instead of varying the variable of x...
 
  • #14
Somehow, I doubt whozum was thinking along the lines of functionals here.
whozum:
Let x,y be given as functions x=X(t), y=Y(t)
What is now correct is that we may define a function F(t)=f(X(t),Y(t))
Then, we have by the chain rule:
\frac{dF}{dt}=\frac{\partial{f}}{\partial{x}}\mid_{(x,y)=(X(t),Y(t))}}\frac{dX}{dt}+\frac{\partial{f}}{\partial{y}}\mid_{(x,y)=(X(t),Y(t))}}\frac{dY}{dt}
As HallsofIvy has already said.
 
Last edited:
  • #15
arildno said:
Somehow, I doubt whozum was thinking along the lines of functionals here.
whozum:
Let x,y be given as functions x=X(t), y=Y(t)
What is now correct is that we may define a function F(t)=f(X(t),Y(t))
Then, we have by the chain rule:
\frac{dF}{dt}=\frac{\partial{f}}{\partial{x}}\mid_{(x,y)=(X(t),Y(t))}}\frac{dX}{dt}+\frac{\partial{f}}{\partial{y}}\mid_{(x,y)=(X(t),Y(t))}}\frac{dY}{dt}
As HallsofIvy has already said.

Thanks for doubting me ;) Its justified though.

You are correct, and I understand what HallsofIvy said and what you are saying, but the question presnted by the OP was the last question I posted two/three posts ago, this is the only question I have left.

I'm also trying to think of a similar instance where the indep. variable is a function of another variable, I will let you know.

Thanks.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 8 ·
Replies
8
Views
1K
  • · Replies 11 ·
Replies
11
Views
2K