Can I use least squares to solve an overdetermined system that involves binomial terms?
I am trying to regress the center $(h, k)$ and radius $r$ of a circle using noisy measurements $(x_1,y_1), (x_2, y_2), ... , (x_n, y_n)$ along its perimeter. The formula of the relationship between a point on the perimeter $(x, y)$ of a circle and its center and radius is:
$(x - h)^2 + (y - k)^2 = r \space$ (1)
I tried expanding the formula and stick into a least squares form, but I got stuck, because each of the $x, y$ and $h, k$ appear several times in the formula and I do not know how to handle this.
$0 = x^2 - 2xh + h^2 + y^2 - 2y k + k^2 - r \space$ (2)
$\begin{bmatrix} x_1^2 & x_1 & 1 & y_1^2 & y_1 & 1 & -1 \\ x_2^2 & x_2 & 1 & y_2^2 & y_2 & 1 & -1\\ ... \\ x_n^2 & x_n & 1 & y_n^2 & y_n & 1 & -1 \end{bmatrix} $ * $\begin{bmatrix} 1 \\ 2h \\ h^2 \\ 1 \\ 2k \\ k^2 \\ r \end{bmatrix}$ = 0
Essentially, what do I do about the $2h$ and $2k$? Examples I have found do not have this problem, because even in examples for polynomials the unknowns are linear.