I want to solve it with complex numbers. Here's my take:
Diagonal vertex $1$ $= a$
Diagonal vertex $2 $= bi$
Diagonal $= a-bi$
I multiply it by $${e^\frac{i{\pi}}{4}}$$ to rotate diagonal $45^\circ$ and then scale it down to obtain side. (i.e. divide by $\sqrt 2$)
$$\frac{(a-bi)(1+i)}{\sqrt 2 \cdot \sqrt 2} = \frac{a+b}{2} + \frac{i(a-b)}{2}$$
Similarly, the other side by multiplying $${e^\frac{-i{\pi}}{4}}$$
Therefore one of my vertex is $$\left(\frac{a+b}{2}, \frac{a-b}{2}\right)$$
But the answer is given as $$\left(\frac{a+b}{2}, \frac{a+b}{2}\right)$$ and $$\left(\frac{a-b}{2}, \frac{b-a}{2}\right)$$ Where am I doing wrong?