How long is a curve? Pythagoras + integral = answer.
How long is a curve from x = a to x = b? Pythagoras over a tiny step, integrated.