Since Stackexchange doesn't allow comments, I though I'd ask a quick question about an integral here from the post Trapezoid rule error analysis .
$g(t)=\int_{p-t}^{p+t} f(x) \,dx−t({f(p−t)+f(p+t))}$
$g′(t)=−t({f′(p+t)−f′(p−t)})$
This is the function and it's derivative and I can't seem to understand where the f(x) term went and the second part of the expression.