Polytropic Work Equation Calculus