In calculus, $e$ is defined as the number such that
$$\lim_{h\rightarrow0}\left(\frac{e^h -1}h\right)=1$$
The main motivation of this limit that is equal to $1$ is to simplify the differentiation formula of exponential functions.
But how do we prove, or how was it found, that the value of $e$ that will satisfy the above equation is equal to the value discovered by Jacob Bernoulli while he was working on a problem in compound interest, which is the following:
$$e=\lim_{n\rightarrow\infty}\left(1+\frac1n\right)^n = 2.71828... $$