Following the steps to convert the differential equation Eq. 5.31 (for $m=1$ ) into a difference equation (for example, Eq. 5.37 for $N=4$ ), solve
\[
\frac{d u}{d x}+u=2 \cos (2 x) \quad 0 \leq x \leq 1 \quad u(0)=0
\]
for $N=4,8,$ and 16 and compare to the exact solution
\[
u_{\mathrm{exact}}=\frac{2}{5} \cos (2 x)+\frac{4}{5} \sin (2 x)-\frac{2}{5} e^{-x}
\]
Hints: Follow the rules for Excel array operations as described in Problem $5.100 .$ Only the right side of the difference equations will change, compared to the solution method of Eq. 5.31 (for example, only the right side of Eq. 5.37 needs modifying