integrate x cos x from 1 to 3 with left endpoint method