A circle intersects an ellipse precisely at three points , , as shown in the figure. is a diameter of the circle and is perpendicular to the major axis of the ellipse. If the eccentricity of the ellipse is , find the length of the diameter in terms of .

Written answer: work it out on paper, then compare.