Suppose a point has coordinates (x,y) and we rotate it through an angle $\alpha$, now it has new coordinates (X,Y). I know the values of the new coordinates are:-
$$X =x\cos\alpha-y\sin\alpha$$ $$Y =x\sin\alpha+y\cos\alpha$$
I was trying to find the derivation of this formula but none of my books have it and am not able to find it on the internet or able to derive it myself, does anyone know its derivation, even a hint will be appreciated.