Partial derivative of coordinates

AI Thread Summary
In this discussion, the user explores the concepts of partial and total derivatives in the context of mechanical systems with multiple degrees of freedom. They question the nature of the partial derivative of one variable with respect to another when both are functions of time. The conversation clarifies that the partial derivative holds other variables constant, leading to a zero result when the variables are independent. The user also grapples with the implications of treating time as a dependent variable, ultimately realizing that mixing derivative types can lead to confusion. The discussion emphasizes the importance of correctly distinguishing between partial and total derivatives in mathematical analysis.
DoubleHelics
Messages
7
Reaction score
0
Hello, I have a simple question. Let's say we have a mechanical system with 2 degrees of freedom. Say the generalized coordinates (which are independent from each other in terms of constraints) are x and y. When we solve Lagrange-Euler equations for this system, we get time evolutions of coordinates as functions of time: x(t) and y(t). I am wondering what the partial derivative of x with respect to y would be. this would not be 0, right?
 
Physics news on Phys.org
It is zero if they are independent coordinates.
 
But mathematically, I can find a relation between x(t) and y(t), then I could compute the partial derivative, right? Would that still be zero?
 
Yes. The total derivative dx/dy might not be zero, but the partial will.
\frac{\partial x}{\partial y} means the change in x keeping x fixed.
 
Last edited by a moderator:
clem, thanks much for the explanations. But I am not sure what you mean by \frac{\partial x}{\partial y} is "the change in x keeping x fixed.", do you mean the change in x keeping t fixed? Could you elaborate on that please?
 
The meaning of a partial derivative like \frac{\partial x}{\partial y} is that all independent variables other than y are held fixed in the differentiation. Therefor x can't change in that derivative, so \frac{\partial x}{\partial y} is zero by definition. The way I worded it was sort of funny non sequitor )obvious statement).
 
Ok, I think I understand what you mean. But, I thought t is the independent variable in the mechanics problems. (Or am i wrong?)

Let me give an example:
Say we are analyzing the movement of a point mass, which is thrown from Earth's surface (assumed planar for the problem) with a velocity v, whose vertical component is v_y (In +y direction) and horizontal component is v_x. The gravitational acceleration, g, acts on the mass vertically to pull it in -y direction. x(t) and y(t) denote the horizontal and vertical components of position of the mass as a function of time. The solution for x(t) is
x(t) = v_x \cdot t
The solution for y(t) is
y(t) = v_y \cdot t - \frac{1}{2} g t^2
I am assuming that we only account for the time until the mass hits the ground, 0 \leq t \leq 2\frac{v_y}{g}. Having these, I will write y(t) in terms of x(t) as:
y(x) = \frac{v_y}{v_x}\cdot x - \frac{1}{2}g (\frac{x}{v_x})^2
which I found simply by replacing t = \frac{x}{v_x}, which treats t as a function of x, over the course of motion. Now I can compute the partial derivative of y with respect to x as:
\frac{\partial y}{\partial x} = \frac{v_y}{v_x} - g \frac{x}{v_x^2}
which is not identically equal to 0. Did i do something wrong, or is this actually the total derivative of y wrt x?
 
What you have calculated is the total derivative.
`Partial' means something is held fixed. What have you held fixed?
 
Alright, I also thought that it should be the total derivative (as I was asking at the end of my last post). Ok then let me put it this way with another example, which I think should better illustrate my problem in understanding: Let's say I have three variables: x,y,z, which are parametrized with respect to t. Let's assume that t is the ultimate independent variable, like time. x(t), y(t) and z(t) given as:
x(t) = t
y(t) = t^2
z(t) = t^2 + 4 \cdot t
now, I can write z as:
z = y + 4 \cdot x
then, partial derivative of z with respect to x and wrt y would be:
\frac{\partial z}{\partial x} = 4
\frac{\partial z}{\partial y} = 1

Now, I can also write z as:
z = x^2 + 4 \cdot x
then partial derivatives change:
\frac{\partial z}{\partial x} = 2 \cdot x + 4
\frac{\partial z}{\partial y} = 0

Now, I can also write these using the chain rule:
\frac{\partial z}{\partial x} = \frac{\partial z}{\partial t} \cdot \frac{\partial t}{\partial x}
and
\frac{\partial z}{\partial x} = \underbrace{(2\cdot t + 4)}_{\frac{\partial z}{\partial t}} \cdot 1

and similarly for partial derivative of z wrt y
\frac{\partial z}{\partial y} = \frac{\partial z}{\partial t} \cdot \frac{\partial t}{\partial y}
and
\frac{\partial z}{\partial y} = (2\cdot t + 4) \cdot \underbrace{\frac{1}{2\sqrt{y}}}_{\frac{\partial t}{\partial y}}

The partial derivatives come out differently. Am I making a mistake here? Thanks a lot.
 
  • #10
DoubleHelics said:
Alright, I also thought that it should be the total derivative (as I was asking at the end of my last post). Ok then let me put it this way with another example, which I think should better illustrate my problem in understanding: Let's say I have three variables: x,y,z, which are parametrized with respect to t. Let's assume that t is the ultimate independent variable, like time. x(t), y(t) and z(t) given as:
x(t) = t
y(t) = t^2
z(t) = t^2 + 4 \cdot t
now, I can write z as:
z = y + 4 \cdot x
then, partial derivative of z with respect to x and wrt y would be:
\frac{\partial z}{\partial x} = 4
\frac{\partial z}{\partial y} = 1

Now, I can also write z as:
z = x^2 + 4 \cdot x
then partial derivatives change:
\frac{\partial z}{\partial x} = 2 \cdot x + 4
\frac{\partial z}{\partial y} = 0

Now, I can also write these using the chain rule:
\frac{\partial z}{\partial x} = \frac{\partial z}{\partial t} \cdot \frac{\partial t}{\partial x}
and
\frac{\partial z}{\partial x} = \underbrace{(2\cdot t + 4)}_{\frac{\partial z}{\partial t}} \cdot 1

and similarly for partial derivative of z wrt y
\frac{\partial z}{\partial y} = \frac{\partial z}{\partial t} \cdot \frac{\partial t}{\partial y}
and
\frac{\partial z}{\partial y} = (2\cdot t + 4) \cdot \underbrace{\frac{1}{2\sqrt{y}}}_{\frac{\partial t}{\partial y}}

The partial derivatives come out differently. Am I making a mistake here? Thanks a lot.

I think you made some mistakes in the quoted equations ... please check it over and correct them, or if what is there is really what you intended to write, then please indicate that. Then I can comment on what errors you might be making.
 
  • #11
The problem is that you're mixing up all kinds of derivatives. Partial, total and a type of derivative you invented yourself (the one in between partial and total).

You have the functions x y and z that depend on t therefore your t depends on x y and z.

The first derivative you take is some kind of mixed derivative. You arbitrarily take into account the x dependence of t, but not of t^2. It is like saying the derivative of of x^2+x is 1. If you want to take the x y z dependence of t into account you need to do it for all ts. That is what you did in your second dz/dx. However taking those dependencies into account means that you are not computing a partial derivative but a total derivative. Your third derivation (the chainrule one) is again not a partial derivative but a total derivative equal to your second attempt at calculating dz/dx. Why? Because again you take the x/t dependence into account.

As has been said before if you want to calculate the partial derivative you will have to keep all coordinates, except the coordinate you're differentiating with respect to, fixed.

partial derivative:
<br /> \frac{\partial z}{\partial x}=\frac{\partial }{\partial x} (t^2+4t)=0<br />

Total derivative:
<br /> \frac{d z}{d x}=\frac{\partial z}{\partial t} \frac{d t}{dx}<br />
 
  • #12
Ok, I think I understand that I am inventing a new type of derivative there, which does not make physical sense. (Thanks for bearing with me)

I have one more question. Let's assume we have three variables y, x, and t such that t is again independent variable. x and y are functions of t:
y = t^2 + t
x = t
Thus, partial derivative of y wrt x is 0. (right?) But, assuming that t is also a function of x, if I write the chain rule (which I got from Stewart's calculus book):
\frac{\partial y}{\partial x} = \frac{\partial y}{\partial t} \cdot \frac{\partial t}{\partial x} = 2t + 1.
This looks like the total derivative of y wrt x to me. Am I using the definition wrongly?
 

Similar threads

Back
Top