I am reading an article that has this description of the first-order condition for a Cournot n-firm game:
Take $P(Q) = Q^{-1}$, $\pi_i(q_i, Q) = (Q^{-1} - c_i)q_i$.
Then the first-order condition for an interior profit-maximizing choice of $q_i$ requires that
$$ \frac{\partial \pi_i}{\partial q_i} + \frac{\partial \pi_i}{\partial Q} = Q^{-1} - c_i - q_iQ^{-2} = 0.$$
I am trying to understand why it is OK to simply take $\frac{\partial \pi_i}{\partial Q}$ ignoring the fact that $Q$ is actually a function of $q_i$. If I expand the term so that $Q = q_i + q_{-i}$ and take the partial derivatives $\frac{\partial \pi_i}{\partial q_i} + \frac{\partial \pi_i}{\partial q_{-i}}$, the solution is not the same as the one that is written in the article. Would appreciate any explanation.