Here is a visualization of approximation of arc length by segments of tangent lines. Increase the resolution to get a better approximation. Try changing
f(x)
as well.