So, I have the following points: $\left( \begin{matrix} 5 \\ 0 \\ 0 \end{matrix} \right), \left( \begin{matrix} 0 \\ 4 \\ -1 \end{matrix} \right), \left( \begin{matrix} -4 \\ 4 \\ 3 \end{matrix} \right)$ and I need to find the equation of the circle passing through them.
Here is how I solved it, but it was very long and tiring. Can you think of a smarter and easier way?
Thank you very much for your kind help!
Here is another approach:
Let the points be $x_1,x_2,x_3 \in \mathbb{R}^3$. Let $d = (x_1-x_3) \times (x_2-x_3)$, then $d$ is a normal to the plane containing the $x_i$, let $\alpha = \langle d, x_1 \rangle$, then the $x_i$ all lie on the plane $H = \{ x | \langle d, x \rangle = \alpha \}$.
Let $c$ be centre of the circle. It follows that $c \in H$, or in other words, $\langle d, c \rangle = \alpha$.
All the $x_i$ are equidistant from the centre, so we have $\|x_i-c\| = \|x_j -c\|$ for all $i,j$. These equations can be written as $\|x_1-c\|^2 = \|x_3 -c\|^2$ and $\|x_2-c\|^2 = \|x_3 -c\|^2$. Expanding the first of these equations gives $\|x_1\|^2-2 \langle x_1, c \rangle + \|c\|^2 = \|x_3\|^2-2 \langle x_3, c \rangle + \|c\|^2$, which simplifies to $\langle x_1-x_3,c \rangle = \frac{1}{2}(\|x_1\|^2-\|x_3\|^2)$. Similarly for the second equation.
Gathering these equations gives \begin{eqnarray} d^T c &=& \alpha \\ (x_1-x_3)^T c &=& \frac{1}{2}(\|x_1\|^2-\|x_3\|^2) \\ (x_2-x_3)^T c &=& \frac{1}{2}(\|x_2\|^2-\|x_3\|^2) \\ \end{eqnarray} As long as the $x_i$ are not collinear, this set of linear equations have a unique solution which is the centre of the circle. The sphere containing the $x_i$ whose centre lies on $H$ is given by $\|x-c\|^2 = \|x_1-c\|^2$.
Actually doing the computations gives: $$ \begin{bmatrix} 16 & 24 & 16 \\ 9 & -4 & -3 \\ 4 & 0 & -4\end{bmatrix} c = \begin{bmatrix} 80 \\ -8 \\ -12 \end{bmatrix} $$ which gives $c=\frac{1}{34} (19, 20, 121)^T$, and the radius squared is $r^2=\|x_1-c\|^2 = \frac{1113}{34}$.