Source: https://mathforcollege.com/nm/mws/gen/07int/mws_gen_int_spe_trapdiscrete.pdf