$$\int_{a}^{b}{e^{-x}}dx$$
by definition $$b-a=nh$$
$$\int_{a}^{b}{e^{-x}} dx = \lim_{h \to 0}{he^{-(a)}+he^{-(a+h)}+he^{-(a+2h)}+...+he^{-(a+(n-1)h)}}$$
which can further be simplified to
$$\int_{a}^{b}{e^{-x}} dx= \lim_{h \to 0}{h\left(\frac{1}{e^a}+\frac{1}{e^ae^{2h}}+\frac{1}{e^ae^{3h}}+...+\frac{1}{e^ae^{(n-1)h}}\right)}$$
From here $\frac{1}{e^a}$ can be taken common but after that I m confused on how to eliminate $h$
Now you need to use the geometric sum formula:-
$$\lim_{n\to\infty}he^{-a}\frac{e^{-nh}-1}{e^{-h}-1}=e^{-a}\cdot (e^{-(b-a)}-1)\lim_{h\to 0}\frac{h}{e^{-h}-1}=e^{-a}-e^{-b}$$.
As $\lim_{h\to 0}\frac{h}{e^{-h}-1}=-1$. Prove it using L'Hospital or any other way.
But this requires proper justification. This happens as if $P_{n}$ is a partition of $[a,b]$ and $||P_{n}||\to 0$ as $n\to\infty$. Then
$\lim_{n\to\infty}U(P_{n},f)=\int_{a}^{\bar{b}}f$ where $\int_{a}^{\bar{b}}f$ denotes the upper sum = $\inf U(P,f)$ where the infimum is taken over all partitions.
And $\lim_{n\to\infty}L(P_{n},f)=\int_{\bar{a}}^{b}f$ . Where $\int_{\bar{a}}^{b}f$ denotes the lower sum = $\sup L(P,f)$ where supremum is taken over all partitions.
Then their equality proves the Darboux Integrability of f