integral from 0 to x of sqrt((dx/df)^2+(dz/df)^2)df=2*pi