Turning the axes through the angle θ about the origin gives x=Xcosθ−Ysinθ and y=Xsinθ+Ycosθ
about 30 min1 simulation2 practice questions1 Python program5 questions to check yourself
This lesson is free to read. Enroll free to keep your place and take the tests.
Lesson 2 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
What you will be able to do
find the new coordinates of a point when the axes are turned;
choose the angle that removes the term in xy;
use the two invariants to find the new coefficients quickly.
Tilt your head
A sign hangs at a slant on a wall. You tilt your head until the letters are level, and then you read it easily. Turning the axes does the same for a curve. An ellipse whose axes are slanted has a term in xy. In axes along its own axes, that term is gone.
The formulas
Turn the axes through the angle θ, anticlockwise, about the origin. Let a point be at distance r from the origin, at the angle φ from the new X-axis. Then X=rcosφ and Y=rsinφ. From the old x-axis its angle is φ+θ. So
x=rcos(φ+θ),
y=rsin(φ+θ).
Expand with the addition formulas:
x=Xcosθ−Ysinθ,
y=Xsinθ+Ycosθ.
Turning back through −θ gives the new coordinates from the old:
X=xcosθ+ysinθ,
Y=−xsinθ+ycosθ.
Distances from the origin, angles and areas do not change.
Grey old axes x and y, and red new axes X and Y turned through an angle theta anticlockwise about the same origin. A point P is joined to the origin. Dashed lines from P meet the old axes and the new axes, showing the old coordinates (x, y) and the new coordinates (X, Y) of the same point.
A first example. Turn the axes through 45∘ for the curve xy=8. Then x=2X−Y and y=2X+Y. So xy=2X2−Y2=8, that is X2−Y2=16. The curve xy=8 is a rectangular hyperbola whose axes are the lines y=±x.
What happens to the terms of the second degree
Put the formulas into ax2+2hxy+by2. Write C=cosθ and S=sinθ. The new coefficients are
a′=aC2+2hSC+bS2,
b′=aS2−2hSC+bC2,
h′=(b−a)SC+h(C2−S2).
With the double-angle formulas, h′=hcos2θ−21(a−b)sin2θ. So the term in XY disappears when
tan2θ=a−b2h.
When a=b, take θ=45∘. The first-degree terms change too, but a turn about the origin never brings in a constant.
Two quantities that do not change
Add a′ and b′: the 2hSC terms cancel, and C2+S2=1. So
a′+b′=a+b.
A longer calculation gives the second one:
a′b′−h′2=ab−h2.
If you know matrices: the matrix $
(ahhb)
keepsitstraceanditsdeterminantwhentheaxesturn.Whenh' = 0,thenewcoefficientsa'andb'$ have a known sum and a known product. So they are the roots of
t2−(a+b)t+(ab−h2)=0.
A worked example
Remove the term in xy from 5x2+4xy+2y2=6.
The angle.tan2θ=5−24=34. So cos2θ=53, cosθ=52 and sinθ=51.
The new a′.a′=5⋅54+4⋅52+2⋅51=6.
The new b′ from the invariant.b′=(a+b)−a′=7−6=1.
Check the second invariant.a′b′=6 and ab−h2=10−4=6.
The curve.6X2+Y2=6, that is X2+6Y2=1. An ellipse with semi-axes 1 and 6.
Practise with new numbers
Try it in Python
The program finds the angle that removes the term in xy, then the new coefficients. It checks that h′ is zero and that the two invariants hold.
Common mistakes
Mixing the two directions. Old from new: x=Xcosθ−Ysinθ. New from old: X=xcosθ+ysinθ.
Forgetting to halve. The formula gives tan2θ, not tanθ.
Dividing by zero. When a=b, the angle is 45∘.
Losing the invariants. Check a′+b′=a+b every time. It catches most slips.
Remember these
x=Xcosθ−Ysinθ, y=Xsinθ+Ycosθ.
No term in XY when tan2θ=a−b2h (45∘ if a=b).
Invariants: a+b and ab−h2.
Then a′ and b′ are the roots of t2−(a+b)t+(ab−h2)=0.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
The axes are turned through 90∘. What are the new coordinates of the point (3,1)?
What does x2−y2=2 become when the axes are turned through 45∘?
Through what acute angle must the axes turn to remove the term in xy from 3x2+23xy+5y2=7?
Use the invariants to find the new coefficients when the term in xy is removed from x2+4xy+y2.
A student uses x=Xcosθ+Ysinθ. Test it with θ=90∘ and the point with new coordinates (0,1).
References
S. L. Loney, The Elements of Coordinate Geometry, Part I, the chapter on the transformation of coordinates.
Enroll free in Translation and Rotation of Axes
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.