Academy
Formulas/maths/Straight Lines/Rotation of Axes

Rotation of Axes

When axes are rotated by angle θ anticlockwise, new coordinates (X, Y) relate to old (x, y) by these equations.
Derivation

Let axes rotate anticlockwise by θ\theta, origin fixed. A point PP at distance rr from OO at angle ϕ\phi in the old system has:

Old coordinates: (rcos⁡ϕ,  rsin⁡ϕ)(r\cos\phi,\; r\sin\phi)

New coordinates: (rcos⁡(ϕ−θ),  rsin⁡(ϕ−θ))(r\cos(\phi-\theta),\; r\sin(\phi-\theta))

Expanding:

X=rcos⁡(ϕ−θ)=rcos⁡ϕcos⁡θ+rsin⁡ϕsin⁡θ=xcos⁡θ+ysin⁡θX = r\cos(\phi-\theta) = r\cos\phi\cos\theta + r\sin\phi\sin\theta = x\cos\theta + y\sin\theta Y=rsin⁡(ϕ−θ)=rsin⁡ϕcos⁡θ−rcos⁡ϕsin⁡θ=−xsin⁡θ+ycos⁡θY = r\sin(\phi-\theta) = r\sin\phi\cos\theta - r\cos\phi\sin\theta = -x\sin\theta + y\cos\theta

The inverse (rotating back by −θ-\theta):

x=Xcos⁡θ−Ysin⁡θ,y=Xsin⁡θ+Ycos⁡θ\boxed{x = X\cos\theta - Y\sin\theta, \qquad y = X\sin\theta + Y\cos\theta}

What is preserved

Distances, angles, the origin, the degree of any equation.

Standard use

Choose θ\theta to eliminate the xyxy cross-term in a second degree equation. The required angle satisfies cot⁡2θ=a−b2h\cot 2\theta = \dfrac{a-b}{2h}. After rotation, the equation has the form AX2+BY2+…=0AX^2 + BY^2 + \ldots = 0 — the conic type is immediately readable.