Locus of an ellipse and hyperbola