Problem:

Find the arclength of the function $f(x) = \log (2 x)$ on the interval $x = 1$ to $x = 3$

from sympy import *

x = symbols('x')
f = log(2*x)
a = 1
b = 3
arclength = integrate(sqrt(1 + diff(f, x) ** 2), (x, a, b))
print(arclength)
