On the Higher-Order Derivatives of Spectral Functions: Two Special Cases