Delving Deeper: Optimization on Discrete Domains Using Calculus