Could someone show me how to take the derivative of this function with respect to $w_i$?
$f(w) = \frac{1}{1+e^{-w^Tx}}$
$w$ and $x$ are both vectors $\in \mathbb{R}^D$
How would this be different from taking the derivative with respect to $w$ itself?
You have $$w^Tx=\sum_{i=1}^D w_ix_i$$ For the derivative with respect to $w_i$ you can write the function as $$\frac 1{1+e^{-\sum_{j=1}^D w_jx_j}}=\frac 1{1+e^{-\sum_{j=1,j\ne i}^D w_jx_j}e^{-w_ix_i}}$$ The term with the sum does not contain $w_i$, so you can consider it a constant when you take the derivative.