Δs \quad = \quad \sqrt{Δx^2 + Δy^2}

Δs \quad = \quad \sqrt{1 + \frac{Δy^2}{Δx^2}}\quad \cdot  \quad Δx

s \quad = \quad \sum Δs

b \quad \approx \quad \sum Δs

b \quad = \quad \int ds \quad = \quad \int \sqrt{1 + f'(x)^2}dx

f(x) = (x - 1.0)^(2.0) / 2.0 + 1.0
A = Point(f)
B = Point(f)
Δs = Segment(A, B)
b = OrthogonalLine(A, yAxis)
c = OrthogonalLine(B, xAxis)
C = Intersect(b, c)
Δx = Segment(A, C)
Δy = Segment(C, B)
D = Point(f)
E = Point(f)
F = Point(f)
a = Segment(A, D)
d = Segment(D, E)
e = Segment(E, F)
h = Segment(F, B)
g = Function(f(x), x(A), x(B))