We are exploring arc length. We want to understand what is happening. (We do NOT care whether we can integrate symbollically! Any program will integrate for us.)
YouTube Videos: Parameterization Arc Length
Related Sage Pages: Arc Length of Explicit Curves in 2D Arc Length of Curves in 3D
Related Wiki Pages:
|
|
|
|
Look at the curve above and estimate a minimum and maximum value for its length L.
Arc Length of a Curve given parametrically C=s: \lt x(t),\, y(t) \gt for t \in [t1,t2] is
\newcommand{\Bold}[1]{\mathbf{#1}}\left(-4 \, \sin\left(t\right),\,3\right)
\newcommand{\Bold}[1]{\mathbf{#1}}\left(-4 \, \sin\left(t\right),\,3\right)
|
\newcommand{\Bold}[1]{\mathbf{#1}}12.7634994317
\newcommand{\Bold}[1]{\mathbf{#1}}12.7634994317
|
So the arc length of this weirdo curve using the formula (which we are calling our "exact" result even though it is being calculated numerically) is L=12.76
Let us approximate this length by finding tangent line segments at regularly spaced values of t along the curve.
This algorithm is exactly the same as for parametric curves in 3d!
|
|
We draw pieces of tangent line segments starting at these points.
So parametrically these line segments are: s(j)+λ·ds(j) for λ=[0, stepsize].
|
|
We sum the length of these pieces. They are each of length: \left\| {ds} \right\| \cdot stepsize = \sqrt{{\dot{x}}^2 + {\dot{y}}^2} \cdot stepsize, where the derivative is evaluated at the starting points of the pieces.
\newcommand{\Bold}[1]{\mathbf{#1}}12.7597444788872
\newcommand{\Bold}[1]{\mathbf{#1}}12.7597444788872
|
So the approximate arc length of this "simple" curve using 4 tangent pieces is: L_4 =12.76.
We calculate our error.
\newcommand{\Bold}[1]{\mathbf{#1}}0.000294194615824243
\newcommand{\Bold}[1]{\mathbf{#1}}0.000294194615824243
|
Our error is \approx 0.03%.
Let us try more or less step sizes - change the value of steps2 and revaluate.
|
|
We sum the length of these pieces.
\newcommand{\Bold}[1]{\mathbf{#1}}12.7634994214955
\newcommand{\Bold}[1]{\mathbf{#1}}12.7634994214955
|
So the approximate arc length of this weirdo curve using 12 tangent pieces is: L_{12} =12.76.
We calculate our new error.
\newcommand{\Bold}[1]{\mathbf{#1}}7.99433123366648 \times 10^{-10}
\newcommand{\Bold}[1]{\mathbf{#1}}7.99433123366648 \times 10^{-10}
|
Our error is now smaller than: 1.0 \times 10^{-9}.
We note that small errors are delicate things and in "real life" we must keep track of all of the possible types of errors that can occur here.
|
|