Find all complex numbers $z$ such that
$$z^2=12−16i,$$
and give your answer in the form $a+bi$.
We set
$$z= a+bi,$$
thus,
$$z^2 = (a^2 - b^2) + (2ab)i.$$
Equating both $z^2$ we have
$$ a^2 - b^2 = 12\text{ and }ab = -8.$$
I am told that I can find the answer by using the quadratic formula. However, I don't see a way how can I apply the quadratic formula with the given equation. quadratic formula works when we have
$$ax^2 + bx + c = 0$$
I don't know how do i apply this in the context of $z^2$.