Is ##\frac{dx}{dr}=\frac{r}{x}## Correct in Polar Coordinates?

In summary, the conversation discusses the relationship between polar and Cartesian coordinates and the use of partial derivatives. It is shown that the derivative of x with respect to r is equal to the reciprocal of the derivative of r with respect to x and that this can be demonstrated using the equations r^2=x^2+y^2 and x=r*cos(theta).
  • #1
yungman
5,755
293
##r^2=x^2+y^2\;\Rightarrow \; 2r\frac{dr}{dx}=2x\;\Rightarrow\; \frac{dr}{dx}=\frac{x}{r}##

Then is it true ##\frac{dx}{dr}=\frac{r}{x}##?

I am not sure this is correct as
[tex]r^2=x^2+y^2\;\Rightarrow \; 2r=2x\frac{dx}{dr}+2y\frac{dy}{dr}[/tex]
 
Physics news on Phys.org
  • #2
If you take the differential of both sides you get:

2r dr = 2x dx + 2y dy which can be rewritten as:

dr = x/r dx + y/r dy

Converting this to derivative form we get:

dr/dx = x/r + y/r dy/dx

dr/dy = x/r dx/dy + y/rSo your first result is missing the dependence of y upon x.
 
  • Like
Likes 1 person
  • #3
UltrafastPED said:
If you take the differential of both sides you get:

2r dr = 2x dx + 2y dy which can be rewritten as:

dr = x/r dx + y/r dy

Converting this to derivative form we get:

dr/dx = x/r + y/r dy/dx

dr/dy = x/r dx/dy + y/r


So your first result is missing the dependence of y upon x.

I forgot to say this is x,y coordinates and r is the radius. So x and y are independent.
 
  • #4
Are they? You seem to have created a functional relationship between them! It looks like a circle to me, but with a variable radius.

Perhaps you could describe the meaning of your starting equation, and what you are planning to accomplish.
 
  • #5
This is just polar coordinates where ##r^2=x^2+y^2##. So x and y are independent variables.

So, from what you show:##2rdr=2xdx+2ydy##
[tex]\Rightarrow\; 2r=2x\frac{dx}{dr}+2y\frac{dy}{dr}[/tex]
[tex]\Rightarrow\;\frac{dx}{dr}=\frac{r}{z}-\frac{y}{x}\frac{dy}{dr}[/tex]


[tex]2rdr=2xdx+2ydy\;\Rightarrow r\frac{dr}{dx}=2x+2y\frac{dy}{dx}=2x\;\Rightarrow\;\frac{dr}{dx}=\frac {x}{r}[/tex]
BUT
[tex]\frac{dx}{dr}\neq\frac{r}{x}[/tex]

Am I correct?
 
  • #6
But x = r cos(theta), y = r sin(theta) ... you have not included these relationships!

Thus x and y are no longer independent ... try plugging these into the differential dr = x/r dx + y/r dy, and see what you get.
 
  • #7
I am confused. This is the second questionable thing in this book. I have a questionable formula of this book in another thread right now! Here is the scanned page of what I have been asking:
 

Attachments

  • PDE2.jpg
    PDE2.jpg
    34.2 KB · Views: 418
  • #8
What's the problem with the scanned page, except the equation
[tex]\theta=\arctan(y/x),[/tex]
which has to be used with very much care. Better is (for [itex]y \neq 0[/itex])
[tex]\theta=\mathrm{sign} y \arccos \left(\frac{x}{\sqrt{x^2+y^2}} \right )[/tex]
For [itex]y=0[/itex] you can set
[tex]\theta=\begin{cases} 0 & \text{for} \quad x=r>0,\\
\pi &\text{for} \quad x=-r<0.
\end{cases}[/tex]
The polar coordinates are indetermined at the origin (coordinate singularity).

So, what is considered here is the transformation between cartesian and polar coordinates of the Euclidean plane,
[tex]x=r \cos \theta, \quad y=r \sin \theta.[/tex]
It's also important to distinguish partial and total derivatives. You have to decide which two variables you take as the independent ones, i.e., [itex]\frac{\partial}{\partial x} \equiv \partial_x[/itex] means to take the partial derivative with respect to [itex]x[/itex] while [itex]y[/itex] is kept constant, i.e., indeed
[tex]r=\sqrt{x^2+y^2} \; \Rightarrow \; \partial_x r=\frac{x}{\sqrt{x^2+y^2}}=\frac{x}{r}[/tex]
etc.
For [itex]\theta[/itex] I'd rather use
[tex]\cos \theta=\frac{x}{r}.[/tex]
Then you get
[tex]-\sin \theta \partial_x \theta=\frac{1}{r}-\frac{x}{r^2} \partial_x r=\frac{1}{r}-\frac{x^2}{r^3}=\frac{r^2-x^2}{r^3}=\frac{y^2}{r^3}=\frac{r^2 \sin^2 \theta}{r^3}.[/tex]
From this
[tex]\partial_x \theta = -\frac{y}{r^2},[/tex]
etc.

I've not checked the other formulae from your book, but at least these to examples are perfectly fine.
 
  • Like
Likes 1 person
  • #9
You can type ∂ instead of d by using the Quick Symbols of Advance editing mode.

This certainly makes a difference in how to interpret a statement!
 
  • Like
Likes 1 person
  • #10
Yes, my bad to use "d" instead of ##\partial##.

So ##\frac{\partial y}{\partial x}=0##?

So back to my original question:

##r^2=x^2+y^2\;\Rightarrow \; 2r\frac{\partial r}{\partial x}=2x\;\Rightarrow\; \frac{\partial r}{\partial x}=\frac{x}{r}##

Then is it true ##\frac{\partial x}{\partial r}=\frac{r}{x}##?

I am not sure this is correct as
[tex]r^2=x^2+y^2\;\Rightarrow \; 2r=2x\frac{\partial x}{\partial r}+2y\frac{\partial y}{\partial r}[/tex]


Can I look at it this way, ##x=r\cos\theta##
[tex]\frac{\partial x}{\partial r}=\frac{\partial (r\cos\theta)}{\partial r}=\cos\theta= \frac {x}{r}[/tex]

But then
[tex]\frac{\partial x}{\partial r}=\frac{\partial r}{\partial x}[/tex]

I am confused.
 
Last edited:
  • #11
yungman said:
So ##\frac{\partial y}{\partial x}=0##?

Yes.

yungman said:
So back to my original question:

##r^2=x^2+y^2\;\Rightarrow \; 2r\frac{\partial r}{\partial x}=2x\;\Rightarrow\; \frac{\partial r}{\partial x}=\frac{x}{r}##

Yes.

yungman said:
Then is it true ##\frac{\partial x}{\partial r}=\frac{r}{x}##?

See this old thread on Reciprocals of Derivatives:
https://www.physicsforums.com/showthread.php?t=317983
 
  • #13
yungman said:
I am not sure this is correct as
[tex]r^2=x^2+y^2\;\Rightarrow \; 2r=2x\frac{\partial x}{\partial r}+2y\frac{\partial y}{\partial r}[/tex]


Can I look at it this way, ##x=r\cos\theta##
[tex]\frac{\partial x}{\partial r}=\frac{\partial (r\cos\theta)}{\partial r}=\cos\theta= \frac {x}{r}[/tex]

But then
[tex]\frac{\partial x}{\partial r}=\frac{\partial r}{\partial x}[/tex]

I am confused.

For an analysis of the above, refer to the link given above ...
 
  • #14
I see that
[tex]\frac{\partial x}{\partial r}=\frac{1}{\left(\frac{\partial r}{\partial x}\right)}[/tex]

So back to my original question:

[tex]r^2=x^2+y^2\;\Rightarrow \; 2r\frac{\partial r}{\partial x}=2x\;\Rightarrow\; \frac{\partial r}{\partial x}=\frac{x}{r}[/tex]
[tex]\Rightarrow\;\frac{\partial x}{\partial r}=\frac{1}{\left(\frac{x}{r}\right)}=\frac{r}{x}[/tex]


But if I let ##x=r\cos\theta##
[tex]\frac{\partial x}{\partial r}=\frac{\partial (r\cos\theta)}{\partial r}=\cos\theta= \frac {x}{r}[/tex]
I am confused, please help.
 
  • #15
On top of the above question. Let's put in some real numbers. Let ##\theta=60^0##
[tex]\Rightarrow \; \frac {r}{x}=\frac{1}{\cos 60}=2[/tex]
This also to every change of x, the r change twice as much.
[tex]\Rightarrow\; \frac{\partial r}{\partial x}=\frac {r}{x}=2[/tex]
and also, to every change of r, x only change half as much.
[tex]\Rightarrow \; \frac{\partial x}{\partial r}=\frac {x}{r}=0.5[/tex]


but from the last post,

[tex]\Rightarrow\; \frac{\partial r}{\partial x}=\frac {x}{r}=\frac {1}{2}[/tex]
and according to ## \frac{\partial x}{\partial r}=\frac {1}{ \left(\frac{\partial r}{\partial x}\right)}##
[tex]\frac{\partial x}{\partial r}=\frac{r}{x}=2[/tex]

The two is opposite. It just does not make sense.
 
  • #17
yungman said:
I see that
[tex]\frac{\partial x}{\partial r}=\frac{1}{\left(\frac{\partial r}{\partial x}\right)}[/tex]

No! It's a mistake to think of ##\frac{\partial x}{\partial r}## and ##\frac{\partial r}{\partial x}## as fractions. If they were fractions, then the product ##\frac{\partial x}{\partial r}\frac{\partial r}{\partial x}## would be one. But this is not true. Instead, with these variables ##\frac{\partial x}{\partial r}\frac{\partial r}{\partial x} = \cos^2\theta = \bigl(\frac x r\bigr)^2##.
 
  • #18
That cannot be true! You again forgot that for any partial derivative you must tell which other variable is hold fixed. In the context of coordinate transformations you consider either the pair [itex](x,y)[/itex] or the pair [itex](r,\theta)[/itex] as independent variables, i.e., the expression [itex]\partial r/\partial x[/itex] means that you take the derivative of [itex]r[/itex] with respect to [itex]x[/itex] at a fixed value of [itex]y[/itex], while [itex]\partial x/\partial r[/itex] is the derivative of [itex]x[/itex] wrt. [itex]r[/itex] at a fixed value of [itex]\theta[/itex].

It may become more clear for you, when you think about the geometric meaning either fixing [itex]y[/itex] and varying [itex]x[/itex] or fixing [itex]\theta[/itex] and varying [itex]r[/itex] at a given point on the plane. You'll see that you get completely different curves (coordinate lines) or even tangent vectors on that coordinate lines!
 
  • #19
vanhees71 said:
That cannot be true!
I don't know if you were addressing me or yungman, vanhees71.

You again forgot that for any partial derivative you must tell which other variable is hold fixed.
This is very important, particularly if it's not clear from context. In this case it is better to write ##\frac{\partial r}{\partial x}## as ##\left.\frac{\partial r}{\partial x}\right|_y## and ##\frac{\partial x}{\partial r}## as ##\left.\frac{\partial x}{\partial r}\right|_{\theta}##.
 
  • #20
UltrafastPED said:
Here is a nicely prepared lesson on partial derivatives and the chain rule which also addresses your OP in some detail: http://www2.imperial.ac.uk/~jdg/AECHAIN.PDF

Thanks, this really help. This answer a lot of my question. The normal Calculus III books do not get into this and the PDE book take for granted people should know this. I bet the instructor must go through this in class, problem is I am a self studier and never really link it up this good. But I still have question, I'm going to ask in a separate post.

Thanks
 
  • #21
yungman said:
On top of the above question. Let's put in some real numbers. Let ##\theta=60^0##
[tex]\Rightarrow \; \frac {r}{x}=\frac{1}{\cos 60}=2[/tex]
This also to every change of x, the r change twice as much.
[tex]\Rightarrow\; \frac{\partial r}{\partial x}=\frac {r}{x}=2[/tex]
and also, to every change of r, x only change half as much.
[tex]\Rightarrow \; \frac{\partial x}{\partial r}=\frac {x}{r}=0.5[/tex]


but from the last post,

[tex]\Rightarrow\; \frac{\partial r}{\partial x}=\frac {x}{r}=\frac {1}{2}[/tex]

The two is opposite. It just does not make sense.

I still have not resolve this, it does not make sense.
 
  • #22
Review message #16 - there is a reference there to an analysis of a similar problem in polar coordinates.

As others have pointed out, there is a notational problem with partial derivatives: you must determine the variables being held constant from context, as they are normally omitted (except in thermodynamics!).

Thus you cannot tell if you are to apply the complete chain rule for partial derivatives (close relative of the total derivative), or a restricted application. And if restricted, what are the restrictions?
 
  • #23
I know it is talking about the exact problem and I know how to derive ##\frac{\partial r}{\partial x}=\frac{x}{r}##

What my question is using common sense by setting ##\theta=60^o## where ##x=r\cos 60=0.5r##.

Common sense will tell you that to every unit increase of x will cause 2 units increase of r. So
[tex]\left[\frac{\partial r}{\partial x}\right]_{\theta=60}=2=\frac{r}{x}[/tex]

I am trying to understand why the discrepancy.
 
  • #24
yungman said:
I am trying to understand why the discrepancy.
You're holding the "wrong" variable constant.

Alternatively, ##\left.\frac{\partial r}{\partial x}\right|_y \ne \left.\frac{\partial r}{\partial x}\right|_{\theta}##, as you just found.
 
  • #25
Do you all mean
[tex]r^2=x^2+y^2\Rightarrow\; r\frac{\partial r}{\partial x}=x+y\frac{\partial y}{\partial x}[/tex]
[tex]\Rightarrow\; \frac{\partial r}{\partial x}=\frac{x}{r}+\frac{y}{r}\frac{\partial y}{\partial x}[/tex]

So ##\frac{\partial r}{\partial x}=\frac {x}{r}## only hold true if y is a constant which is not my example that y change with x. In my example, there is a relation between y and x in form of ##\tan \theta=\frac {y}{x}##. So ##\frac{\partial r}{\partial x}\neq\frac{x}{r}##
 
Last edited:
  • #26
I think I understand now, I just want to verify

For Polar coordinates, ##r^2=x^2+y^2## and ##x=r\cos \theta##, ##y=r\sin\theta##

##x(r,\theta)## and## y(r,\theta)## are not independent to each other like in rectangular.

In rectangular coordinates, ##\frac{\partial y}{\partial x}=\frac{dy}{dx}=0##

But in Polar coordinates,
[tex]\frac{\partial r}{\partial x}=\cos\theta,\;\frac{\partial \theta}{\partial x}=-\frac{\sin\theta}{r}[/tex]
[tex]\frac{\partial y(r,\theta)}{\partial x(r,\theta)}=\frac{\partial y(r,\theta)}{\partial r}\frac{\partial r}{\partial x(r,\theta)}+\frac{\partial y(r,\theta)}{\partial \theta}\frac{\partial \theta}{\partial x(r,\theta)}=

(\cos\theta) \frac{\partial y(r,\theta)}{\partial r}-\left(\frac{\sin\theta}{r}\right)\frac{\partial y(r,\theta)}{\partial \theta}[/tex]

Thanks
 

FAQ: Is ##\frac{dx}{dr}=\frac{r}{x}## Correct in Polar Coordinates?

What is differentiation?

Differentiation is a mathematical concept that refers to the process of finding the rate of change of a function with respect to one of its variables.

Why is differentiation important?

Differentiation is important because it allows us to analyze the behavior of functions and understand how they change over time or in response to different variables. It is also a fundamental tool in many fields of science, such as physics, engineering, and economics.

What are the different types of differentiation?

The two main types of differentiation are differentiation with respect to a variable, which is the most common type and involves finding the derivative of a function, and differentiation with respect to a parameter, which involves finding the derivative of a function that depends on one or more parameters.

What is the derivative?

The derivative is a mathematical concept that represents the rate of change of a function at a specific point. It is denoted by the symbol f'(x) or dy/dx.

What are some real-life applications of differentiation?

Differentiation has many real-life applications, such as calculating the velocity and acceleration of moving objects, optimizing production and profit in business, and analyzing the effects of changing variables in scientific experiments. It is also used in fields such as medicine, biology, and psychology to model and understand complex systems.

Similar threads

Replies
4
Views
2K
Replies
8
Views
1K
Replies
3
Views
960
Replies
5
Views
1K
Replies
1
Views
2K
Replies
1
Views
1K
Back
Top