All published worksheets from http://sagenb.org
Image: ubuntu2004
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 Parametric 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 explicity : for is
So the arc length of this perfectly "normal" cos(x) curve using the formula (which we are calling our "exact" result even though it is being calculated numerically and CANNOT be calculated symbolically) is
Let us approximate this length by finding tangent line segments at regularly spaced values of x along the curve.
- We decide how many steps.
- The program calculates the stepsize of x.
- We draw points on the curve regularly spaced with repect to stepsize. This is (j, y(j)).
We draw pieces of tangent line segments starting at these points.
- Since the segments are tangent, the slope is .
- The segment needs to extend across the stepsize. So we simply add stepsize to the first point.
Sage does not allow "adding points". So we must add inside the point.
So the approximate arc length of this "simple" curve using 4 tangent pieces is: .
We calculate our error.
Our error is %.
Let us try more or less step sizes - change the value of steps2 and revaluate.
Let us try more or less step sizes - change the value of steps2 and revaluate.
So the approximate arc length of the cos(x) curve using 12 tangent pieces is: .
We calculate our new error.
We check our new error.
Our error is now smaller than: .
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.