I need help differentiating a fraction containing two summations.
Given the weighted mean
$ \bar{x} = \frac{\sum\limits_{i=1}^{\rm N} x_{i}/\sigma_{i}^{2}}{\sum\limits_{i=1}^{\rm N} 1/\sigma_{i}^{2}}$
where $x_{i}$ and $\sigma_{i}$ are uncorrelated. The error propagation formula
$\sigma_{f}^2 = \sigma_{f}^2 \left(\frac{\delta f }{\delta x}\right)^2 + \sigma_{f}^2 \left(\frac{\delta f }{\delta y}\right)^2 + ...$
yields the error on $\bar{x}$ as: $\sigma_{\bar{x}}^2 = \sum\limits_{i=1}^{\rm N} \left(\frac{\delta \bar{x} }{\delta x_{i}}\right)^2 \sigma_{i}^2$
The literature* solves the derivative as:
$\frac{\delta \bar{x} }{\delta x_{i}} = \frac{\delta }{\delta x_{i}} \frac{\sum\limits_{i=1}^{\rm N} x_{i}/\sigma_{i}^2}{\sum\limits_{i=1}^{\rm N} 1/\sigma_{i}^2} = \frac{1/\sigma_{i}^2}{\sum\limits_{i=1}^{\rm N} 1/\sigma_{i}^2}$
I cannot figure out how this result is achieved. By my working, if $\sigma_{i}$ can be treated as a constant, then $\frac{\delta \bar{x} }{\delta x_{i}}=1$.
Am I missing something? I have tried the Quotient rule but I don't see how it applies in this case.
Eqn. 4.19, Bevington, Data Reduction and Error Analysis for the Physical Sciences http://astro.cornell.edu/academics/courses/astro3310/Books/Bevington_opt.pdf
It is not necessary to apply the quotient rule, since the function is linear in each $x_i, 1\leq i\leq N$. Let's denote the constant \begin{align*} \sum_{i=1}^N\frac{1}{\sigma_i^2}=C \end{align*}
The function can then be written for $1\leq i\leq N$ \begin{align*} \overline{x}&=\frac{1}{C}\sum_{j=1}^N\frac{x_j}{\sigma_j^2}\\ &=\frac{1}{C\sigma_i^2}x_i+\frac{1}{C}\sum_{{j=1}\atop{j\ne i}}^N\frac{x_j}{\sigma_j^2} \end{align*} which is of the form \begin{align*} \overline{x}(x_i)=a x_i + b\qquad\qquad a,b \quad\text{const.} \end{align*}
Note: We have to use a different index variable $j$ for summation to avoid conflicts with the variable $x_i$.
At first we take a look at the left hand side of (1). The expression can be equivalently written as \begin{align*} \frac{\partial}{\partial x_i}\frac{\sum\left(x_i/\sigma_i^2\right)}{\sum\left(1/\sigma_i^2\right)} =\frac{\partial}{\partial x_i}\frac{\sum\left(x_j/\sigma_j^2\right)}{\sum\left(1/\sigma_k^2\right)} =\frac{\partial}{\partial x_i}\frac{\sum_{j=1}^{N}\left(x_j/\sigma_j^2\right)}{\sum_{k=1}^{N}\left(1/\sigma_k^2\right)}\tag{2} \end{align*}
The expression $\frac{\partial}{\partial x_i}$ stands for the derivative of any $x_i$ arbitrarily, fixed chosen from $1\leq i \leq N$.
Albeit the notation the authors use is mathematically correct, it should be avoided as overloading of the same symbol makes the text harder to read for the less experienced.