First of all, I have no idea what math teachers would say about any of this. I was playing around with some stuff, and I stumbled upon it. I read a few things to confirm I was right.
There are ways of looking at it: rotating the coordinate system or rotating all the points. I think the second way is a bit more intuitive. That’s also the way I found it.
This is the basic setup for rotating a point.
First, we need to describe the point you want to rotate relative to the point of rotation and in terms of an angle from standard position.
Let’s say the original point has coordinates of (x
i, y
i) and the point of rotation has coordinates of (x
center, y
center).
Since unit circle trigonometry is based off a circle at the origin, let’s temporarily translate everything to the origin. Since we are working based on how the points are relative to the point of rotation and not a “fixed” point, we can move the whole system as long as we move it back. To do this, all we have to do is subtract (x
center, y
center) from both points. This puts the point of rotation at the origin and the other point at (x
i- x
center, y
i - y
center).
When you rotate an object around a point, the points are always the same distance from each other. This means if you draw a circle with the point of rotation at the center and the point you want to rotate on the circle, the rotated point will also be on the circle. Since we know the coordinates of the two points, we can use the distance formula to find this distance.
√((x
i - x
center)
2 + (y
i - y
center)
2)
Now by dropping a right triangle down from the point, we can find the angle between the point and standard position.
tan(θ) = o / h
tan(θ) = (x
i - x
center)/(y
i - y
center)
θ = arctan(x
i - x
center)/(y
i - y
center)
Now we have everything needed to express the original point using angles.
(Distance*cos(θ), Distance*sin(θ))
To rotate the point, just add the desired angle of rotation.
Since we have to move everything back to their original position, we need to add (x
center, y
center)
To put everything together, you would end up with these equations:
x
new = √((x
i - x
center)
2 + (y
i - y
center)
2)*cos(arctan(x
i - x
center)/(y
i - y
center)+ θ
rotation)+ x
centery
new = √((x
i - x
center)
2 + (y
i - y
center)
2)*sin(arctan(x
i - x
center)/(y
i - y
center)+ θ
rotation)+ y
centerwhere (x
new, y
new) is the rotated point.
This looks terrible and is a pain to type so let’s simplify it. According to the linear combination of sine and cosine, a*sin(θ)+b*cos(θ)= √(a
2+ b
2)*cos(θ - arctan(b/a)).
The second half shows a very near resemblance to our two equations.
The shifts on the ends of the equations wouldn’t matter because if the above statement is true wouldn’t a*sin(θ)+b*cos(θ) + 5= √(a
2+ b
2)*cos(θ - arctan(b/a)) +5?
Starting with the x equation, a would be y
i - y
center because it is on the bottom of the fraction in the arctan.
That means that b is x
i - x
centerIn this case we need to make θ =-θ
rotation so we can change the sign in front of the θ
rotation (a double negative)
Also because cos(θ)= cos(-θ) we can then distribute a negative through
x
new = √((x
i - x
center)
2 + (y
i - y
center)
2)*cos( (-θ
rotation)- arctan(x
i - x
center)/(y
i - y
center))+ x
centernow that it matches the formula we can write it as
x
new = (y
i - y
center)*sin(-θ
rotation) + (x
i - x
center)*cos(-θ
rotation) + x
centerBecause cos(θ)= cos(-θ) and -sin(θ)= sin(-θ) it can be written like
x
new = (x
i - x
center)*cos(θ
rotation) - (y
i - y
center)*sin(θ
rotation) + x
centerIt’s a similar process for the ys but we need to change the sine into a cosine
cos(θ)= sin(90-θ) because a right triangle’s angles add up to 180 and one is already 90 (pi and pi/2 if you prefer)
so in this case we need 90-θ
rotation instead (the negative distributes into the arctan but we need that negative anyway)
now that the sine is a cosine we can do the same thing as last time.
y
new = (y
i - y
center)*sin(90-θ
rotation) + (x
i - x
center)*cos(90-θ
rotation) + y
centerNow we can switch the sines (punny)
y
new = (y
i - y
center)*cos(θ
rotation) + (x
i - x
center)*sin(θ
rotation) + y
centerIn the end these are the equations
x
new = (x
i - x
center)*cos(θ
rotation) - (y
i - y
center)*sin(θ
rotation) + x
centery
new = (y
i - y
center)*cos(θ
rotation) + (x
i - x
center)*sin(θ
rotation) + y
centerThese are similar to the equations in the Wikipedia article (except those are for rotating around the origin).
To use these equations just plug in the coordinates of the points and make θ
rotation how much you want to rotate it by.
Just so you know it works to put other parametric equations in for (x
i, y
i) to rotate all the points in the equations thus rotating the equations
If anything needs clairification, I’m happy to explain. Once again I explored this by myself so I don’t know how it is taught in schools.