I have a feeling there should be a mathematical formular for determining the estimators of the coefficients of a $\frac{1}{x^{2}}$ Weighted Linear Regression.
I was able to derive the estimators ($a$ and $b$) for the non-weighted linear regression ($y=ax+b$). I did it by minimizing $\sum \epsilon^2 $ where $\epsilon = y - (ax+b) $
I partially differentiated $\sum \epsilon^2 $ wrt $a$ and $b$ and equating it to zero. at the end i got the estimators as:
$$a = \frac{n\sum xy - \sum x \sum y}{n\sum {x}^2 - {(\sum x)}^2} $$
and
$$b = \frac{\sum y - a\sum x}{n} $$
Now my question is this:
If I decide to use a $\frac{1}{x^{2}}$ weight on the linear regression $y=ax+b$, is there a way to minimize the least squares of the weighted error (ie minimize $\sum \frac{1}{x^{2}} \ [y - (ax+b)]^2 $ ) and come up with a simple mathematical relationship to determine the estimators $a$ and $b$ ?