Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 2006-05-04 14:16:06

mikau
Member
Registered: 2005-08-22
Posts: 1,504

arc length of a spiral

My tetherball thread hit a brick wall as it turned out finding the length of a simple spiral is not as simple as I initially thought. So I'm going to look at finding the length of polar curves, particularly spirals, instead. (would a mod please delete the tetherball thread)

At first, I assumed the formula for arc length of a polar curve was the integral of r dθ, from a to b. This will work for a circle and a similar method will work for area but not for a spiral or any polar curve when the radius is changing. As the change in the radius has an effect on its direction at a given point.

Today I devised a new formula shown in the drawing below.

spiral_integral.jpg

It basicly forms a right triangle. As dθ approaches zero, it tends to become a right triangle with a flat bottom. This seems a logical formula to me but technically, unlike the tetherball situation, the path of the line is not exactly hinging around the origin. Like the path of a straight line expressed in polar form. The path is definitly not hinging about the origin.

But anyway, the equation of a spiral is r = kθ, replacing kθ for r and k dθ for dr in the expression I had, and with a little factoring you can rearrange it into the form  k sqrt (θ^2 + 1) dθ.  This can be integrated using a trig sub but its a real nasty one. In the end the integral of sqrt (θ^2 + 1) dθ is:

k [ (1/2 ln | sqrt ( dθ^2 + 1) + θ | + 1/2 θ sqrt ( θ^2 + 1) ]

I decided to define the value of k in the spiral function:

r = θ * h/2pi  this will increase the radius by the constant h once every rotation. (so k = h/2pi)

I let h = 1/8 so the radius increases by 1/8 every rotation. I then allowed it to rotate once, starting from one when the radius = 1, which is 16 pi. So 16pi to 18pi. I got a value of 6.67705. This makes sense, begining with a radius of 1 and increasing 1/8 every turn, it should be a little more then 2pi.

I then wrote a program to use the distance formula and plotting 10,000 points on the curve and summing the distance between each one. I got 6.67705 on the nose. The exact same amount! cool

However, I tried dividing it into 100,000 points and for some reason the sum started getting smaller. As the number of intevals on the curve increases, the total should increase. (the shortes distance between two points is the line that connects them) it should increase and approach a certain value as a limit, but never decrease. So thats most likely the compiler being unable to hold super small numbers to many decimal places.

(edit) Allriiiight I just increased the number of rotations to 10 and the two answers are still exactly the same. I figured if there's a slight inaccuracy it will begin to show better with more rotations.

Last edited by mikau (2006-05-04 16:02:09)


A logarithm is just a misspelled algorithm.

Offline

#2 2006-05-04 16:23:27

mikau
Member
Registered: 2005-08-22
Posts: 1,504

Re: arc length of a spiral

whoah! dang! I was just looking for pictures of archemedian spirals and accidently came arcoss the formula for their arclength. They're using the exact same formula I derived! I guess its right then. lol...

Now I'm just wondering if the expression sqrt [  (r dθ)^2 + (dr)^2  ] works for any polar curve.


A logarithm is just a misspelled algorithm.

Offline

#3 2006-05-06 01:16:19

George,Y
Member
Registered: 2006-03-12
Posts: 1,379

Re: arc length of a spiral

Yes, polar co-ords can be really helpful and a good alternative!


X'(y-Xβ)=0

Offline

#4 2006-05-06 10:29:15

mikau
Member
Registered: 2005-08-22
Posts: 1,504

Re: arc length of a spiral

All right, here's another one. A hyperballic spiral of the form rθ = a  (or r = a/θ), this spiral approaches the line y = a as an asymptote as θ approaches zero. Using a/θ for for r and  -a/θ^2 for dr in the expression sqrt ( (dr)^2 + (r dθ)^2  )  you can rearrange it into the form a/θ sqrt ( 1 + 1/θ^2 ) dθ. Can it be integrated? Yes! I used a trig sub and let θ = cot x, so sqrt ( 1 + 1/θ^2) becomes sqrt ( 1 + tan^2 x) = sec x and dθ becomes -csc^2 x, put it all together and you have -a  ∫ sec^2 x csc x which is easy to solve using integration by parts. In the end after resubstituting:

∫ a/θ sqrt ( 1 + 1/θ^2 ) dθ = -a [  sqrt ( 1 + θ^2) / θ + ln | sqrt ( 1 + θ^2) - θ |  ]

Please note however that in this polar equation r = a/θ, r approaches infinity as θ approaches zero, (and vice versa) so when finding the arc length you can't start at θ = 0.   

This is fun.


A logarithm is just a misspelled algorithm.

Offline

Board footer

Powered by FluxBB