The diagram shows $y=(1/2)^x$ on $0\leqslant x\leqslant1$, with $N$ rectangles of width $1/N$.
(a) Show that $\int_0^1(1/2)^x\,\mathrm dx>L_N$, where $$L_N=\frac1{2N(2^{1/N}-1)}.$$ [4]
(b) Find an upper bound $U_N$. [4]
(c) Find the least $N$ such that $U_N-L_N\leqslant10^{-3}$. [2]
(d) Given $\int_0^1(1/2)^x\,\mathrm dx=(2\ln2)^{-1}$, use this $N$ to find upper and lower bounds for $\ln2$. [4]