Trying to use polar coordinates to find the distance between two points

Click For Summary
The discussion revolves around finding the distance between two points using polar coordinates, specifically from (3,0) to (0,3). The initial approach incorrectly treated the radius as constant, leading to confusion about the correct application of polar formulas. The correct method involves expressing the radius as a function of the angle and integrating along the curve, with the integral set from 0 to π/2. Participants clarify that the distance calculation must account for the changing radius along the line, and derivatives of trigonometric functions are essential for the integration process. The conversation emphasizes understanding invariant distance and the proper setup for arc length calculations in polar coordinates.
SamRoss
Gold Member
Messages
256
Reaction score
36
Homework Statement
Trying to get a better understanding of invariant distance. As an example, I want to find the distance between (3,0) and (0,3) (in Cartesian coordinates) but using polar coordinates.
Relevant Equations
##{ds}^2={dx}^2+{dy}^2={dr}^2+r^2{d\theta}^2##
##{dx}^2+{dy}^2=3^2+3^2=18##

##{dr}^2+r^2{d\theta}^2=0^2+3^2*(\theta/2)^2\neq18##

I have a feeling that what I'm doing wrong is just plugging numbers into the polar coordinate formula instead of treating it as a curve. For example, I naively plugged in 3 for r even though I know the radius would change along the line from (3,0) to (0,3) (Cartesian coordinates). How can this be done correctly? Also, I am not looking to use the ##{r_1}^2+{r_2}^2-2{r_1}{r_2}cos(\theta_1-\theta_2)## formula which I know would solve the problem easily.
 
Physics news on Phys.org
The drdr and dθdθ are differentials, not coordinate differences. The expression dsds is the distance between two infinitesimally separated points. You can integrate it along any curve to get its length - not just the straight line. In your case you (inadvertently) computed the length of a quarter circle
 
SamRoss said:
Problem Statement: Trying to get a better understanding of invariant distance.
What is "invariant distance"? Is it a standard name for a mathematical topic?

How can this be done correctly?
My guess is that your are trying to find the arc length of a curve that is the straight line between (3.0) and (0,3). In that case a relevant equation is
##L = \int_a^b \sqrt{ r^2 + (\frac{dr}{d\theta})^2 } d\theta ## and you must express ##r## as function of ##\theta## so that the path from ##\theta = a## to ##\theta = b## goes along the line from (3,0) to (0,3).
 
Stephen Tashi said:
##L = \int_a^b \sqrt{ r^2 + (\frac{dr}{d\theta})^2 } d\theta ## and you must express ##r## as function of ##\theta## so that the path from ##\theta = a## to ##\theta = b## goes along the line from (3,0) to (0,3).

I wrote the equation of the line in Cartesian coordinates: y=-x+3. Plugging in ##x=rcos\theta## and ##y=rsin\theta## and rearranging I got ##r=3/(sin\theta+cos\theta)##. Then ##\frac {dr} {d\theta}=-\frac {3(cos\theta-sin\theta)} {(sin\theta+cos\theta)^2}##. The integral should go from 0 to pi/2. Is this correct so far?
 
SamRoss said:
I wrote the equation of the line in Cartesian coordinates: y=-x+3. Plugging in ##x=rcos\theta## and ##y=rsin\theta## and rearranging I got ##r=3/(sin\theta+cos\theta)##. Then ##\frac {dr} {d\theta}=-\frac {3(cos\theta-sin\theta)} {(sin\theta+cos\theta)^2}##. The integral should go from 0 to pi/2. Is this correct so far?

You can simpilfy that to r = \frac{3}{\sqrt{2}} \sec(\theta - \tfrac{\pi}4) and use <br /> \frac{d}{d\theta} \sec \theta = \sec \theta \tan \theta, \qquad \frac{d}{d\theta} \tan \theta = \sec^2 \theta
 
pasmith said:
You can simpilfy that to r = \frac{3}{\sqrt{2}} \sec(\theta - \tfrac{\pi}4) and use <br /> \frac{d}{d\theta} \sec \theta = \sec \theta \tan \theta, \qquad \frac{d}{d\theta} \tan \theta = \sec^2 \theta

I'm trying that in Wolfram (this is just for fun and not actual homework anyway) but I seem to be doing something wrong. Where is my mistake?

245597
 
Orodruin said:
In your case you (inadvertently) computed the length of a quarter circle

That makes sense. Thank you.
 
SamRoss said:
I'm trying that in Wolfram (this is just for fun and not actual homework anyway) but I seem to be doing something wrong. Where is my mistake?

View attachment 245597

The derivative of A\sec\theta is A\sec\theta \tan\theta.
 

Similar threads

  • · Replies 24 ·
Replies
24
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 22 ·
Replies
22
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 8 ·
Replies
8
Views
6K
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K