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 cot2θ=ab2h\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.