June 2
and I've never used it since, and I didn't get this far anyway.
I want to find a function u(t) such that
and
. How do I go about it?
(For an artwork based on the lemniscate of Bernoulli, I want a parametrization such that the path "speed" is constant.)
I'll be happy with the first few nonzero terms of a Fourier series. —Tamfang (talk) 02:09, 2 June 2012 (UTC)[reply]
- You could just throw it on Wolfram Alpha. It gives solutions in terms of Jacobi's amplitude function, though... I couldn't get it to give anything more.
- I've just played around with the parametric equations given in the article for the lemniscate, and they're a pretty decent approximation of constant speed. Can't you use that? — Kieff | Talk 02:27, 2 June 2012 (UTC)[reply]
- It varies by a factor of √2. It's usable, yes, but my design will look that much better if most of that variation is squashed. I've been fiddling with
, which is pretty good, but I thought why not try for whole hog? —Tamfang (talk) 02:58, 2 June 2012 (UTC)[reply]
- You could also go the easy way and numerically approximate the total length of the curve by exhaustion to the desired precision. Then divide that arclength into smaller steps of the desirable resolution, and use these step sizes to "walk" the parameter t until you reach each step size, then store that value of t. Do this for the whole curve and you'll have a bunch of t values that will be approximately the same distance from each other on the curve. This is pretty easy to do and it'll only require a lookup on the table. For even greater precision, you can throw in some interpolation for intermediate values. Point being, closed forms for normalized parametrizations of curves are not really necessary and there are simpler methods to do it if you just want to use it somewhere. I've done it several times. — Kieff | Talk 19:00, 2 June 2012 (UTC)[reply]
- I'm considering something similar, yes. —Tamfang (talk) 19:35, 2 June 2012 (UTC)[reply]
- It works surprisingly well. —Tamfang (talk) 17:10, 3 June 2012 (UTC)[reply]
- We also have an article Numerical methods for ordinary differential equations... It might be of some use too... --Martynas Patasius (talk) 00:49, 3 June 2012 (UTC)[reply]
- Try
(it's very good even without the last term). -- Meni Rosenfeld (talk) 19:21, 2 June 2012 (UTC)[reply]
- Good heavens. How did you come up with that? —Tamfang (talk) 19:50, 2 June 2012 (UTC)[reply]
- Taking the nonelementary closed form expression of the function as a starting point, I first found the period by using Mathematica to numerically solve
(choosing the correct root by inspection). Then the linear coefficient is
. After correcting for the period and the linear term, I ended up with a simple periodic function for which I computed the Fourier series.
- PS the way to solve differential equations which involve only u' and u is to first write it as
which means
. You can then find t as a function of u by integrating, and then u as a function of t by inverting. In this case both these operations result in nonelementary functions. -- Meni Rosenfeld (talk) 20:02, 2 June 2012 (UTC)[reply]