Ma · Mathematics

How to Rotate an Ellipse About a Point

Published By the 9to5Science editorial team

At a glance

  1. 1. Write its parametrization

    Represent the ellipse by its center, semiaxis lengths, and a parameter.

  2. 2. Choose the pivot

    Specify the point that stays fixed during the rotation.

  3. 3. Apply the rotation

    Rotate each point’s displacement from the pivot by the chosen angle.

  4. 4. Simplify or verify

    Substitute the ellipse parametrization and check the angle’s direction and units.

Advertisement

To rotate an ellipse, first decide which point is fixed. Rotating around the ellipse’s center changes its orientation but not its center; rotating around a different point also moves the center along a circular arc.

The formulas below assume a counterclockwise rotation by angle θ\theta. They work for any point on the ellipse, so they apply directly to a parametric representation.

Rotate a point about a pivot

Let (p,q)(p,q) be the fixed pivot, and let (x,y)(x,y) be a point before rotation. Subtract the pivot to get the point’s displacement, rotate that displacement, and then add the pivot back:

x′=p+(x−p)cos⁡θ−(y−q)sin⁡θ,y′=q+(x−p)sin⁡θ+(y−q)cos⁡θ.\begin{aligned} x' &= p+(x-p)\cos\theta-(y-q)\sin\theta,\\ y' &= q+(x-p)\sin\theta+(y-q)\cos\theta. \end{aligned}

The angle is measured in radians in these formulas unless your calculator or software is set to degrees. A positive angle rotates counterclockwise; a negative angle rotates clockwise.

Apply the formulas to an ellipse

An axis-aligned ellipse with center (h,k)(h,k) and semiaxis lengths aa and bb has parametrization

x=h+acos⁡t,y=k+bsin⁡t,x=h+a\cos t,\qquad y=k+b\sin t,

where tt runs through a full turn, for example 0≤t<2π0\le t<2\pi. Substitute these expressions into the point-rotation formulas. The rotated ellipse is parametrized by

x′(t)=p+(h−p+acos⁡t)cos⁡θ−(k−q+bsin⁡t)sin⁡θ,y′(t)=q+(h−p+acos⁡t)sin⁡θ+(k−q+bsin⁡t)cos⁡θ.\begin{aligned} x'(t) &= p+(h-p+a\cos t)\cos\theta-(k-q+b\sin t)\sin\theta,\\ y'(t) &= q+(h-p+a\cos t)\sin\theta+(k-q+b\sin t)\cos\theta. \end{aligned}

This form handles both common cases:

  • Rotation about the center: set (p,q)=(h,k)(p,q)=(h,k). The center remains fixed, and only the ellipse’s orientation changes.
  • Rotation about another point: use that point for (p,q)(p,q). The ellipse’s center moves as part of the rotation.

If the ellipse is already rotated, parametrize it using rotated axis directions, or apply the same point-rotation formula to its existing parametrization.

Worked example

Rotate the ellipse

x=2+5cos⁡t,y=1+3sin⁡tx=2+5\cos t,\qquad y=1+3\sin t

counterclockwise by 30∘30^\circ about the origin. Here (p,q)=(0,0)(p,q)=(0,0) and θ=30∘=π/6\theta=30^\circ=\pi/6, so cos⁡θ=3/2\cos\theta=\sqrt{3}/2 and sin⁡θ=1/2\sin\theta=1/2. The new coordinates are

x′(t)=(2+5cos⁡t)32−(1+3sin⁡t)12=3−12+532cos⁡t−32sin⁡t,y′(t)=(2+5cos⁡t)12+(1+3sin⁡t)32=1+32+52cos⁡t+332sin⁡t.\begin{aligned} x'(t) &= (2+5\cos t)\frac{\sqrt{3}}{2}-(1+3\sin t)\frac{1}{2}\\ &=\sqrt{3}-\frac{1}{2}+\frac{5\sqrt{3}}{2}\cos t-\frac{3}{2}\sin t,\\[4pt] y'(t) &= (2+5\cos t)\frac{1}{2}+(1+3\sin t)\frac{\sqrt{3}}{2}\\ &=1+\frac{\sqrt{3}}{2}+\frac{5}{2}\cos t+\frac{3\sqrt{3}}{2}\sin t. \end{aligned}

That parametrization describes the entire rotated ellipse. At t=0t=0, the original point is (7,1)(7,1). Rotating it about the origin gives (73/2−1/2, 7/2+3/2)(7\sqrt{3}/2-1/2,\,7/2+\sqrt{3}/2), which agrees with the new parametrization at t=0t=0.

Notice that the center (2,1)(2,1) also rotates: its new position is (2cos⁡30∘−sin⁡30∘, 2sin⁡30∘+cos⁡30∘)(2\cos 30^\circ-\sin 30^\circ,\,2\sin 30^\circ+\cos 30^\circ). This is why rotating about the origin does not leave the ellipse centered at (2,1)(2,1).

Getting an implicit equation

Sometimes you need an equation in x′x' and y′y' rather than a parametrization. Undo the rotation to recover the pre-rotation coordinates:

x=p+(x′−p)cos⁡θ+(y′−q)sin⁡θ,y=q−(x′−p)sin⁡θ+(y′−q)cos⁡θ.\begin{aligned} x &= p+(x'-p)\cos\theta+(y'-q)\sin\theta,\\ y &= q-(x'-p)\sin\theta+(y'-q)\cos\theta. \end{aligned}

Substitute these expressions into the original ellipse equation

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

The result is an implicit equation for the rotated ellipse. Using the inverse rotation is often less error-prone than expanding the rotated parametric equations and trying to eliminate tt.

Common mistakes

  • Rotating about the wrong point: The origin is the pivot only when (p,q)=(0,0)(p,q)=(0,0). For rotation about the center, use (p,q)=(h,k)(p,q)=(h,k).
  • Changing the sign incorrectly: The displayed formulas are for counterclockwise rotation. For clockwise rotation, use a negative angle or reverse the signs on the sine terms.
  • Mixing degrees and radians: Convert degrees to radians when using formulas or software that expects radians; for example, 30∘=π/630^\circ=\pi/6.
  • Confusing axes with the path of the center: Rotating about an external pivot changes both the ellipse’s orientation and the location of its center.
  • Treating semiaxis lengths as radii of the center’s orbit: The center’s orbit is determined by its distance from the pivot, not by aa or bb.

For an ellipse centered at the pivot, the simpler parametrization is x′=h+acos⁡tcos⁡θ−bsin⁡tsin⁡θx'=h+a\cos t\cos\theta-b\sin t\sin\theta and y′=k+acos⁡tsin⁡θ+bsin⁡tcos⁡θy'=k+a\cos t\sin\theta+b\sin t\cos\theta. This is the special case in which the center stays put.

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.