def derivative(func, x, delta_x):
    """Approximates the derivative of a function at 'x' using its limit
    definition."""
    dividend = func(x + delta_x) - func(x)
    deriv = dividend / delta_x
    return deriv