QUESTION: Given a square $ABCD$ with two consecutive vertices, say $A$ and $B$ on the positive $x$-axis and positive $y$-axis respectively. Suppose the other vertex $C$ lying in the first quadrant has coordinates $(u , v)$. Then find the area of the square $ABCD$ in terms of $u$ and $v$.
MY APPROACH: I was trying to solve it out using complex numbers, but I need a minor help. I have assumed $A$ to be $(x_1+0i)$, $B$ to be $(0+y_2i)$ and $C$ is $(u+vi)$. We know that multiplying a point by $i$ basically rotates it by $90°$, about the origin. Here, $C$ is nothing but the reflection of $A$ about the line $BD$. So if I can somehow rotate $A$ about $B$ by $90°$ then we will get $x_1$ and $y_2$ in terms of $u$ and $v$. This is where I am stuck. How to rotate a point with respect to another?
Note that this question has been asked before. But I want to know how to solve it using complex numbers..
Any answers, possibly with a diagram will be much helpful..
Thank you so much..


You can think of changing your frame of reference so that you're rotating around $B$. Look at the vector $BA = x - yi$. Then $BC = (BA)i = y + xi$.
In other words, $C = B + BC = (yi) + (y + xi) = y + (x+y)i$. Therefore $u = y$ and $v = x+y$.
You can calculate the area of the square in terms of $x$ and $y$, then convert that to $u$ and $v$.