Try some simple examples.
what would a 90 counterclockwise rotation about the origin maps (x,y)to(,)?
4 simple examples of 90 degree counterclockwise rotation about the origin
1) maps ( 1, 0) to ( 0, 1)
2) maps ( 0, 1) to (-1, 0)
3) maps (-1, 0) to ( 0,-1)
4) maps ( 0,-1) to ( 1, 0)
Let map variables be called (x,y) to (x',y')
Assume that the map is linear, then...
x' = ax + by
y' = cx + dy
From example 1)
0 = a1 + b0
1 = c1 + d0
note: a=0 and c=1
From example 2)
-1 = a0 + b1
0 = c0 + d1
note: b=-1 and d=0
So now we know a,b,c and d
RULE: (x,y) to (-y,x)
x' = - y
y' = x
note: this RULE agrees with examples 3) and 4)
try some other values for (x,y) and see if they work!