independent from the directrix, the eccentricity is defined as follows:
For a given ellipse:
the length of the semi-major axis = $a$
the length of the semi-minor = $b$
the distance between the foci = $2c$
the eccentricity is defined to be $\dfrac{c}{a}$
now the relation for eccenricity value in my textbook is $\sqrt{1- \dfrac{b^{2}}{a^{2}}}$
which I cannot prove.
For two focus $A,B$ and a point $M$ on the ellipse we have the relation $MA+MB=cst$.
We can evaluate the constant at $2$ points of interest :
Please try to solve by yourself before revealing the solution.