def mvt(a, b, fx = lambda x: x):
    """
    Mean value theorem
    Params:
        a: start of interval
        b: end of interval
        fx: function
    Returns:
        f_c: derivative of some point c that is a <= c <= b
    """
    return (fx(b) - fx(a))/(b - a)