Using accumulation functions and definite integrals in applied contexts