def calculate_polynomial_derivative_term(coefficient, variable, order):
    """Calculates the derivative of the nth order term of a polynomial.

    Args:
        coefficient (float): The coefficient of the nth order term in the
            polynomial
        variable (float): float to plug in for the variable in the polynomial
        order (int): order of the nth order term in the polynomial (so, n.)

    Returns:
        float: The result of taking the derivative of the nth
        order term a polynomial,

        :math:`n \\cdot \\text{coefficient} \\cdot \\text{variable}^{n-1}`

        So, the edge case of taking the derivative of the zeroth-order
        term is taken care of, since you explicity multiply by the
        order of the polynomial (which is zero in the n = 0 case.)

    Raises:
        TypeError: A non-integer was passed as the order.
    """
    if type(order) != int:
        raise TypeError('Non-integer order in polynomial term')
    else:
        return order * coefficient * variable**(order - 1)