Problem:

Find the arclength of the function $f(x) = e^{-4 x}+\log (-4 x)$ on the interval $x = 2$ to $x = 2$

import math

from sympy import *

x = symbols('x')
f = math.e**(-4*x)+log(-4*x)
a = 2
b = 2
arclength = integrate(sqrt(1 + diff(f, x) ** 2), (x, a, b))
print(arclength)
