Academy
Formulas/maths/Ellipse/Ellipse with Shifted Centre

Ellipse with Shifted Centre

Centre at (h, k). All elements of the standard ellipse apply with origin shifted to (h, k). Identified by completing the square in the general second-degree equation.
Derivation

When the centre is at (h,k)(h, k), substitute X=xhX = x - h, Y=ykY = y - k. In (X,Y)(X, Y) coordinates the ellipse is X2/a2+Y2/b2=1X^2/a^2 + Y^2/b^2 = 1, which translates back to:

(xh)2a2+(yk)2b2=1\frac{(x-h)^2}{a^2} + \frac{(y-k)^2}{b^2} = 1

Identifying from the general equation: Any equation Ax2+Cy2+Dx+Ey+F=0Ax^2 + Cy^2 + Dx + Ey + F = 0 (with A,C>0A, C > 0, ACA \neq C, no xyxy term) represents an ellipse. Complete the square in both xx and yy:

A(xh)2+C(yk)2=KA(x-h)^2 + C(y-k)^2 = K

Divide by KK to bring to standard form, with a2=K/Aa^2 = K/A and b2=K/Cb^2 = K/C.

Elements in original coordinates for (xh)2/a2+(yk)2/b2=1(x-h)^2/a^2 + (y-k)^2/b^2 = 1 with a>ba > b:

ElementValue
Centre(h,k)(h, k)
Foci(h±c,k)(h \pm c, k)
Vertices(h±a,k)(h \pm a, k)
Directricesx=h±a/ex = h \pm a/e