How to prove that limit of lim (1+x)^(1/x)=e as x approaches 0 ?

We are going to show the following equality:

limx0(1+x)1x=e

Firt of all, we definie u(x)=(1+x)1x.

We have:

lnu(x)=ln(1+x)1x=1xln(1+x)=ln(1+x)x

Two possibilities to find this limit.

First: L’Hôpital’s rule. L’Hôpital’s rule states that for functions f and g which are differentiable on an open interval I except possibly at a point c contained in I, if limxcf(x)=limxcg(x)=0 or ±,g(x)0 for all x in I with xc, and limxcf(x)g(x) exists, then

limxcf(x)g(x)=limxcf(x)g(x)

Here c=0,f(x)=ln(1+x), g(x)=x. Which gives:

limx0ln(1+x)x=limx011+x1=1

Second: using the definition of the derivative.

limx0ln(1+x)x=limx0ln(1+x)ln(1+0)x0=limx0f(x)f(0)x0=f(0)=1

with f(x)=ln(1+x) and f(x)=11+x

We have:

limx0(lnu(x))=limx0ln(1+x)x=1exp(limx0(lnu(x))=exp(1)limx0(exp(lnu(x))=elimx0(u(x))=e

We conclude:

limx0(1+x)1x=e