# How do you do the trapezoidal rule to compute int logxdx from [1,2]?

int_1^2logx dx≈log2/2≈0.34657
Using the trapezoidal rule, the expression ${\int}_{1}^{2} \log x \mathrm{dx}$ becomes (2-1)[(log1+log2)/2]=log2/2≈0.34657.