In an ellipse:
a = length of semi-major axis
b = length of semi-minor axis
c = distance from center to foci
Distance from center to directrix = a²/c
Length of latus rectum = 2b²/a
c = 1/2 distance from (−2,−1) to (1,2) = 1/2 √((1+2)²+(2+1)²) = 1/2 √18 = 3√2/2
Center = midpoint of foci = (−1/2, 1/2)
a²/c = Distance from (−1/2, 1/2) to line x + y − 5 = 0
a²/c = |−1/2 + 1/2 − 5| / √(1²+1²) = 5/√2
a² = 5/√2 c = (5/√2) (3√2/2) = 15/2
b² = a² − c² = 15/2 − 9/2 = 3
Length of latus rectum = 2b²/a = 2(3)/√(15/2) = 2√30/5