Derivatives of Low Rank PSD Approximation