The denominator of the expression I posted is the portfolio's std dev.
Note: I was just answering what I thought was your question about a derivative of the portfolio std dev. But, now, I suspect that you don't really want that derivative, but instead the decomposition explained on pgs 11-12
here