Query about Question 2 from "PrepSwift: Rotating 90°" [3197]

https://www.gregmat.com/quizzes/quiz/prepswift-rotating-90 (Question 2)


My Approach:

  1. Calculate slope of first line where coordinates are (0,0) and (4,5) > Slope is 0-5/0-4 = 5/4

  2. Calculate slope of line perpendicular to it. -4/5

  3. Calculate coordinates for same > 0-y / 0-x = -4 / 5 in this case y = 4 and x = -5 hence new point should be (-5,4)

Where is my logic faltering?

If \frac{y}{x} = -\frac{4}{5}, we can have your scenario or y = -4 and x = 5, right?

That is why we need to consider the quadrant the rotated point/line ends up in.

Of course, quadrant 4 has points with positive x-coordinates and negative y-cordinates so that interpretation takes precedence.

Another way you could solve this without slope:

“Rotate” means “swap” the coordinates of your points.

After that, you can assign the correct sign based on the quadrant final point ends up in.